
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
PU - Day 1 assessments - Sivaram's class

Quiz
•
Professional Development
15 questions
Basic JavaScript

Quiz
•
Professional Development
15 questions
Quiz 2 Internship on Fundamentals of Python

Quiz
•
Professional Development
10 questions
PU Day 1 assessments - Srinivas's batch

Quiz
•
Professional Development
9 questions
Python Looping

Quiz
•
Professional Development
10 questions
Simple Easy Basic Lua Quiz

Quiz
•
4th Grade - Professio...
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade