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.
Questions
Which is not a collection type in VB.Net
- Hashtable
- ArrayList
- Heap
- Stack
Which of the following are the valid method of command object
- ExecuteNonQuery & ExecuteScalar
- ExecuteQuery & ExecuteScalar
- ExecuteParameter
- None of the above
How do you achieve interface implementation in VB.NET?
- Implements
- Uses
- Imports
- Overrides
..... 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.
- DROP, DELETE
- TRUNCATE, DROP
- DROP, TRUNCATE
- DELETE, DROP
Spring does not support which of the ORM framework?
- True
- False
JVM is vendor dependent
- Not vendor dependent
- Completely vendor dependent
- Partial vendor dependent
- None of these
final and static access specifiers can be used for all kinds of variables
- True
- False
Variables declared inside interface can be..?
- public
- default
- static
- final
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);
- MON
- TUE,WED
- THU
- Compiletime Error
- 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.)
- Code compiles
- If line 1 is removed the code compiles
- If line 3 is removed the code compiles
- If line 5 is removed the code compiles
- If line 1,3 are removed the code compiles
- If line 1,3,5 are removed the code compiles