0

programming languages Online Quiz - 191

Description: programming languages Online Quiz - 191
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

ejbCreate() method of CMP bean returns

  1. null

  2. Primary Key class

  3. Home Object

  4. Remote Object


Correct Option: A

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(); { }


Correct Option: C

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


Correct Option: B

AI Explanation

To answer this question, we need to understand how sessions work in web applications.

When a user accesses a JSP page, a session is created for that user. The session is used to store data that needs to be maintained across multiple requests from the same user.

In this scenario, when the button is clicked and a new window is opened, the session is still valid in the new window. This means that any session attributes or data stored in the session will still be accessible in the new window.

Therefore, the correct answer is:

Option B) The Session is valid in the new Window.

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

  1. Thread

  2. Runnable

  3. Implements

  4. None of the above


Correct Option: B

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


Correct Option: A

View macro used to view the list of available macros.

  1. True

  2. False


Correct Option: A

Short cut key to run a macro is

  1. Function 5

  2. Function 6

  3. Function 7

  4. Function 8


Correct Option: A

Short cut key to stop a macro is ______

  1. Ctrl + Break

  2. Shift + Break

  3. Alt + Break

  4. Break


Correct Option: A

Macro tools will be available in _____ tab

  1. Home

  2. View

  3. Developer

  4. Tester


Correct Option: C

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

  1. True

  2. False


Correct Option: A

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


Correct Option: D

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


Correct Option: C

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

  1. True

  2. False


Correct Option: A

Workbook_Open() method is ____________ by default

  1. Private

  2. Public

  3. Abstract

  4. Protected


Correct Option: A

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

  1. Vector

  2. Hash table

  3. Linked list

  4. Enumeration


Correct Option: B
  1. Two tier model

  2. Three tier model

  3. Both a & b

  4. None of the above


Correct Option: C

---------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


Correct Option: C

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

  1. Vector

  2. Hash table

  3. Linked list

  4. Enumeration


Correct Option: C

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

  1. Set

  2. List

  3. Collections

  4. None of the above


Correct Option: A

What is the life cycle of a servlet?

  1. init(),service(),destroy()

  2. init(),destroy(),service(),

  3. init(),process(),destroy()

  4. init(),start(),destroy()


Correct Option: A
- Hide questions