
PracticeQuizVinodJain1

Quiz
•
Computers
•
University
•
Medium
Vinod Jain
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
static void Main(string[] args)
{
float f = 12;
int x = f;
Console.WriteLine("{0}", x);
}
(a) 12
(b) 12.0
(c) 0
(d) Syntax Error
A
B
C
D
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
static void Main(string[] args)
{
int f = 12;
float x = f;
Console.WriteLine("{0}", x);
Console.ReadKey();
}
(a) 12
(b) 12.0
(c) 0
(d) Syntax Error
A
B
C
D
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
static void Main(string[] args)
{
Object myBoxed = (Object) 12;
int myVal = myBoxed;
Console.WriteLine("{0}", myVal);
Console.ReadKey();
}
(a) 12
(b) 12.0
(c) 0
(d) Syntax Error
A
B
C
D
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
static void Main(string[] args)
{
Object myBoxed = (Object) 12;
int myUnBoxed = (int)myBoxed;
Console.WriteLine("{0}", myUnBoxed);
Console.ReadKey();
}
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
enum Months
{
January,
February,
March = 6,
April,
May,
June,
July
}
static void Main(string[] args)
{
int myNum = (int)Months.June;
Console.WriteLine("{0}", myNum);
Console.ReadKey();
}
(a) 6
(b) 7
(c) 8
(d)None of these
A
B
C
D
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
static void Main(string[] args)
{
string str = "Happy";
for (int i = 0; i <str.Length; i=i+2)
Console.Write("{0}", str[i]);
Console.ReadKey(); Console.ReadKey();
}
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of given C# Code
public static void Main(string[] args)
{
int[] arr = new int[5];
arr[0] = 1;
arr[2] = 2;
arr[4] = 3;
for (int i = 0; i < arr.Length; i++)
Console.Write(arr[i]);
Console.ReadKey();
}
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Tec 1 Quiz 1

Quiz
•
University
9 questions
IPC144 -- Midterm Review

Quiz
•
University
10 questions
Latihan1

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
15 questions
C++ Quiz-1

Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
11 questions
Java Quizz 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University