
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
11 questions
Day-15

Quiz
•
Professional Development
10 questions
Binary Search Tree

Quiz
•
Professional Development
14 questions
Fundamental Python

Quiz
•
Professional Development
13 questions
Quiz JC ( By Jojo 5 )

Quiz
•
Professional Development
11 questions
UC_TM04_Strings_Pointers

Quiz
•
University - Professi...
15 questions
ABP Badung Plant 2022 Part 2

Quiz
•
Professional Development
10 questions
Food Riddles

Quiz
•
Professional Development
10 questions
Super 15 MERN Stack

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