Programming Languages: Java, VBA, and SQL

Quiz covering programming concepts including Java servlets, JSP, EJB, collections, VBA macros, and SQL stored procedures

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

ejbCreate() method of CMP bean returns

  1. null
  2. Primary Key class
  3. Home Object
  4. Remote Object
Question 2 Multiple Choice (Single Answer)

Which of the following is correct syntax for an Abstract class ?

  1. abstract double area() { }
  2. abstract double area()
  3. abstract double area();
  4. abstract double area(); { }
Question 3 Multiple Choice (Single Answer)

A JSP page is opened in a particular Session. A button is present in that JSP page onclick of which a new Window gets opened.

  1. The Session is not valid in the new Window
  2. The Session is valid in the new Window
  3. New session is created and that is valid.
  4. None of the above
Question 4 Multiple Choice (Single Answer)

A class can be converted to a thread by implementing the interface

  1. Thread
  2. Runnable
  3. Implements
  4. None of the above
Question 5 Multiple Choice (Single Answer)

What is the short cut key to open visual basic editor in MS-word 2009?

  1. Alt + Function 11
  2. Alt + Shift + Function 5
  3. Ctrl + Function 11
  4. Ctrl + Shift+ Function 5
Question 6 True/False

View macro used to view the list of available macros.

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

Short cut key to run a macro is

  1. Function 5
  2. Function 6
  3. Function 7
  4. Function 8
Question 8 Multiple Choice (Single Answer)

Short cut key to stop a macro is ______

  1. Ctrl + Break
  2. Shift + Break
  3. Alt + Break
  4. Break
Question 9 Multiple Choice (Single Answer)

Macro tools will be available in _____ tab

  1. Home
  2. View
  3. Developer
  4. Tester
Question 10 True/False

Office Button -> excel options -> Popular -> Show Developer tab check box used to enable or disable Developer Tab.

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

We can enable or disable macros by using ___________ option list.

  1. Office Button -> excel options -> Trust Center -> Macro Enable/Disable
  2. Office Button -> excel options -> Trust Center -> Macro Security
  3. Office Button -> excel options -> Trust Center -> Privacy Options
  4. Office Button -> excel options -> Trust Center -> Macro Settings
Question 12 Multiple Choice (Single Answer)

We can protect our code from unauthorized access by giving password in __________

  1. VBAProject -> Project properties -> Password Tab
  2. VBAProject -> Project properties -> General Tab
  3. VBAProject -> Project properties -> Protection Tab
  4. VBAProject -> Project properties -> Lock Tab
Question 13 True/False

Workbook_Open() method will be run when the excel is opened.

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

Workbook_Open() method is ____________ by default

  1. Private
  2. Public
  3. Abstract
  4. Protected
Question 15 Multiple Choice (Single Answer)

------------indexes and stores objects in a dictionary

  1. Vector
  2. Hash table
  3. Linked list
  4. Enumeration
Question 16 Multiple Choice (Single Answer)

What are the types of JDBC Driver Models?

  1. Two tier model
  2. Three tier model
  3. Both a & b
  4. None of the above
Question 17 Multiple Choice (Single Answer)

---------is a group of SQL statements that forms a logical unit and performs a particular task

  1. Stored Process
  2. Stored Method
  3. Stored Procedure
  4. Both a & b
Question 18 Multiple Choice (Single Answer)

Removing or inserting elements in the middle of an array can be done using

  1. Vector
  2. Hash table
  3. Linked list
  4. Enumeration
Question 19 Multiple Choice (Single Answer)

----------stores elements in an unordered way but does not contain duplicate elements

  1. Set
  2. List
  3. Collections
  4. None of the above
Question 20 Multiple Choice (Single Answer)

What is the life cycle of a servlet?

  1. init(),service(),destroy()
  2. init(),destroy(),service(),
  3. init(),process(),destroy()
  4. init(),start(),destroy()