
C# Programming Mock Exam 2.2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Penny Kokkali
FREE Resource
Enhance your content in a minute
44 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operators is used to check if two values are equal in C#?
!=
==
=
>=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C# code when dividing two integers? int x = 8; int y = 3; Console.WriteLine(x / y);
2
2.666
3
An error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid looping construct in C#?
for
until
while
do-while
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid variable name in C#?
varName
int_123
123var
myVariable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a for loop, what is the purpose of the increment section?
To set the initial value of the loop counter
To update the loop counter
To specify the condition for loop termination
To declare and initialize the loop counter
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which C# data type should you use for a variable with large decimal values by default?
double
char
decimal
int
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if an exception is caught in C#?
The program continues running
The program crashes
The exception is ignored
The system recovers automatically
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
40 questions
Introduction to Web Systems Exam
Quiz
•
University
48 questions
Audit Sistem Informasi Quiz UTS Bag_1
Quiz
•
University
40 questions
Class Test 1 - CSE 443 (Mobile Telecommunication)
Quiz
•
University
40 questions
2025 UAS
Quiz
•
University
45 questions
Computer Hardware and Software Review
Quiz
•
KG - University
45 questions
Davinci Resolve 17 Fusion 101
Quiz
•
11th Grade - Professi...
41 questions
Soal WAN Tkj kls 2
Quiz
•
University
45 questions
Microsoft Excels: Formulas and Functions
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
