Programming Languages: Java, VBA, and SQL
Quiz covering programming concepts including Java servlets, JSP, EJB, collections, VBA macros, and SQL stored procedures
Questions
ejbCreate() method of CMP bean returns
- null
- Primary Key class
- Home Object
- Remote Object
Which of the following is correct syntax for an Abstract class ?
- abstract double area() { }
- abstract double area()
- abstract double area();
- abstract double area(); { }
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.
- The Session is not valid in the new Window
- The Session is valid in the new Window
- New session is created and that is valid.
- None of the above
A class can be converted to a thread by implementing the interface
- Thread
- Runnable
- Implements
- None of the above
What is the short cut key to open visual basic editor in MS-word 2009?
- Alt + Function 11
- Alt + Shift + Function 5
- Ctrl + Function 11
- Ctrl + Shift+ Function 5
View macro used to view the list of available macros.
- True
- False
Short cut key to run a macro is
- Function 5
- Function 6
- Function 7
- Function 8
Short cut key to stop a macro is ______
- Ctrl + Break
- Shift + Break
- Alt + Break
- Break
Macro tools will be available in _____ tab
- Home
- View
- Developer
- Tester
Office Button -> excel options -> Popular -> Show Developer tab check box used to enable or disable Developer Tab.
- True
- False
We can enable or disable macros by using ___________ option list.
- Office Button -> excel options -> Trust Center -> Macro Enable/Disable
- Office Button -> excel options -> Trust Center -> Macro Security
- Office Button -> excel options -> Trust Center -> Privacy Options
- Office Button -> excel options -> Trust Center -> Macro Settings
We can protect our code from unauthorized access by giving password in __________
- VBAProject -> Project properties -> Password Tab
- VBAProject -> Project properties -> General Tab
- VBAProject -> Project properties -> Protection Tab
- VBAProject -> Project properties -> Lock Tab
Workbook_Open() method will be run when the excel is opened.
- True
- False
Workbook_Open() method is ____________ by default
- Private
- Public
- Abstract
- Protected
------------indexes and stores objects in a dictionary
- Vector
- Hash table
- Linked list
- Enumeration
What are the types of JDBC Driver Models?
- Two tier model
- Three tier model
- Both a & b
- None of the above
---------is a group of SQL statements that forms a logical unit and performs a particular task
- Stored Process
- Stored Method
- Stored Procedure
- Both a & b
Removing or inserting elements in the middle of an array can be done using
- Vector
- Hash table
- Linked list
- Enumeration
----------stores elements in an unordered way but does not contain duplicate elements
- Set
- List
- Collections
- None of the above
What is the life cycle of a servlet?
- init(),service(),destroy()
- init(),destroy(),service(),
- init(),process(),destroy()
- init(),start(),destroy()