programming languages Online Quiz - 188
programming languages Online Quiz - 188
Questions
What are the steps involved in developing an RMI object?
- Define the interfaces
- Implementing Interface
- Compile the interfaces
- All the above
Which files contains the libraries, resources and accessories files like property files?
- .jar
- .war
- .ear
- .zip
What is a DTD file?
- Document Type definition
- Document type decision
- Document type data
- Document type development
What is the output of following piece of code ? int x = 2; switch (x) { case 1:System.out.println(”1?); case 2: case 3:System.out.println(”3?); case 4: case 5:System.out.println(”5?); }
- No output
- 3 and 5
- 1, 3 and 5
- 3
Which of the following are true?
- The Void class extends the Class class.
- The Float class extends the Double class.
- The System class extends the Runtime class.
- The Integer class extends the Number class.
How many number of models are there in MVC architecture?
- 1
- 2
- 3
- 4
What is the role of Servlet in MVC architecture?
- Displaying page data
- Connecting to database
- Routing Requests
- Performing front end validations
Which of the following statements are true?
- UTF characters are all 8-bits.
- UTF characters are all 16-bits.
- UTF characters are all 24-bits.
- Unicode characters are all 16-bits.
How do we comment a line in html
- <!-- - - >
- <%-- --%>
- </* */>
- //
How do we comment a line in a jsp
- <!-- - - >
- <%-- --%>
- </* */>
- //
Constructors are used to
- initialize instance variables
- destroy variables
- both (a) and (b)
- None of the above
After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");
- -1
- 0
- 4
- random value
What is the difference between a TextArea and a TextField?
- A TextArea can handle multiple lines of text
- A textarea can be used for output
- TextArea is not a class
- TextAreas are used for displaying graphics
The method setLabel can be used with what type of Object?
- TextField
- int
- DoubleField
- String
Given the following statement: huey.setDouble(8.0*32.2+1.0); What must be the data type of huey?
- TextField
- DoubleField
- IntField
- double
Given the following code fragment: int A[]; int i = 0; A = new int A[4]; while (i < 4) { A[i] = 10; i = i + 1; } What is the value of A[3]?
- 0
- 3
- 10
- unknown
A stack follows
- FIFO
- LIFO
- both (a) and (b)
- None of the above
The keyword used along with try catch block to execute a part of code even if an exception is not caught is
- Finalize
- Finally
- Final
- Financial
A queue follows
- FIFO
- LIFO
- both (a) and (b)
- None of the above
Break statement cannot be used in a
- For loop
- While loop
- if loop
- All the above