
.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
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 Quizizz
12 questions
Web Apps 03 - MongoDB

Quiz
•
University
16 questions
Quiz PBD 14Okt2022

Quiz
•
University
20 questions
PSC - Java (vetores)

Quiz
•
University
20 questions
Propiedades Esenciales de Bases de Datos

Quiz
•
University
11 questions
CIT In-Person Training Quiz

Quiz
•
University
13 questions
Internet Cookies

Quiz
•
University
11 questions
Python - Data Types

Quiz
•
12th Grade - University
15 questions
Android Studio

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade