Match the following actions with their purposes in a C# program.
Hello World - C# Quiz Sheet

Quiz
•
Computers
•
11th Grade
•
Easy
Emily Chard
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MATCH QUESTION
45 sec • 5 pts
Console.WriteLine("Hello World");
To read input from the user
Console.ForegroundColor = ConsoleColor.Red;
To write output to the console
Console.Title = "Skynet";
To set the title of the console window
Console.ReadLine();
To change the text color
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which method is used to read a line of input from the console in C#?
Console.WriteLine()
Console.ReadLine()
Console.ReadKey()
Console.Write()
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does 'Console.ForegroundColor = ConsoleColor.Green;' do in the program?
Sets the background color to green
Sets the text color to green
Sets the window height
Sets the console title
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
In the code, what is the purpose of 'Console.WindowHeight = 40;'?
To set the width of the console window
To set the height of the console window
To set the title of the console window
To set the color of the console text
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the output of 'Console.WriteLine("Hello, what's your name?");'?
It reads the user's name
It writes 'Hello, what's your name?' to the console
It changes the console color
It sets the console title
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the function of 'Console.ReadKey();' in the program?
To read a line of input
To wait for a key press
To write output to the console
To change the text color
7.
DRAG AND DROP QUESTION
45 sec • 5 pts
(a) is a method in the C# program.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
8 questions
VB 1

Quiz
•
6th - 12th Grade
10 questions
Windows 10 System Management Tools

Quiz
•
9th Grade - University
12 questions
Python Level 1 Quiz #6

Quiz
•
5th - 12th Grade
14 questions
LA7.C7: Turtle Graphics

Quiz
•
9th Grade - University
10 questions
AP CSP code.org Unit 3 2020

Quiz
•
9th - 12th Grade
10 questions
CSP Unit 3 Assessment

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University