0% found this document useful (0 votes)
3 views

Report - Responses (2)

The document contains a series of multiple-choice questions related to programming concepts, specifically focusing on C#, SQL, MVC, and JavaScript. Each question tests knowledge on topics such as inheritance, data types, SQL commands, and JavaScript syntax. The format includes code snippets and theoretical questions, with correct answers indicated for each question.

Uploaded by

Ayush Srivastava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Report - Responses (2)

The document contains a series of multiple-choice questions related to programming concepts, specifically focusing on C#, SQL, MVC, and JavaScript. Each question tests knowledge on topics such as inheritance, data types, SQL commands, and JavaScript syntax. The format includes code snippets and theoretical questions, with correct answers indicated for each question.

Uploaded by

Ayush Srivastava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Quadlabs Level 1 - Online Test

 1. A derived class can stop virtual inheritance by declaring an override as

Points: inherits
1/1 extends
inheritable
Not inheritable
Sealed 

 2. What will be the output of below code snippet?

Points: using System;


1/1 public class Program {
public static void Main() {
int i;
for (i = 0; i < 1; i++) {
--i;
}
Console.WriteLine(i);
}
}

0
1
-1
Infinite Loop 

 3. What will be the output of below code snippet?

Points: using System;


1/1 public class Program {
public static void Main(string[] args) {
int a = 7, b = 2, c;
c = a / b;
Console.WriteLine(c);
}
}

4
3
3.5
4.5

 4. Which of the following are value types?

Points: 1. Integer
1/1
2. Array
3. Single
4. String
5. Long
1, 2, 5
1, 3, 5 
2, 4
3, 5
 5. What will be the output of below code snippet?

Points: using System;


1/1 public class Program {
public static void Main(string[] args) {
for (int num = 1; num <= 10; num++) {
if (num <= 5) {
continue;
}
Console.Write(num);
}
}
}

6,7,8,9,10 
5,6,7,8,9,10
1,2,3,4,5
1,2,3,4

 6. How many constructors a C# class can define?

Points: Only one


1/1 Only two
Any number 
None

 7. We can manage states in asp.net application using

Points: Session Objects


1/1 Application Objects
Viewstate
All of the above 
Request.QueyString

 8. Which of the following .NET components can be used to remove unused references from the managed heap?

Points: Common Language Infrastructure


1/1 CLR
Garbage Collector 
Class Loader

 9. What will be the output of below code snippet?

Points: using System;


1/1 public class Program {
public static void Main() {
int i = 0, j = 0;
Console.WriteLine(i++);
Console.WriteLine(",");
Console.WriteLine(++j);
}
}

1,0
0,1 
0,0
1,1
 10. What will be the output of below code snippet?

Points: using System;


1/1 public class Program
{
public static void Main(string[] args)
{
int[] i = new int[0];
Console.WriteLine(i[0]);
}
}

0
IndexOutOfRangeException 
Nothing is printed as array is empty
1

 11. A CASE SQL statement is which of the following?

Points: A way to establish an IF-THEN-ELSE in SQL. 


1/1 A way to establish a loop in SQL.
A way to establish a data definition in SQL.
All of the above.

 12. Which of the following statements is true concerning subqueries?

Points: Involves the use of an inner and outer query. 


1/1
Cannot return the same result as a query that is not a subquery.
Does not start with the word SELECT.
All of the above.

 13. Which of the following operations requires the relations to be union compatible?

Points: UNION
1/1 INTERSECTION
DIFFERENCE
ALL OF THESE 

 14. Which data manipulation command is used to combines the records from one or more tables?

Points: SELECT
1/1 PROJECT
JOIN 
PRODUCT

 15. The command used to delete a particular column in a relation is ____________

Points: UPDATE TABLE


1/1 TRUNCATE COLUMN
ALTER , DROP 
DELETE COLUMN
 16. Which statement in SQL allows us to change the definition of a table is?

Points: ALTER 
1/1 CREATE
UPDATE
SELECT

 17. What type of join is needed when you wish to include rows that do not have matching values?

Points: Equi-join
1/1
Natural join
Outer join 
All of the above.

 18. A UNION query is which of the following?

Points: Combines the output from no more than two queries and must include the same number of columns.
1/1 Combines the output from no more than two queries and does not include the same number of columns.
Combines the output from multiple queries and must include the same number of columns. 
Combines the output from multiple queries and does not include the same number of columns.

 19. The virtual table that its created by data from the result of an SQL 'Select' statement is called _________

Points: View 
1/1 Synonym
Sequence
Transaction

 20. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME,
ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID
Points:
1/1 Equi-join 
Natural join
Outer join
Cartesian join

 21. ______ attributes can be used for data validation in MVC.

Points: DataAnnotations 
1/1 Fluent API
DataModel
HtmlHelper

 22. Which of the followings are ActionSelectors?

Points: ActionName
1/1 NonAction
ActionVerbs
All of the above 
 23. Which of the following is a default route pattern in MVC?

Points: "/{action}/{controller}/{id}"
1/1 "{controller}/{id}"
"{controller}/{action}/{id}" 
"{controller}/{action}"

 24. Area allows us to ____________.

Points: Partition large application into smaller units. 


1/1 Separate Mode, View and Controller folders.
Partition View folder of large application into multiple view folders
All of the above

 25. Which of the following view contains common parts of UI?

Points: Partial View


1/1 HTML View
Layout View 
Razor View

 26. HtmlHelper class _________.

Points: Generates html elements 


1/1 Generates html View
Generates html help file
Generates html model data

 27. The model is a _______ .

Points: Shape of data. 


1/1 Html content
Collection of data
Type of data

 28. Which is the default http method for an action method?

Points: ActionGet 
1/1 ActionPost
ActionPut
ActionDelete

 29. Which of the following method of html helper generates html control based on the data type of specified
property?
Points:
1/1 Html.TextBox()
Html.Password()
Html.Editor() 
Html.Display()
 30. Bundling allows __________.

Points: Loading of multiple images in single request.


1/1 Loading of multiple view files in single request.
Loading of caching of multiple script files.
Loading of multiple script files in single request. 

 31. Syntax for creating a RegExp object:


1. var txt=new RegExp(pattern,attributes);
Points: 2. var txt=/pattern/attributes;
1/1
Which of the above mentioned syntax will correct?
1 only
2 only
Both 1 and 2 
None of the above

 32. Find output of below code

Points: var a = '20';


1/1 var b = a = 30;
document.write(a+b);
Error in Script
'20'30
2030
50 

 33. Consider the code snippet given below:

Points:
1/1 var count = [1,,3];
What is the observation made?
The omitted value takes "undefined" 
This results in an error
This results in an exception
The omitted value takes an integer value

 34. What is divide by 0 in Javascript? var a = 10;


var b = 0;
Points: document.write(a/b);
1/1
'NAN' is printed
0 is printed
Infinity is printed 
Some Garbage Value
 35. Find output of below Javascript code.

Points: var a = 1;
1/1 document.write(a--);
document.write(a);
00
01
11
10 

 36. What will be the output of the following Javascript code?


var string1 = "Letsfindcourse";
Points: var intvalue = 30;
1/1
alert( string1 + intvalue );
Letsfindcourse 30
30
Letsfindcourse30 
Exception

 37. How do we define the term Thread?

Points: Device that controls input


1/1 Variable that controls movement
Controlled execution of applications 
None of the above

 38. What does javascript use instead of == and !=?

Points: It uses bitwise checking


1/1 It uses === and !== instead 
It uses equals() and notequals() instead
It uses equalto()

 39. Find output of below Javascript addition code::

Points:
1/1 document.write("1 plus 1 is " + 1 + 1);
2
1 plus 1 is 2
1 plus 1 is 11 
1 plus 1 is 1 + 1

 40. Consider the following code snippet

Points: const pi=3.14;


1/1 var pi=4;
console.log(pi);
What will be the output for the above code snippet?
This will flash an error 
Prints 4
Prints 3.14
Ambiguity

You might also like