
PU - Day 1 Assessment - Anand's batch

Quiz
•
Professional Development
•
Professional Development
•
Medium
training atomm
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
IOAC - ML Batch Pre-Assessment -4th-Feb

Quiz
•
Professional Development
9 questions
PreTrainingJavaScript

Quiz
•
Professional Development
10 questions
Introducción al lenguaje Python

Quiz
•
Professional Development
15 questions
Javascript basics

Quiz
•
Professional Development
10 questions
PU- Day 1 Assessments slot 2 - Srinivas's Class

Quiz
•
Professional Development
10 questions
SAP Quiz

Quiz
•
Professional Development
10 questions
Day-4 IOAC - ML Python Assessment_12th-Feb-2023

Quiz
•
Professional Development
10 questions
PLQ-50

Quiz
•
Professional Development
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
7 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development