What is the correct syntax to output "Hello World" in C#?
Session 1

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Mohammad Saleem
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
System.Print(Hello World);
Print(" Hello World");
Consol.WriteLine(" Hello World");
cout<<"Hello World";
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in C# code?
//
Cmnt->
<--
#
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to create a variable that should store text?
Txt
str
CStrting
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code:
double x = 5.4;
int y = (int)x;
Console.WriteLine(y);
5.4
5
4
error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code:
double x = 7;
x++;
//x = x + 3;
Console.WriteLine(x);
10
7
8
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code:
int var = " Hello ";
int var2 = " World"
Console.WriteLine(var+var2);
HelloWorld
Hello World
Hello
World
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this standard, the first letter of the word is always in small letter and after that, each word starts with a capital letter.
Camel Case
Pascal Case
Underscore Prefix
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
LUA Test

Quiz
•
9th Grade - University
15 questions
Python Fundamentals Quiz

Quiz
•
11th Grade
10 questions
C# Programming 2

Quiz
•
12th Grade
15 questions
Java Beginners

Quiz
•
11th Grade
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
10 questions
PCEP Section 1E: Perform Input/Output console operations

Quiz
•
12th Grade
10 questions
C#

Quiz
•
11th Grade
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
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
30 questions
Linear Inequalities

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

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