
C# Programming Mock Exam 2.2

Quiz
•
Computers
•
University
•
Hard
Penny Kokkali
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
41 questions
Reflection: SwiftUI

Quiz
•
University
45 questions
Экзамен по MatLab.

Quiz
•
University
44 questions
Tin học ôn

Quiz
•
10th Grade - University
45 questions
Fundamentos-Programacion

Quiz
•
University
40 questions
CPT 231 Midterm Part II Review

Quiz
•
University
40 questions
Brain Blitz (Round 2)

Quiz
•
University
40 questions
Quiz Draft

Quiz
•
University
40 questions
Remedial PAS Informatika

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University