Programming I Quiz 1

Programming I Quiz 1

University

11 Qs

quiz-placeholder

Similar activities

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Python

Python

6th Grade - University

15 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

C Basics

C Basics

University

12 Qs

A "C" Event-the backbone of modern coding.

A "C" Event-the backbone of modern coding.

University

16 Qs

Coding club Summit Online Quiz

Coding club Summit Online Quiz

University

15 Qs

Quiz 1

Quiz 1

University

11 Qs

JSP

JSP

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?