
.Net full stack programming

Quiz
•
Instructional Technology
•
University
•
Medium
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
Similar Resources on Wayground
10 questions
Swift: Funciones, arrays y variables

Quiz
•
University
20 questions
Upskilling re-skilling Samsung

Quiz
•
University
16 questions
Quiz PBD 14Okt2022

Quiz
•
University
20 questions
PSC - Java (vetores)

Quiz
•
University
20 questions
REPRESENTACIÓN DE LENGUAJE MÁQUINA

Quiz
•
10th Grade - University
11 questions
Go Pointers

Quiz
•
University
15 questions
R6_2.N_LC_3TRI_Métodos String Lógica Computacional

Quiz
•
9th Grade - University
10 questions
DATASTRUCT-ASSMNT

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade