Professional Documents
Culture Documents
Dotnet 1ducarrt
Dotnet 1ducarrt
PROGRAMMING QUESTION
Time – 1hour
1. Consider a table named "Employees" with columns "EmployeeID," "FirstName," "LastName," and
"DepartmentID." Which SQL query will retrieve the count of employees in each department, sorted in
descending order of the department's employee count?
2. Given a table named "Students" with columns "StudentID," "Name," and "Score," which SQL query
will return the names of students who scored higher than the average score?
3. Consider a table named "Products" with columns "ProductID," "ProductName," "CategoryID," and
"Price." Which SQL query will retrieve the product names and their respective categories for products
that have a price higher than the average price of all products?
class Program
{
2
int x = 10;
int y = 20;
int temp = a;
a = b;
b = temp;
a) x: 10, y: 20
b) x: 20, y: 10
c) Compiler error
d) Runtime error
class Program
int x = 5;
int y = 7;
a += 2;
3
b += 3;
return a + b;
a) x: 5, y: 10, result: 20
b) x: 7, y: 10, result: 20
c) x: 5, y: 10, result: 17
d) x: 7, y: 10, result: 17
a) '21'
b) '221'
c) 3
d) 21
typeof null;
a) 'null'
b) 'object'
c) 'undefined'
d) 'string'
var x = 10;
console.log(x++);
a) 10
b) 11
c) 9
4
d) NaN
a) parseInt()
b) parseFloat()
c) toString()
d) toInteger()
a) try-catch-finally
b) if-else
c) switch-case
d) for loop
12. Which of the following is the base class for all classes in the .NET Framework?
a) System.Object
b) System.Type
c) System.Base
d) System.Main
13. Which of the following is used to define the structure of a database in .NET?
a) Entity Framework
b) LINQ
c) ADO.NET
d) ASP.NET
IQ
1. Which word does not belong in the following group?
a) Radio
b) Television
c) Internet
d) Newspaper
2. If a train travels at a speed of 150 kilometers per hour, how far can it travel in 3 hours and 45
minutes?
a) 525 kilometers
b) 600 kilometers
c) 675 kilometers
d) 750 kilometers
3. If you rearrange the letters "TRIAN" to form a word, which word would you get?
a) TRAIN
b) RAIN
c) INTRA
d) RANT
4. If a rectangle has a perimeter of 60 units and one side measures 15 units, what is the length of the
other side?
a) 7.5 units
b) 12 units
c) 15 units
d) 17.5 units
a) U
b) V
c) W
d) X
6. If it takes 6 workers 12 days to complete a project, how long would it take 12 workers to complete
the same project?
a) 3 days
b) 4 days
c) 6 days
d) d) 9 days
6
7. Which number should come next in the series: 5, 8, 13, 20, 29, ___?
a) 38
b) 40
c) 41
d) 45
a) 4
b) 5
c) 6
d) 7
a) Earth
a) Jupiter
b) Saturn
c) Uranus
a) 20
b) 21
c) 22
d) 23