
1 - KickStart C#
Authored by David Santafe
Professional Development
Professional Development
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int i;
for (i = 1; i < 9; i++) {
if (i % 2 != 0) {
continue;
}
if (i % 3 == 0) {
break;
}
}
Console.WriteLine(i);
6
4
7
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int x = 16;
int y = 3;
x %= y * 2;
Console.WriteLine(x++);
3
4
7
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
class P {
public string N1 {
get {
return "Jen";
}
set {}
}
}
static void Main(string[] args) {
P p = new P();
p.N1 = "Bob";
Console.WriteLine(p.N1);
}
Exception
Jen
Bob
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
//What is the output of this code?
class Person {
public string name {
get;
set;
}
public string country {
get;
set;
}
public Person() {
name = "Petar";
country = "Bulgaria";
}
}
static void Main(string[] args) {
Person p1 = new Person();
p1.name = "Gosho";
Console.Write(p1.name[2]);
Console.Write(p1.country[4]);
}
pb
eg
sa
ai
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid array declaration containing 3 elements?
int a[] = int { 0,0,0 };
int[] a = int[3];
int[] a = new int { 0, 0, 0 };
int[] a = new int[3];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operator returns the size of a data type in C#?
typeof
set
get
sizeof
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
int a = 1,
b;
b = increase(a);
Console.WriteLine(a);
0
1
3
2
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
PMP PROJECT QUALITY MANAGEMENT
Quiz
•
Professional Development
10 questions
Diseño Organizacional
Quiz
•
Professional Development
10 questions
Introduction to Hospitality and Tourism
Quiz
•
Professional Development
10 questions
Kuis Array
Quiz
•
Professional Development
11 questions
IM LF11
Quiz
•
Professional Development
10 questions
Airport Security Awareness
Quiz
•
Professional Development
17 questions
Cycle 1 - Session 1 Quiz - Problem solving and critiquing
Quiz
•
Professional Development
10 questions
Diodes and rectifiers
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development