C++ quizz from start

C++ quizz from start

9th Grade

20 Qs

quiz-placeholder

Similar activities

IPA KELAS IX

IPA KELAS IX

9th Grade

20 Qs

Waves

Waves

9th Grade

19 Qs

PRUBA DE UNIDAD 1 CC.NN

PRUBA DE UNIDAD 1 CC.NN

9th Grade

20 Qs

Geology Rocks

Geology Rocks

9th Grade

16 Qs

Grade 9 Pressure

Grade 9 Pressure

9th Grade

20 Qs

EVALUACIÓN DIAGNÓSTICA 9º

EVALUACIÓN DIAGNÓSTICA 9º

9th Grade

20 Qs

Evaluación Primera Unidad Segundo Básico

Evaluación Primera Unidad Segundo Básico

KG - 12th Grade

15 Qs

C++ quizz from start

C++ quizz from start

Assessment

Quiz

Science

9th Grade

Practice Problem

Easy

Created by

Hang Sithourk

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in C++?

print("Hello World");

System.out.printIn("Hello World");

Console.WriteLine("Hello World");

cout<<"Hello World";

2.

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*/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

string

String

myString

Txt

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

int x = 5;

num x = 5

double x = 5;

x = 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the floating number 2.8?

double x = 2.8;

double x = 2.8

int x = 2.8;

x = 2.8;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to find the length of a string?

getSize()

length()

getLength()

len()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to add together two values?

The + sign

The * sign

The & sign

The - sign

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?