programming languages Online Quiz - 85
programming languages Online Quiz - 85
Questions
To localize Tiles, you can
- Create separate configuration files for each locale
- Specify an locale for a definition
- Either A or B
- None
To localize Validator forms, you can
- Create separate configuration files for each locale
- Specify a locale for a form-set
- Either A or B
- None
From a MVC perspective, Struts provides the
- Model
- View
- Controller
- ViewController
Identify the advantages of JSP over Servlet
- a) Embedding of Java code in HTML pages
- b) Platform independence
- c) Creation of database-driven Web applications
- d) Server-side programming capabilities
Write the following code for a JSP page: <%@ page language = "java" %>
- A blank page will be displayed.
- A page with the text Welcome is displayed
- An exception will be thrown because the implicit out object is not used
- An exception will be thrown because PrintWriter can be used in servlets only
What are the life-cycle methods of JSP?
- jspInit()
- jspService()
- jspDestroy()
- jspEnd()
What is output of follwoing int main() { int a=000; cout << "R4R:"; cout << a; return 0; }
- Execution time error
- Syntax error
- R4R:0
- None
What is output of following #include <iostream.h> int main() { cout << "R4R" << endl return 0; }
- Execution time error
- syntax error
- R4R
- None
By default fields in a C++ class
- Public
- Private
- Protected
- Unintialized
In C++ a function contain in class called as
- Private Funtion
- Method Function
- Member Function
- Class
Opertor Overloading is like that
- giving new meaning to existing C++ operators
- making c++ operators works with objects
- both a and b
- either a or b
A two dimension array can also be thought of
- Table
- Array of Arrays
- list of arrays
- both a and b
Function overloading in C++ is
- a group function with the same name
- all have the same number and type of arguments
- functions with same name and same number and type of arguments
- none
What is the namespace used in .NET Data Provider for Oracle
- System.Data.Oracle
- System.Data.OracleClient
- System.Data
- System.Data.Sql
You want to cache the data for your application and do some extensive processing, which object will be best suited for your application
- DataReader
- Linq
- DataSet
- All of these
Class used for the .NET database transaction
- System.Data.sql
- DBtransaction
- SqlTransaction
- DbConnectionStringBuilder
For partial-trust scenarios, you can require CAS privileges for particular methods in your code by specifying an attribute
- SqldataAttribute
- SqlClientPermissionAttribute
- SecqurityAttribute
- None of these
To include paging for a small query result the following statement can be used
- adapter.Fill(dataSet, currentIndex, pageSize, "Orders")
- adapter.Fill(dataSet, "Orders")
- adapter.Fill(pageSize,dataSet,"Orders",1)
- dataSet.Tables("Orders").Rows
Following namespace used for dataset and datatable
- System.Data.SqlClient
- System.Data.OracleClient
- System.Data.Odbc
- System.Data