Ch. 2 Data Types 1

Ch. 2 Data Types 1

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

24 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What are subprograms called in C++?

Back

Functions

2.

FLASHCARD QUESTION

Front

What do '{' and '}' mean in C++?

Back

Start and end of a function

3.

FLASHCARD QUESTION

Front

Which of the following is a valid C++ identifier? 2abc, t&h, _1a2a3a4, u--5

Back

_1a2a3a4

4.

FLASHCARD QUESTION

Front

Which of the following is a standard integer data type? float, char, int, string

Back

int

5.

FLASHCARD QUESTION

Front

How is a character represented in the char data type?

Back

Single quotes

6.

FLASHCARD QUESTION

Front

Which line correctly declares a constant float PI in C++? Options: const float PI = 3.14159;, float const PI = 3.14159;, float PI = 3.14159;, const PI float = 3.14159;

Back

const float PI = 3.14159;

7.

FLASHCARD QUESTION

Front

Which of the following is a valid way to assign a string? Options: grade = 'A';, class = CPE211;, class = "CPE211";, grade = "B";

Back

class = "CPE211";

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?