
PU - Day 1 Assessment - Anand's batch
Authored by training atomm
Professional Development
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
int i;
for (i = 0; ; )
{
Console.WriteLine("hello");
}
Console.ReadLine();
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
int x = 5;
if (x > 3)
{
Console.WriteLine("x is greater than 3");
}
Console.ReadLine();
}
The program will print nothing.
The program will not compile due to an error.
The program will print 'x is less than or equal to 3'.
The program will print 'x is greater than 3'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
for (int j = 0; j < 3; j++)
{
Console.WriteLine(j);
}
Console.ReadLine();
}
The program will print 0, 1, 2.
The program will print nothing.
The program will print 1, 2, 3.
The program will print 0, 1, 2, 3.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
string str = null;
Console.WriteLine(str.Length);
Console.ReadLine();
}
The program will print 0.
The program will throw a NullReferenceException.
The program will print 'null'.
The program will compile but print nothing.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
int I, X;
for (I = 1; I <= (9 % 2 + I); I++)
{
X = (I 3 + I 2) / I;
Console.WriteLine(X);
}
Console.ReadLine();
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
int a = 10;
if (a == 10)
{
Console.WriteLine("a is 10");
}
Console.ReadLine();
}
The program will print 'a is not 10'.
The program will throw an error.
The program will print 'a is 10'.
The program will print nothing.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C# code?
static void Main(string[] args)
{
for (int i = 0; i < 5; i++)
{
if (i == 3)
break;
Console.WriteLine(i);
}
Console.ReadLine();
}
The program will print 0, 1, 2, 3, 4.
The program will print nothing.
The program will print 0, 1, 2, 3.
The program will print 0, 1, 2.
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
10 questions
1. Intro to Computer Vision
Quiz
•
Professional Development
11 questions
Total Rewards: Compensation and Benefits Quiz
Quiz
•
Professional Development
11 questions
Commercial 2022 Priorities
Quiz
•
Professional Development
10 questions
Recap Quiz - CRAFT Experiences - Oberoi
Quiz
•
Professional Development
10 questions
Be an AB Expert
Quiz
•
Professional Development
11 questions
City and Guilds Power Tool Care Quiz
Quiz
•
Professional Development
14 questions
Lean Six Sigma Green Belt
Quiz
•
Professional Development
11 questions
Scheduled Waste Management
Quiz
•
Professional Development
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade