
C# Basics and Operations

Quiz
•
Professional Development
•
Professional Development
•
Hard
Rodrigo Calapan
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in C#?
var age;
string age = 25;
float age;
int age;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid data type in C#?
char*
int
string[]
float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used for addition in C#?
/
*
+
-
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a function in C#?
public returnType functionName(parameterType parameterName) { // function body }
functionName(parameterType parameterName) { // function body }
public functionName(parameterType) { // function body }
returnType functionName(parameterType parameterName)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of an integer variable in C#?
1
null
-1
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to define a constant in C#?
static
final
immutable
const
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 5 / 2 in C#?
2
1
2.5
3
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
EST102 QUIZ II

Quiz
•
Professional Development
10 questions
SK SF #24

Quiz
•
Professional Development
10 questions
LC - Aula 04

Quiz
•
Professional Development
10 questions
Recursia

Quiz
•
Professional Development
17 questions
SQL - parte 1

Quiz
•
Professional Development
15 questions
EWS + CODE BLUE

Quiz
•
Professional Development
20 questions
Fruits and Vegetables (EFL for Restaurant Staff)

Quiz
•
Professional Development
20 questions
1_Java Fundamentals_Array

Quiz
•
Professional Development
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