
.Net full stack programming
Authored by Rakheeba Taseen
Instructional Technology
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Microsoft Teams Competition
Quiz
•
University - Professi...
15 questions
PEC 101 Educ. Technology
Quiz
•
University
10 questions
Redes Sociales
Quiz
•
3rd Grade - Professio...
15 questions
Cloud migration prerequisite
Quiz
•
University - Professi...
15 questions
CNS Transport layer
Quiz
•
University
20 questions
Windows 10 Configuration
Quiz
•
University
10 questions
Media and Information Literacy
Quiz
•
1st Grade - University
18 questions
Programming in C language
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University