Aero dynamics i university question with answer keyFull description
Thorough geometry practice....Best of Luck!
Questions related to consumer behavior subject is given here in the document.
Top Air PPL(A) Question BankDescripción completa
Engineering Graphics Question Bank By Swapnil KaleDescripción completa
Full description
B737 Question Bank
GisFull description
ME6404 Thermal Question bank
Top Air PPL(A) Question Bank
Full description
1
Question Bank Subject
: Pr Programming in Java
2 Marks 1. Define Define variabl variables es with with an an exam example ple 2. Wr Write ite any any 3 java java Develo Developme pment nt tools tools and writ writee its purpos purposee 3. Wr Write ite a prog program ram to to find find the aver average age of 3 number numberss 4. Name Name the diffe different rent type typess constant constantss defined defined in in java 5. Wr Write ite the rule ruless involved involved in frami framing ng variabl variables es names names 6. Find Find the the outp output ut of of the the progr program am for(int i = 0 ;i<=5;i++) System.out.println(“All the Best”); 7. What are are the five five methods methods that are are called called during the the life cycle cycle of an applet? applet? 8. Write Write the four steps fro the developm development ent and execution execution of of a simple simple applet. applet. 9. Define: Define: (a) object object (b) (b) Abst Abstrac ractt class class 10. Write Write an applet program program to draw an arc in red red color 11. What are construct constructors? ors? 12. Define: Define: Inner Inner classes classes 13. List out any 3 benefits of object oriented oriented programming programming 14. Define (a) (a) variable variable (b) object object 15. List out any 2 difference difference between between C++ and Java 16. What is the the use of finalize finalize () method? method? 17. Define (a) Abstract Abstract class class (b) Inheritance Inheritance 18. Define (a) (a) Exception Exception (b) Interface Interface 19. Define (a0 (a0 Applet Applet (b) (b) File 20. List out out any 4 AWT AWT controls controls 21. What do you mean by multithre multithreading ading 22. Write Write a program in in java to add 2 numbers numbers 23. Write Write an applet program program to display a rectangl rectanglee 24. Write Write a program in java to illustrate illustrate single level inheritance inheritance 25. Define Inheritanc Inheritancee and Polymorphism Polymorphism 26. Explain Explain the various data types in java java 27. What is construc constructor? tor? Explain Explain it 28. What is is an abstract abstract class? class? 29. What What is deadlock? deadlock? 30. Explain Explain briefly about string string buffer buffer 31. What is an interface? interface? How it is implem implemented ented in java 32. Discuss Discuss the java java utilities utilities 33. Write Write short notes on code documentati documentation on 34. Give short short notes notes on sockets sockets 35. What are menus? menus? Name the different different menu classes 36. Define Define variable variable 37. What What is an array array?? 1
2 38. Define class 39. Define Inheritance 40. What is a package? 41. Define thread 42. What is the use of access specifier? 43. What is a stream? 44. What is a computer network? 45. Define socket. 46. What do you mean by multi threading? 47. What is an applet? 48. What is the main advantage of constructor overloading? 49. Define (a) classes (b) Objects 50. Define: Inheritance 51. What do you mean by a thread? 52. Write a short notes on the different states in the life cycle of a thread 53. Find the output for the following program int n =1; while (n<=5) { int m = 1; while (m<=n) { System.out.println(n); m = m+1; } System.out.println(); } 54. What is a deadlock? 55. Write the 4 steps for the development and execution of a simple applet 56. List out any 4 AWT controls 57. Write a program in applet to display a square 58. Write a program to find the area and perimeter of a rectangle 59. What is the use of ‘this’ keyword? 60. What is a vector? 61. Give in short about the evolution of Java. November 2008
62. What are the three object oriented concepts incorporated in JAVA? 63. Mention any three character escape sequence and their use. 64. What is a constructor? 65. What do you mean by command line argument? 66. What do you mean by ‘exception handling’? 67. What are the following methods meant for? (a) Sleep (b) Get Name 2
3 (c) Start. 68. What is a deadlock? 69. What is a ‘byte stream’? 70. What is the function of insert ( ) method? 71. Write on Datagram socket. 72. What are the different methods used to terminate an applet?
5 Marks 1.
Write a program to find whether a given number is odd or even
2.
Write a program to find particular year is leap or not
3.
Explain built in packages
4.
What is the difference between a constructor and a method?
5.
Write the general form of switch statement with an example
6.
What do you mean by synchronization? Why do we need it?
7.
Write a program to create thread to find the factorials of the first ten natural numbers using
runnable interface 8.
List out the features of Java
9.
What are the benefits of OOPS?
10.
Explain the use of super keyword with an example
11.
List out any 6 built in packages
12.
Explain the use of Throw with an example
13.
Write a program to read n integers and print the odd numbers in them
14.
Write note on button control
15.
Explain various control structures in Java 16. Explain the concept of classes and objects and their implementation in java 17. What is a package? Write the steps involved in importing a user defined package 18. Define the synchronization with illustration
19.
Discuss the architecture of an applet with an example
20.
What are datagrams? Discuss datagram server and client
21.
Describe the components of AWT
22.
Write a program to pick out the biggest number in an array of n integers
23.
Explain Arithmetic exception, IO Exception with an example
24.
Write a program in java to read n strings and display only those strings which starts with
the character ‘A’ or ’a’ 25.
Write short notes on socket class
26.
Explain built in packages
27.
Explain the operations in java
28.
Write a program to find whether a given number is prime or not
29.
What does a break statement do? How it is used in switch statement
30.
Explain the structure of a Java program
31.
What is an applet? How does it differ from application?
32.
Write an applet program to draw Traffic signal(Using setColor () option)
33.
Write a program to find the largest number in array of ‘n’ integers
34.
Explain the operations in java 3
4 November 2008
35.
Give the syntax of Do-While statement and explain with suitable example.
36.
Explain abstract class with suitable example.
37.
Write a program for Fibonacci series.
38.
Explain how exception handling is done in JAVA.
39.
What is the usage of synchronized method?
40.
List out any five byte stream classes and mention ists use.
41.
Write a Java program to arrange the given names in alphabetical order.
10 marks 1. Explain the control structures in Java 2. Briefly explain the features of java 3. Write the syntax of applet tag and also write the attributes in applet tag write its purpose 4. Explain method overloading and nesting of methods with an example 5. Write a program to find the product of 2 matrices 6. Write ten differences between C++ and Java 7. Explain the control structures in java 8. Explain method overloading and nesting of methods with an example 9. Write a program to find the rows and columns sum of the given matrix 10. Write a detailed account on layout managers 11. Explain the methods in thread class with a n example 12. Write a program in java to store number, name and mark for n different students. Read the same file and display the details of student whose marks > 50 13. What are arrays? Explain one and multi dimensional array implementation 14. What is the various access modifiers implemented in java language? 15. Explain the overloading and overriding methods 16. Give short notes on (a)
Thread
(b)
Exception Handling
(c)
Messaging
17. Explain IO Streams and File Streams with illustrations 18. Explain all the layout managers 19. Write a program in java to print the sum of matrices 20. Explain overloaded constructors with an example 21. Explain the process of creating and using user defined packages with an example 22. Write a program to sort an array of strings in alphabetical order 23. Write a program to simulate the functioning of a four function calculator use AWT controls 24. Write a detailed account on layout managers 25. Explain the benefits of OOPS concept 26. Write a detailed account on Layout managers 27. Write a program to generate the square root of the first 25 numbers using Runnable interface 28. Define the terms arrays. Explain the method of defining and using arrays with an example 29. Explain the methods in thread class with an example 30. Write a program to find the addition of 2 matrices 4
5 November 2008
31. Write a program to establish a connection between a client and a server. 32. Write an applet program that contains a banner with different colors and different fonts. 33. List out any 10 AWT classes and explain them. 34. Using a small interface program, explain the concept of JAVA interfaces. 35. What do you mean by Multithreading? Explain. 36. Write in detail about lists in awt control.
April 2008 2 marks 1. What is a variable? How to declare variable in java? 2. What is a bytecode? 3. What is a class? Give an example 4. What is an inheritance? Give an example 5. What are the differences between static variable and instance variable? 6. List out the 3 common run time errors 7. What is synchronization? Explain it. 8. What is a stream? What are the 2 types of streams? 9. Write a note on Char Array Reader 10. Name any 3 Tags used in Java Doc Comments. 11. What is the use of URL class in java? Name any 2 methods in it. 12. Distinguish between components and containers.
5 Marks 13. Explain the features of java 14. List and explain various data types in java 15. What is an inner class? Explain with an example 16. What is package? Explain the procedure to create user defined package in java 17. Write a java program to explain multiple inheritance 18. Explain any 6 methods in string class 19. What is datagram? How does java implements datagram?
10 Marks 20. Discuss the control structures in java 21. Explain the method overloading and overriding with an example 22. Discuss the 2 ways of creating threads in java 23. Describe the different stages in the life cycle of an applet 24. Write a java program to read 10 names from the keyboard and sort them in alphabetical order 25. Explain the various AWT controls in details
November 2007 2 Marks 1. What are tokens? 2. List out any 2 features of java 3. Define object 4. What are inner classes? 5
6 5. Define abstract class 6. What are interfaces? 7. Define Stream 8. What is a file? 9. What is the difference between string class and string buffer class? 10. What is a proxy server? 11. What is a port? 12. Define Applet
5 Marks 13. Explain the general form of java program 14. Write a program to find whether the given number is Prime or not. Use a constructor 15. Explain the use of throws with an example 16. Write a program in java to check whether the given string is a palindrome or not 17. Explain any 6 methods in graphics class 18. Write a program to evaluate S = 1! -2! -3!...........(n terms) 19. Write notes on menus
10 Marks 20. Write a detailed account on object oriented programming concept 21. Write a program to pick out the second biggest number in an array of n integers 22. Explain the life cycle of a thread 23. Write a program to create a text file and count the number of words in it 24. Explain method overloading and method overriding with example 25. Write notes on: (a) Label Control (b) Check Box