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
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
20 questions
C - Strings

Quiz
•
University
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
10 questions
Session 2 Quiz

Quiz
•
University
17 questions
PYTHON-Base n 1-3C

Quiz
•
11th Grade
15 questions
UTS SMT Genap PBO 11 RPL

Quiz
•
11th Grade
10 questions
10 ԹԳՀԳ 2-րդ կիսամյակ ամփոփիչ գրավոր աշխատանք/ֆունկցիաներ/

Quiz
•
10th Grade
20 questions
ITIPT01 Quiz No 1

Quiz
•
University
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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade