Programming I Quiz 1

Programming I Quiz 1

University

11 Qs

quiz-placeholder

Similar activities

JavaScript Basic

JavaScript Basic

University

16 Qs

Python Quiz 1 : Python Basics

Python Quiz 1 : Python Basics

University

10 Qs

Struktur Data

Struktur Data

University

10 Qs

quiz pertemuan 2 asik ddp

quiz pertemuan 2 asik ddp

University

15 Qs

Summer Code Camp - Lesson 1

Summer Code Camp - Lesson 1

University

10 Qs

Array

Array

University

12 Qs

Quiz on Functions#1

Quiz on Functions#1

University

15 Qs

javaquizvivek

javaquizvivek

University

12 Qs

Programming I Quiz 1

Programming I Quiz 1

Assessment

Quiz

Computers

University

Hard

Created by

Daryl Arbis

Used 3+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "cout" statement do in C++?

it receives user input

performs arithmetic operations

displays output in the console

declares a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C++ syntax is used to add a single-line comment?

/* comment */

// comment

# comment

-- comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C++ variable name?

myVariable

123variable

_variable

variable123

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store whole numbers in C++?

float

char

int

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C++ data type is used to store characters?

char

string

int

float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression "5 + 3" in C++?

8

53

15

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which arithmetic operator is used for division in C++?

/

*

%

+

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?