
C# Fundamentals Assessment

Quiz
•
Computers
•
University
•
Medium
roop lal
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an int in C#?
-1
0
1
null
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a value type in C#?
string
bool
float
int
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a method in C#?
method
void
define
function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a string variable in C#?
string myString;
myString: string;
string myVariable = 'Hello';
var myString = 'Hello';
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'if' statement in C#?
The 'if' statement is used for conditional execution of code.
The 'if' statement is used to define classes.
The 'if' statement is used for looping through arrays.
The 'if' statement is used to declare variables.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a switch statement in C#?
switch (variable) { case value1: // code block; }
switch (variable) { case value1: // code block; default: // code block; }
switch { case value1: // code block; break; }
switch (variable) { case value1: // code block; break; case value2: // code block; break; default: // code block; }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a boolean variable in C#?
int isTrue;
boolean isTrue = true;
bool isTrue; or bool isTrue = true;
string isTrue = 'true';
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: Console.WriteLine(5 > 3);?
False
True
5 < 3
3 > 5
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store a character in C#?
float
char
string
int
Similar Resources on Wayground
10 questions
Variables

Quiz
•
University
10 questions
Python Basics: Dictionaries and Strings

Quiz
•
University - Professi...
13 questions
UTSSKDP1

Quiz
•
University
10 questions
Programming Constructs, Variables, and Procedures

Quiz
•
5th Grade - University
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Strings y listas en Python

Quiz
•
University
13 questions
CSE_A1_QUIZ 6(15-05-23)

Quiz
•
University
8 questions
PRG1 - Day 4 starter

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University