C# Structured, Selection and Iteration

Quiz
•
Computers
•
9th Grade - University
•
Easy
Terry Watts
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a correct syntax to output "Hello World" in C#?
Console.Writeline("Hello World");
Console.WriteLine("Hello World");
Console.WriteLine("Hello World ");
Console.WriteLine("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you insert COMMENTS in C# code?
/* This is a comment
# This is a comment
// This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which data type is used to create a variable that should store text?
String
int
txt
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you create a variable with the numeric value 5?
num x = 5
int x = 5;
int x == 5;
double x = 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you create a variable with the decimal number 2.8?
byte x = 2.8;
double x = 2.8;
int x = 2.8;
int x = 2.8D;
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which string handling function can be used to find the length of a string?
.Length()
.length();
.getLength();
.Length
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which operator is used to add together two values?
The & sign
The + sign
The * sign
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Unit 1 Post Test: Basic Python

Quiz
•
9th - 12th Grade
10 questions
C# Programming Basics Quiz

Quiz
•
10th Grade
15 questions
Java Programming

Quiz
•
University
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
10 questions
C# Programming 2

Quiz
•
12th Grade
20 questions
Basic Python

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade