stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
C++ Quiz Exam 1 Flashcards | StudBud
Explore
/
C++ Quiz Exam 1
C++ Quiz Exam 1
35 terms
·
StudBud Administration
·
17 plays
Imported from external platform
Flashcards
35 cards
F
Practice quiz
P
Host live
L
Questions
35
Answers
1
Programming algorithms specify the underlying logic for the statements in a computer program.
False
True
2
What is the floating-point E notation format for .1234?
1.234E-1
1.234E+1
.1234
.1234E
3
Which statement accurately describes a characteristic of composite data types?
Composite data types are important time savers
data that represents time would be handled as a composite data type.
Composite data types are built into your programming language.
prog does not have 2 specify the mechanics of storing or adding two numbers
4
A development environment is a tool for coding instructions and executing programs on a digital device.
True
False
5
Which list identifies all data characterized by the character data type?
a single letter of the alphabet, a symbol, or a numeral from 0 to 9
binary numbers, hex numbers, and Boolean variables
floating point numbers, integers, binary numbers
Boolean variables, a symbol, E notation
6
The Hello World! program is typically the first program written by aspiring programmers learning a new language.
True
False
7
Which statement describes the punctuation conventions used for character data?
Char literals are enclosed in single quotes when assigned to a variable.
Char literals must be enclosed in single quotes when assigned to a variable
Character literals are not surrounded by asterisks; they use single quotes.
Char literals are enclosed in double quotes when assigned to a variable.
8
Which list of literals contains only integer and floating-point literals?
3, 3.03e+3, “3.0”
3, 0x3C, “3.0”
0b00000011, 3, 0x3C
0b00000011, 3, “3.0”
9
Why are primitive data types useful to programmers?
They give more control by letting prog define data manipulation and storage
They save time by specifying what to do with data, not how to do it.
They are the simplest variables and need no functions for data manipulation
They aren't built-in but can be created using composite data types.
10
How much storage is required for one ASCII character?
1 byte of memory
16 bytes of memory
1 bit of memory
8 bytes of memory
11
Which phrase describes a literal in the context of a programming language?
characteristics of an object
a named memory location that temporarily holds text or a numeric value
a named memory location that holds data, but not changed by the statements
any element of data specified for a program
12
Which example leads to an algorithm design used for an everyday technology application?
The steps for changing a tire
A recipe for baking brownies
The payment process at an online store
Making a frozen pizza in a toaster oven
13
Which term refers to code that can be distributed as computer software, desktop applications, web apps, and mobile apps?
keyword
computer program
statement
algorithm
14
Which list contains four common primitive data types?
character, integer, wide, and double-wide
character, integer, floating-point, and double floating-point
floating-point, double floating-point, wide, double-wide
character, integer, floating-point, and double-wide
15
There can be more than one programming algorithm for solving a problem or performing a task.
True
False
16
Digits are stored as ASCII codes, but integer numbers are stored as binary numbers.
False
True
17
A compiler uses ____ as input and generates ____ as output.
object code; source code
object files; binary executable files
source code; object code
binary executable files; object files
18
Which phrase describes character and string literals?
words used by a programming language for a specific purpose
data such as letters, symbols, words, and sentences
named memory locations that hold data that is not changed
the words True and False not enclosed in single or double quotes
19
The term ____ refers to program execution that continues to the next conditional statement within a structure.
slip
flow
fall through
waterfall
20
A numeric literal consists of digits representing integers or floating-point numbers.
False
True
21
Which characteristic does not apply to floating-point number data types?
Floating-point number are stored in conventional binary format or Enotation
Floating-point numbers can be expressed in decimal notation or E notation
Floating-point numbers can be positive or negative.
Floating-point number have a decimal point with at least one digit after it
22
The = operator ____ , while the == operator ____.
Assigns a value to a variable; checks if two operands are equal.
Compares two operands for equality; can assign and compare in one step.
Likely causes an error in a condition; assigns a value to a variable.
Compares two operands for equality; assigns a value to a variable.
23
Which statement describes a characteristic of semantics in the context of programming languages?
Various programming languages use different punctuation semantics.
Semantics define meaning; syntax sets word order and punctuation.
Programming semantics are like grammar rules in written language.
Semantics refers to the meaning and validity of program statements.
24
Which sentence best describes the purpose of a control structure?
It evaluates to True or False.
It contains logic that continues or ends the loop.
It provides a named procedure that performs a specific task.
It is used to alter the sequential execution of statements in a PC prog
25
What item is a key characteristic common to programming languages?
reserved words, which must include cout and printIn
arithmetic operators that can be used to perform calculations
curly braces and quotation marks as punctuation
keyword print that sends output to a display device
26
A Boolean type is used in conditionals, while a Boolean expression is used in declarations or assignments.
True
False
27
A string is a sequence of alphanumeric characters typically enclosed in quotation marks.
False
True
28
Which statement best describes a computer program?
set of instructions executed by a digital device to perform a specific task
set of instructions executed in an application that specify the attributes
A set of steps defining logic and structure for classification in an app
series of patterns that serve as the blueprints for a programming algorithm
29
In some programming languages, strings are a composite data type.
True
False
30
Which phrase describes Boolean literals?
words used by a programming language for a specific purpose
data such as letters, symbols, words, and sentences
the words True and False not enclosed in single or double quotes
named memory locations that hold data that is not changed
31
The term “data type” refers to ____.
a value that usually includes one or more arithmetic operators
a similarity found in a procedure or task
any element of data that you specify for a program
a way of categorizing data
32
A signed integer requires one binary digit as the sign.
False
True
33
Which term refers to a series of steps for solving a problem or carrying out a task?
level of abstraction
algorithm
pattern
decomposition
34
The convention in C++, Java, and Python is to name constants in all uppercase with an underscore separating words.
True
False
35
Which item is the name of a popular programming language?
C++
iOS SDK
Visual Studio
Windows Notepad