programming languages Online Quiz - 188

programming languages Online Quiz - 188

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What are the steps involved in developing an RMI object?

  1. Define the interfaces
  2. Implementing Interface
  3. Compile the interfaces
  4. All the above
Question 2 Multiple Choice (Single Answer)

Which files contains the libraries, resources and accessories files like property files?

  1. .jar
  2. .war
  3. .ear
  4. .zip
Question 3 Multiple Choice (Single Answer)

What is a DTD file?

  1. Document Type definition
  2. Document type decision
  3. Document type data
  4. Document type development
Question 4 Multiple Choice (Single Answer)

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?); }

  1. No output
  2. 3 and 5
  3. 1, 3 and 5
  4. 3
Question 5 Multiple Choice (Single Answer)

Which of the following are true?

  1. The Void class extends the Class class.
  2. The Float class extends the Double class.
  3. The System class extends the Runtime class.
  4. The Integer class extends the Number class.
Question 6 Multiple Choice (Single Answer)

How many number of models are there in MVC architecture?

  1. 1
  2. 2
  3. 3
  4. 4
Question 7 Multiple Choice (Single Answer)

What is the role of Servlet in MVC architecture?

  1. Displaying page data
  2. Connecting to database
  3. Routing Requests
  4. Performing front end validations
Question 8 Multiple Choice (Single Answer)

Which of the following statements are true?

  1. UTF characters are all 8-bits.
  2. UTF characters are all 16-bits.
  3. UTF characters are all 24-bits.
  4. Unicode characters are all 16-bits.
Question 9 Multiple Choice (Single Answer)

How do we comment a line in html

  1. <!-- - - >
  2. <%-- --%>
  3. </* */>
  4. //
Question 10 Multiple Choice (Single Answer)

How do we comment a line in a jsp

  1. <!-- - - >
  2. <%-- --%>
  3. </* */>
  4. //
Question 11 Multiple Choice (Single Answer)

Constructors are used to

  1. initialize instance variables
  2. destroy variables
  3. both (a) and (b)
  4. None of the above
Question 12 Multiple Choice (Single Answer)

After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");

  1. -1
  2. 0
  3. 4
  4. random value
Question 13 Multiple Choice (Single Answer)

What is the difference between a TextArea and a TextField?

  1. A TextArea can handle multiple lines of text
  2. A textarea can be used for output
  3. TextArea is not a class
  4. TextAreas are used for displaying graphics
Question 14 Multiple Choice (Single Answer)

The method setLabel can be used with what type of Object?

  1. TextField
  2. int
  3. DoubleField
  4. String
Question 15 Multiple Choice (Single Answer)

Given the following statement: huey.setDouble(8.0*32.2+1.0); What must be the data type of huey?

  1. TextField
  2. DoubleField
  3. IntField
  4. double
Question 16 Multiple Choice (Single Answer)

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]?

  1. 0
  2. 3
  3. 10
  4. unknown
Question 17 Multiple Choice (Single Answer)

A stack follows

  1. FIFO
  2. LIFO
  3. both (a) and (b)
  4. None of the above
Question 18 Multiple Choice (Single Answer)

The keyword used along with try catch block to execute a part of code even if an exception is not caught is

  1. Finalize
  2. Finally
  3. Final
  4. Financial
Question 19 Multiple Choice (Single Answer)

A queue follows

  1. FIFO
  2. LIFO
  3. both (a) and (b)
  4. None of the above
Question 20 Multiple Choice (Single Answer)

Break statement cannot be used in a

  1. For loop
  2. While loop
  3. if loop
  4. All the above