programming languages Online Quiz - 85

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

To localize Tiles, you can

  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None

Correct Option: A

To localize Validator forms, you can

  1. Create separate configuration files for each locale

  2. Specify a locale for a form-set

  3. Either A or B

  4. None

Correct Option: B

From a MVC perspective, Struts provides the

  1. Model

  2. View

  3. Controller

  4. ViewController

Correct Option: C

Identify the advantages of JSP over Servlet

  1. a) Embedding of Java code in HTML pages

  2. b) Platform independence

  3. c) Creation of database-driven Web applications

  4. d) Server-side programming capabilities

Correct Option: A

Write the following code for a JSP page: RESULT PAGE Suppose you access this JSP file, Find out your answer.

  1. A blank page will be displayed.

  2. A page with the text Welcome is displayed

  3. An exception will be thrown because the implicit out object is not used

  4. An exception will be thrown because PrintWriter can be used in servlets only

Correct Option: B

What are the life-cycle methods of JSP?

  1. jspInit()

  2. jspService()

  3. jspDestroy()

  4. jspEnd()

Correct Option: A,B,C

How many scope values for the tag

  1. 1

  2. 2

  3. 3

  4. 4

Correct Option: D

What is output of follwoing int main() { int a=000; cout << "R4R:"; cout << a; return 0; }

  1. Execution time error

  2. Syntax error

  3. R4R:0

  4. None

Correct Option: C

By default fields in a C++ class

  1. Public

  2. Private

  3. Protected

  4. Unintialized

Correct Option: B
  1. Private Funtion

  2. Method Function

  3. Member Function

  4. Class

Correct Option: C

Opertor Overloading is like that

  1. giving new meaning to existing C++ operators

  2. making c++ operators works with objects

  3. both a and b

  4. either a or b

Correct Option: C

A two dimension array can also be thought of

  1. Table

  2. Array of Arrays

  3. list of arrays

  4. both a and b

Correct Option: D

Function overloading in C++ is

  1. a group function with the same name

  2. all have the same number and type of arguments

  3. functions with same name and same number and type of arguments

  4. none

Correct Option: A

What is the namespace used in .NET Data Provider for Oracle

  1. System.Data.Oracle

  2. System.Data.OracleClient

  3. System.Data

  4. System.Data.Sql

Correct Option: B

You want to cache the data for your application and do some extensive processing, which object will be best suited for your application

  1. DataReader

  2. Linq

  3. DataSet

  4. All of these

Correct Option: C

Class used for the .NET database transaction

  1. System.Data.sql

  2. DBtransaction

  3. SqlTransaction

  4. DbConnectionStringBuilder

Correct Option: B

For partial-trust scenarios, you can require CAS privileges for particular methods in your code by specifying an attribute

  1. SqldataAttribute

  2. SqlClientPermissionAttribute

  3. SecqurityAttribute

  4. None of these

Correct Option: B

To include paging for a small query result the following statement can be used

  1. adapter.Fill(dataSet, currentIndex, pageSize, "Orders")

  2. adapter.Fill(dataSet, "Orders")

  3. adapter.Fill(pageSize,dataSet,"Orders",1)

  4. dataSet.Tables("Orders").Rows

Correct Option: A

Following namespace used for dataset and datatable

  1. System.Data.SqlClient

  2. System.Data.OracleClient

  3. System.Data.Odbc

  4. System.Data

Correct Option: D
- Hide questions