Java and Visual Basic 6 Programming Quiz

Test your knowledge of Java fundamentals including JRE, memory management, APIs, and classes, as well as Visual Basic 6 programming including controls, events, data types, and database connectivity with ADO and ODBC.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

WhatisDSN?

  1. Database server name
  2. Database source name
  3. Data server name
  4. Data source name
Question 2 Multiple Choice (Single Answer)

Dim x, y as integer. What is x and y data type?

  1. x as integer and y as integer.
  2. x as variant and y as integer.
  3. x as integer and y as variant.
  4. x as double and y as integer.
Question 3 Multiple Choice (Single Answer)

Timer control contains how many events?

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

Which Control do not have events?

  1. DriveListBox Control
  2. Timer Control
  3. Common dialog control
  4. VScrollBar Control
Question 5 Multiple Choice (Single Answer)

What is a property to resize a label control according to your caption?

  1. Resize
  2. WordWrap
  3. Appearance
  4. AutoSize
Question 6 True/False

It is possible to call oracle database through ADO control or Object.

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

What is the Dll required for running the VB?

  1. Vbrun300.dll
  2. VB6IDE.DLL
  3. VBSCC.DLL
  4. Vbrun6.dll
Question 8 Multiple Choice (Single Answer)

What is the size of the variant data type?

  1. 22 Byte
  2. 32 Byte
  3. 16 Byte
  4. None of the Above
Question 9 Multiple Choice (Single Answer)

How many event in VB6 form.

  1. 36
  2. 26
  3. 31
  4. 30
Question 10 Multiple Choice (Single Answer)

What is ODBC?

  1. Open Data Base Connectivity
  2. Open Data Base Connection
  3. Oracle Data Base Connectivity
  4. Oracle Data Base Connection
Question 11 True/False

We can create CGI scripts in VB.

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

Objects resides in ADO?

  1. Connection
  2. Command
  3. Parameter
  4. Error
  5. Field
  6. DSN
Question 13 Multiple Choice (Multiple Answers)

How to set a shortcut key for label?

  1. Set UseMnemonic property to True
  2. Set DragMode property to 1
  3. Set LinkMode property to 1
  4. Put & in the lebel caption
Question 14 Multiple Choice (Multiple Answers)

Different types of error in VB?

  1. Syntax Errors
  2. System Errors
  3. Runtime Errors
  4. Logic Errors
Question 15 Multiple Choice (Multiple Answers)

Default property of datacontrol?

  1. Connection
  2. Line
  3. Shape
  4. Records
Question 16 True/False

All programs written in the Java language (Java programs) are built from classes ?

  1. True
  2. False
Question 17 True/False

Java APIs are libraries of compiled code

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

What makes the Java Program to provide Portability?

  1. Multithreading
  2. Encapsulation
  3. Byte Codes
  4. All the above
Question 19 True/False

Java is featured with automatic memory menagement to manage memory in object lifecycle.

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

End-users use a ____________ installed on their own machine for standalone Java applications.

  1. JRE
  2. SDK
  3. Both 1 & 2
  4. None of the above