Java and VB.NET Programming Quiz

Test your knowledge of Java programming concepts including enums, interfaces, JVM, and Spring framework, as well as VB.NET collections, interfaces, and ADO.NET database operations.

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is not a collection type in VB.Net

  1. Hashtable
  2. ArrayList
  3. Heap
  4. Stack
Question 2 Multiple Choice (Single Answer)

Which of the following are the valid method of command object

  1. ExecuteNonQuery & ExecuteScalar
  2. ExecuteQuery & ExecuteScalar
  3. ExecuteParameter
  4. None of the above
Question 3 Multiple Choice (Single Answer)

How do you achieve interface implementation in VB.NET?

  1. Implements
  2. Uses
  3. Imports
  4. Overrides
Question 4 Multiple Choice (Single Answer)

..... table will remove all the rows and data in a table but table structure is not removed whereas in ..... table the entire table is removed and moved to recycle bin.

  1. DROP, DELETE
  2. TRUNCATE, DROP
  3. DROP, TRUNCATE
  4. DELETE, DROP
Question 5 True/False

Spring does not support which of the ORM framework?

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

JVM is vendor dependent

  1. Not vendor dependent
  2. Completely vendor dependent
  3. Partial vendor dependent
  4. None of these
Question 7 True/False

final and static access specifiers can be used for all kinds of variables

  1. True
  2. False
Question 8 Multiple Choice (Multiple Answers)

Variables declared inside interface can be..?

  1. public
  2. default
  3. static
  4. final
Question 9 Multiple Choice (Single Answer)

public enum days{MON,TUE,WED,THU} String s=null; switch(days.TUE){ case MON:s+="MON"; break; case TUE:s+="TUE"; case WED:s+="WED"; break; default:break; } System.out.println(s);

  1. MON
  2. TUE,WED
  3. THU
  4. Compiletime Error
Question 10 Multiple Choice (Multiple Answers)
  1. enum A{A} 2. class E2{ 3. enum B{B} 4. void C(){ 5. enum D{D} 6. } 7. } which statements are true?(Choose all that apply.)
  1. Code compiles
  2. If line 1 is removed the code compiles
  3. If line 3 is removed the code compiles
  4. If line 5 is removed the code compiles
  5. If line 1,3 are removed the code compiles
  6. If line 1,3,5 are removed the code compiles