programming languages Online Quiz - 240
Description: programming languages Online Quiz - 240 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
What does Debug.assert() do?
Connection string entries in web.config file can be encrypted using following tool(S): 1. aspnet_regiis.exe 2. aspnet_wp.exe 3. svcutil.exe
Which one of following is false about Microsoft-provided data provider classes in ADO.NET ?
Which statement is true for primary key and a unique key?
Which out the following displays a client-side alert message “Processing Successful”, but the code is written at server-side based on some processing:
What is true for DELETE & TRUNCATE commands?
Consider the table and query below: row_id seat_1 seat_2 seat_3 1 boy boy boy 2 girl girl girl 3 boy girl boy 4 girl boy girl 5 boy boy girl 6 girl boy boy SELECT * FROM seating WHERE seat_2 = 'boy' ORDER BY seat_3 DESC, seat_1 Which row is first in the results set returned by the SQL statement above?
Consider the following query: SELECT firstname, lastname, SUM(salary) FROM employees GROUP BY firstname, lastname HAVING SUM(salary) > 20000 ORDER BY lastname ASC Which part of the sample code above contains the SQL default and is therefore NOT necessary in the SQL statement?
Which of the following is the correct syntax for using Dictionary object in your code:
Which of the following is not true about Microsoft Silverlight:
You have following two code segments to read records from flat-file/excel: Code segment 1: OleDbConnection con; con = new System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source = " + System.IO.Path.GetDirectoryName(filename) + "; Extended Properties = \"Text;HDR=YES;FMT=Delimited\""); Code segment 2: OleDbConnection con; con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";Extended Properties=Excel 8.0;"); Which one of following is true:
Suppose you are implementing paging to your datagrid named grdtest using following code: protected void grdtest_PageChanger(object Source, DataGridPageChangedEventArgs E) { DataTable dttable = new DataTable(); //populate dttable with appropriate data from database grdtest.DataSource = dttable; grdtest.DataBind(); } what is the main thing missing in above code:
Which of the following is false for Managed Code performance improvement:
Which is false about reading/writing XML data using System.Xml:
Consider the table and query below: Table Name: products category type price indoor kitchen 1.50 outdoor garden 6.00 indoor Bathroom 4.75 outdoor garden 20.20 indoor bathroom 4.25 Office desktop 9.80 SELECT category, COUNT(DISTINCT type) FROM products GROUP BY category How many rows are returned by the SQL statement listed above?
While creating a view from two tables, you need to ensure that view cannot be affected by modifications to underlying table schema. What should you do to accomplish this goal with least possible amount of overhead?
Which of the following is true about xp command shell in SQL Server 2005:
You have created a cursor named test_cursor inside your stored procedure. Following is the cursor code: --------------------------------------------------------------------- DECLARE @Name AS VARCHAR(100) DECLARE test_cursor CURSOR FOR SELECT empname FROM Employee Order BY empid OPEN test_cursor FETCH NEXT FROM test_cursor INTO @Name WHILE @@FETCH_STATUS <> 0 BEGIN -- Do your internal procesing here FETCH NEXT FROM test_cursor INTO @Name END CLOSE test_cursor DEALLOCATE test_cursor --------------------------------------------------------------------- What correction is required in the code above?
When you need to perform complex calculations or access external resources in SQL Server 2005, which one of the following programming methods do you use?