What is a correct syntax to output "Hello World" in C++?
Q1 Summative Test 1 in C++

Quiz
•
Computers
•
10th Grade
•
Hard
Mernita Palac
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Console.WriteLine("Hello World");
cout << "Hello World";
System.out.print ("Hello World");
print ("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C++ is an alias of C#
True
False
Maybe
I don't know
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you insert COMMENTS in C++ code?
/* This is a comment
// This is a comment
# This is a comment
/ This is a comment /
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to create a variable that should store text?
String
myString
Txt
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
num x = 5
double x = 5;
int x = 5;
x = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
x = 2.8;
byte x = 2.8
double x = 2.8;
int x = 2.8;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to find the length of a string?
length()
getSize()
len()
getLength()
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Senior - Python Assessment 1

Quiz
•
9th - 12th Grade
33 questions
2.1.1 CSE Transitioning from Block to Text Coding

Quiz
•
9th - 12th Grade
34 questions
CB30: Unit 2 Test Review

Quiz
•
9th - 12th Grade
25 questions
CSP - Units 3 & 4

Quiz
•
9th - 12th Grade
25 questions
Understanding Input, Selection and Loops in Python

Quiz
•
7th Grade - University
30 questions
GCSE Quiz on Variable Names and Data Types

Quiz
•
9th - 10th Grade
30 questions
String

Quiz
•
10th Grade - University
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade