Success Forge C# Assignment 1

Quiz
•
Computers
•
Professional Development
•
Hard
Aniket Molke
Used 2+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct syntax for an if statement in C#?
if condition { ... }
if (condition) { ... }
if [condition] { ... }
if {condition} [ ... ]
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is NOT an arithmetic operator in C#?
+
*
--
&&
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
int a = 10, b = 20;
if (a < b) { Console.WriteLine("a is less than b"); }
a is less than b
No output
Compilation error
b is less than a
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which loop guarantees execution at least once?
for
while
do-while
foreach
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
int a = 5, b = 3;
Console.WriteLine(a % b);
1
2
0
3
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to increment a variable by 1?
x++;
x =+ 1;
x += 1;
Both A and C
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of this code?
0 1 2
1 2 3
0 1 2 3
Infinite loop
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Python traceback

Quiz
•
Professional Development
20 questions
G1Q1

Quiz
•
Professional Development
15 questions
SvensQA Software Testing

Quiz
•
Professional Development
22 questions
C-4 CHAPTAR -1

Quiz
•
Professional Development
15 questions
Snippets LookOver-round 2

Quiz
•
Professional Development
20 questions
C Code Master

Quiz
•
Professional Development
13 questions
Python Final Quiz

Quiz
•
Professional Development
15 questions
Python Class 1

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
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development