Programming I Quiz 1

Programming I Quiz 1

University

11 Qs

quiz-placeholder

Similar activities

Java

Java

University

15 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

C Viva

C Viva

University

10 Qs

Coding club Summit Online Quiz

Coding club Summit Online Quiz

University

15 Qs

Basics of JavaScript

Basics of JavaScript

11th Grade - Professional Development

15 Qs

Python-1st

Python-1st

University

10 Qs

C program quiz 1

C program quiz 1

University

10 Qs

Java Programming Basics

Java Programming Basics

University

10 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?