ASP.NET with SQL Server Test
A company has the following departments: Marketing, Designing, production, Packing What will be the result of the following query? select * from table where department < 'marketing';
A production house needs a report about the sale where total sale of the day is more than $20,000. Which query should be used?
Check the following code: Public Shared Sub UpdateData(ByVal sql As String,ByVal connectionString As String, ByVal dataTable As DataTable) Dim da As New OleDb.OleDbDataAdapter() Dim cnn As New Ol...
Choose the appropriate query for the Products table where data should be displayed primarily in ascending order of the ProductGroup column. Secondary sorting should be in descending order of the Cu...
Consider the following queries: 1. select * from employee where department LIKE '[^F-M]%'; 2. select * from employee where department = '[^F-M]%'; Select the correct option:
Consider the following table structure of students: rollno int name varchar(20) course varchar(20) What will be the query to display the courses in w...
Consider the following two statements and choose the most appropriate option: 1. For configuration, ASP.NET uses IIS Metabase 2. For configuration, ASP.NET uses an XML based configuration system
Consider the following two statements relating to ASP.NET and choose the most appropriate option: Statement 1: Value types are allocated on a stack Statement 2: Reference types are allocated on a ...
Consider the following two tables: 1. customers( customer_id, customer_name) 2. branch ( branch_id, branch_name ) What will be the output if the following query is executed: Select *, bran...
Consider the query: SELECT name FROM Student WHERE name LIKE '_a%'; Which names will be displayed?
Consider the transaction: Begin Transaction Create table A ( x smallint, y smallint) Create table B ( p smallint, q smallint) Update A set x=600 where y > 700 Updat...
Evaluate the following SQL statement: SELECT e.employee_id,( (.15* e.salary) + (.5 * e.commission_pct) + (s.sales_amount * (.35 * e.bonus))) AS CALC_VALUE FROM employees e, sales s WHERE e.employe...
Examine the code given below: SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000 Which of the following statements is correct with regard to this code?
Examine the query:- select (2/2/4) from tab1; where tab1 is a table with one row. This would give a result of:
Examine the two SQL statements given below: SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY salary DESC SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC What is tru...
How can you change "Hansen" into "Nilsen" in the LastName column in the Persons Table?
How can you pop-up a window to display text that identifies the author of the book?
How can you view the results of Trace.Write() statements?
How you will generate a report with minimum network traffic?
In a SQL Server query, what will the output be if you try to perform arithmetic on NULL values?
In ASP.NET, the control's value set during the postback can be accessed in:
In ASP.NET, the exception handling should be used:
In ASP.NET, which of the following is not an event of the Page class?
In SQL Server, which of the following is not a control statement?
In SQL Server, you should avoid the use of cursors because:
In which of the following namespaces is the Assembly class defined?
In which sequence are queries and sub-queries executed by the SQL Engine?
In Windows built-in authentication, what will happen with the following set of statements? <system.web> <authorization> <deny users="RIL"/> <allow users="RIL"/> </authorization> </s...
Is it possible to insert several rows into a table with a single INSERT statement?
Is the FROM clause necessary in every SELECT statement?
It is time for the annual sales awards at your company. The awards include certificates awarded for the five sales of the highest sale amounts. You need to produce a list of the five highest revenu...
LAST_NAME DEPARTMENT_ID SALARY ALLEN 10 3000 MILLER 20 1500 King 20 2200 Davis ...
Sam is developing an application that enables the users to perform read and write operations on text files. He uses structured exception handling to handle the errors. He writes the code for closin...
Study the situation described below and identify the nature of relationship? Each student can enroll into more than one class. Each class can accommodate more than one student.
The names of those departments where there are more than 100 employees have to be displayed. Given two relations, employees and departments, what query should be used? Employee --------- Empno Emp...
The sales database contains a customer table and an order table. For each order there is one and only one customer, and for each customer there can be zero or more orders. How should primary and ...
The simplest query must include at least________ and _________.
The STUDENT_GRADES table has these columns: STUDENT_ID INT SEMESTER_END DATETIME GPA FLOAT Which of the following statements finds the highest Grade Point Average (G...
View the following Create statement: 1 Create table Pers 2 (EmpNo Int not null, 3 EName Char not null, 4 Join_dt Datetime not null, 5 Pay Int) Which line contains an error?
What data types do the RangeValidator control support?
What does the following line of code do? <%@ Register tagprefix="ril" Tagname="test" Src="rilTest.ascx" %>
What is the correct order of clauses in the select statement? 1 select 2 order by 3 where 4 having 5 group by
What is the order of precedence among the following operators? 1 IN 2 NOT 3 AND 4 OR
What is the total no. of events in Global.asax file in Asp.NET?
What is wrong with the following query: select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)
What will happen if the Server configuration file and the Application configuration file have different values for session state?
What will happen if you query the emp table as shown below: select empno, DISTINCT ename, Salary from emp;
When designing a database table, how do you avoid missing column values for non-primary key columns?
When you make some changes to the configuration file, do you need to stop and start IIS to apply the new settings?
Which DLL is responsible for processing the page requests running on the server?
Which line of code should you use to copy the edited rows from dataset productInfo into another dataset productChanges?
Which of following is correct if you want to import a C# class called myClass that is implemented in the myClass.cs file into a .aspx page?
Which of the following are aggregate functions in SQL?
Which of the following are false for ASP.NET events?
Which of the following are not true in ASP.NET?
Which of the following are the valid methods of the SqlTransaction class?
Which of the following connectionstring in Web.Config is correct if Microsoft SQL Server database named ClassList resides on a server named Neptune is to be used?
Which of the following constraints can be used to enforce the uniqueness of rows in a table?
Which of the following datatypes is not supported by SQL-Server?
Which of the following has the highest order of precedence in SQL Server?
Which of the following is not a service provided by Common Language Runtime (CLR)?
Which of the following is not a valid ASP.NET Web form control?
Which of the following is not a valid directive in ASP.NET?
Which of the following is not a valid SQL operator?
Which of the following is the default configuration file for each application in ASP.NET?
Which of the following is the syntax for creating an Index?
Which of the following is the way to handle Unmanaged Code Exceptions in ASP.NET?
Which of the following objects is required by the Dataset to retrieve data from a database and to save updated data back to the database?
Which of the following queries is valid?
Which of the two statements is true? (a)MSIL code is platform independent (b)CLR is platform dependent
Which one of the following correctly selects rows from the table myTable that have null in column column1?
Which operator will be evaluated first in the following statement: select (age + 3 * 4 / 2 - 8) from emp
Which query will display data from the Pers table relating to Analysts, clerks and Salesmen who joined between 1/1/2005 and 1/2/2005?
XYZ is creating an e-commerce site for PremiumBoutique. The site is distributed across multiple servers in a Web farm. Users will be able to navigate through the pages of the site and select produc...
You are a web developer for an international literary website. Your application has a lot of text content that requires translation and few executable components. Which approach would you use?
You are creating an ASP.NET application for AutoMart Internet Web site. A toolbar is required that will be displayed at the top of each page in the Web site. The toolbar will contain only static HT...
You are creating an ASP.NET application that is hosted on your company's Web server. You want to access a database with minimal effort. What you will not do?
You are creating an ASP.NET application that will record each customer's entry. It is possible that thousands of entries could be posted at any given time. Your application will be hosted on twenty...
You are creating an ASP.NET application that will run on your company's intranet. You want to control the browser window and respond immediately to non-post-back events. Which should you use?
You are creating an ASP.net application to enter timesheet data intuitively. Users will enter data using a DataGrid. You have added a button column to your DataGrid. The button column uses a custom...
You are creating an ASP.NET application. The application will be deployed on intranet. Application uses Microsoft Windows authentication. More than 100 users will use the ASP.NET application simult...
You are creating an ASP.NET page for Premium Consultants. You create a GridView control that displays past purchases made by the user. The GridView control is populated from an existing database wh...
You are creating an ASP.NET page for your company's Web site. Customers will use the ASP.NET page to enter payment information. You add a DropDownList control named oPaymentTypeList that enables cu...
You are creating an ASP.NET Web site for your company. The Web site will use both Microsoft(R) .NET Framework server controls and ActiveX controls. You want to use Microsoft Visual Studio(R) .NET t...
You are debugging a Visual Basic.NET application. You add a variable to the watch window. When Visual Basic enters break mode, the Value of the expression variable is "". What is the most likely ca...
You are debugging an ASP.NET application for Premium Corp.. Users will use the application to produce reports. Your application contains several Debug.WriteLine statements. Which window in Visual S...
You are developing a website that has four layers. The layers are user interface (web pages), business objects, data objects, and database. You want to pass data from the database to controls on a ...
You are developing an application to take orders over the Internet. When the user posts back the order form, you first check to see whether he is a registered customer of your company. If not, you ...
You are maintaining data for its products in the Products table, and you want to see those products, which are 50 items that is currentStock or more than 50 but less than the minimum stock limit of...
You are the software engineer for Premium Corp.. One of the pages in an ASP.NET application contains the following declaration: <%@ Register Tagprefix="WoodySideBankControls" Namespace="WoodySideB...
You create an ASP.NET application for ABC Corporation. The project manager requires a standard appearance for all Web applications. Standards are expected to change periodically. You need to enforc...
You create an ASP.NET application for an online insurance site PremiumInsurance. A page named PersonalDetails.aspx has the following Page directive: <%@ Page Language="VB" CodeBehind="PersonalDeta...
You create an ASP.NET page named Customer.aspx. Customer.aspx contains a Web user control that displays a drop-down list box of Cities. The Web user control is named CityList, and it is defined in ...
You create an ASP.NET page named ProjectCalendar.aspx that shows scheduling information for projects in your company. The page is accessed from various other ASP and ASP.NET pages hosted throughout...
You create an ASP.NET page that allows a user to enter a requested delivery date in a TextBox control named txtDelDate. The date must be no earlier than two business days after the order date, and ...
You have developed a custom server control and have compiled it into a file named FirstReport.dll. The code is displayed below: <%@ Register TagPrefix=" CertKing Tag" Namespace="ReportNS" Assembly...
You need to install an online parcel tracking application and its supporting assemblies so that the application and its assemblies can be uninstalled using the Add/Remove Programs Control Panel app...
You use a Command object to retrieve employee names from the employee table in the database. Which of the following will be returned when this command is executed using ExecuteReader method?
You want to access data from the "Customer" table in the database. You generate a DataSet named "MyDataSet" by adding "Customer" table to it. Which of the following statements should you use to loa...
You want to display the titles of books that meet the following criteria: 1. Purchased before November 11, 2002 2. Price is less than $500 or greater than $900 You want to sort the result by the ...
Your company, StoreIt Inc has stored the text of several journals in a Microsoft SQL Server 7.0 database. Each sentence is stored in a separate record so that the text can be retrieved with the fi...