programming languages Online Quiz - 85

programming languages Online Quiz - 85

20 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

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
Question 2 Multiple Choice (Multiple Answers)

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
Question 3 Multiple Choice (Multiple Answers)

From a MVC perspective, Struts provides the

  1. Model
  2. View
  3. Controller
  4. ViewController
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

Write the following code for a JSP page: <%@ page language = "java" %> RESULT PAGE <% PrintWriter print = request.getWriter(); print.println("Welcome"); %> 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
Question 6 Multiple Choice (Multiple Answers)

What are the life-cycle methods of JSP?

  1. jspInit()
  2. jspService()
  3. jspDestroy()
  4. jspEnd()
Question 7 Multiple Choice (Single Answer)

How many scope values for the jsp:useBean tag

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

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
Question 9 Multiple Choice (Single Answer)

What is output of following #include <iostream.h> int main() { cout << "R4R" << endl return 0; }

  1. Execution time error
  2. syntax error
  3. R4R
  4. None
Question 10 Multiple Choice (Single Answer)

By default fields in a C++ class

  1. Public
  2. Private
  3. Protected
  4. Unintialized
Question 11 Multiple Choice (Single Answer)

In C++ a function contain in class called as

  1. Private Funtion
  2. Method Function
  3. Member Function
  4. Class
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

A two dimension array can also be thought of

  1. Table
  2. Array of Arrays
  3. list of arrays
  4. both a and b
Question 14 Multiple Choice (Single Answer)

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
Question 15 Multiple Choice (Single Answer)

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
Question 16 Multiple Choice (Single Answer)

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
Question 17 Multiple Choice (Single Answer)

Class used for the .NET database transaction

  1. System.Data.sql
  2. DBtransaction
  3. SqlTransaction
  4. DbConnectionStringBuilder
Question 18 Multiple Choice (Single Answer)

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
Question 19 Multiple Choice (Single Answer)

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
Question 20 Multiple Choice (Single Answer)

Following namespace used for dataset and datatable

  1. System.Data.SqlClient
  2. System.Data.OracleClient
  3. System.Data.Odbc
  4. System.Data