.Net full stack programming

.Net full stack programming

University

15 Qs

quiz-placeholder

Similar activities

it10

it10

University

20 Qs

Programming Languages

Programming Languages

1st Grade - University

15 Qs

IT (Information technology) - Adérito Neto PI0919

IT (Information technology) - Adérito Neto PI0919

10th Grade - Professional Development

20 Qs

Quiz Basis Data

Quiz Basis Data

University

15 Qs

Examen BD

Examen BD

1st Grade - Professional Development

15 Qs

SQL: operadores

SQL: operadores

University

10 Qs

Plan de Majoremiento Base de Datos

Plan de Majoremiento Base de Datos

University

20 Qs

Sec. 11: User Accounts and Groups

Sec. 11: User Accounts and Groups

University

10 Qs

.Net full stack programming

.Net full stack programming

Assessment

Quiz

Instructional Technology

University

Medium

Created by

Rakheeba Taseen

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between System.String and string?

string is used for fied-size strings in C#, while System.String is used for all the strings.

There is no such class as System.String

There is none—string is an alias for System. String.

System.String is a VB.NET data type, while string is a C# type.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

It breaks from only the outer loop.

It breaks from all loops.

It breaks from only the inner loop.

It breaks from the outer loop after the second iteration.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a namespace?

a group of classes, structures, interfaces, enumerations, and delegates—organized in a logical hierarchy by function that enable you to access the core functionality you need in your applications

a group of assemblies—in a logical hierarchy by function—that enable you to access the core functionality you need in your applications

a group of methods—in a logical hierarchy by class—that enable you to access the core functionality you need in .NET

a group of generic collections—in a logical hierarchy by function—that enable you to access the core functionality you need in your applications

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true of delegates?

Delegates are not supported in the current version of C#

They cannot be used as callbacks

They can be chained together.

Only variables can be passed to delegates as parameters.

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In what order would the employee names in this example be printed to the console?

string[] employees = { "Joe", "Bob", "Carol", "Alice", "Will" }; IEnumerable<string> employeeQuery = from person in employees orderby person select person; foreach(string employee in employeeQuery) { Console.WriteLine(employee); }

First in ,first out

Last in ,first out

Ascending order

unordered

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following?

public delegate void AuthCallback(bool validUser);

public static AuthCallback loginCallback = Login;

public static void Login()

{ Console.WriteLine("Valid user!"); }

public static void Main(string[] args) { loginCallback(true); }

Login successful

valid user!

an error, because the method signature of Login doesn't match the delegate

Login successful. valid user!

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is wrong with this code?

void MyFunction() {

{ int a = 10; int b = 20; int c = a + b; }

Console.WriteLine(c);

}

  •  Variable c is never used; displaying it on the console does not count as usage.

Variables a and b are never used.

You cannot place code inside brackets inside another block.

Variable c no longer exists outside the block.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?