
C# Programming Essentials
Authored by Rodrigo Calapan
Professional Development
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an int in C#?
-1
1
null
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store a single character in C#?
string
float
int
char
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a conditional statement in C#?
else
when
if
switch
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write an if statement in C#?
if (condition) { // code to execute }
if condition { // code to execute }
if (condition) // code to execute
if { condition } // code to execute
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the else clause in an if-else statement?
To create a loop that repeats the if condition.
To execute a block of code when the if condition is true.
To execute a block of code when the if condition is false.
To define a function that runs before the if statement.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can you nest if statements in C#? Give an example.
if (condition1) { if (condition2) { // Code to execute if condition1 is false } }
Example: if (condition1) { if (condition2) { // Code to execute if both condition1 and condition2 are true } }
if (condition1) { // Code to execute }
if (condition1 && condition2) { // Code to execute if either condition is true }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a switch statement in C#?
switch (variable) { case value1: // code block; break; case value2: // code block; break; default: // code block; }
switch: variable { case value1: // code block; }
switch (variable) case value1: // code block; break;
switch variable { case value1: // code block; }
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
10 questions
ASM Global - EXPERIENCE
Quiz
•
Professional Development
10 questions
G&V Review-1
Quiz
•
University - Professi...
10 questions
Brain Teaser - Howbury School
Quiz
•
Professional Development
15 questions
BJT - BASICS
Quiz
•
Professional Development
11 questions
PEMANTAPAN KETRAMPILAN DIRI PENJAWAT AWAM
Quiz
•
Professional Development
18 questions
Collocation
Quiz
•
Professional Development
20 questions
contract law 3-elements
Quiz
•
Professional Development
15 questions
Home Insurance Assessment
Quiz
•
Professional Development
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade