Quiz UTS Pemrograman Dasar C++

Quiz UTS Pemrograman Dasar C++

10th Grade

20 Qs

quiz-placeholder

Similar activities

HTML (basics)

HTML (basics)

10th Grade

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python basics

Python basics

9th - 12th Grade

16 Qs

C++ Unit 1 Review

C++ Unit 1 Review

9th - 12th Grade

15 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

String Quiz

String Quiz

9th - 12th Grade

15 Qs

Javascript Basics

Javascript Basics

9th - 12th Grade

16 Qs

1) Python Data Types

1) Python Data Types

8th - 11th Grade

23 Qs

Quiz UTS Pemrograman Dasar C++

Quiz UTS Pemrograman Dasar C++

Assessment

Quiz

Computers

10th Grade

Medium

Created by

KURNIA AGUS

Used 124+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

cout << "Hello World";

Console.WriteLine("Hello World");

print ("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C++ is an alias of C#

True

False

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Txt

string

String

myString

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

int x = 5;

x = 5;

num x = 5

double x = 5;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

double x = 2.8;

byte x = 2.8

int x = 2.8;

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?