
Ch. 2 Data Types 1
Flashcard
•
Computers
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

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";
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?