Deck 1: An Overview of Object-Oriented Programming and C++

ملء الشاشة (f)
exit full mode
سؤال
Basic logic components used in programs are called ____.

A) sequence structures
B) selection structures
C) control structures
D) loop structures
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The variables and instructions within a module are hidden and contained-that is, ____-which helps to make the module independent of all other modules and therefore reusable.

A) abstracted
B) simplified
C) summarized
D) encapsulated
سؤال
In a ____, program steps execute one after another, without interruption.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
سؤال
____ variables store numbers with decimal places.

A) Integer
B) Numeric
C) Floating point
D) Character
سؤال
You ____ a program by using sample data to determine whether the program results are correct.

A) test
B) debug
C) interpret
D) run
سؤال
A ____ repeats actions while some condition remains unchanged.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
سؤال
In C++, by default, all structure fields are private.
سؤال
Finding syntax errors is much more time consuming for a programmer than finding logical errors.
سؤال
____ variables store whole numbers.

A) Integer
B) Numeric
C) Floating point
D) Character
سؤال
The rules of any language make up its ____.

A) syntax
B) vocabulary
C) grammar
D) parser
سؤال
A ____ is used to perform different tasks based on a condition.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
سؤال
A(n) ____ error occurs when you use a statement that, although syntactically correct, doesn't do what you intended.

A) programming
B) debugging
C) logical
D) syntax
سؤال
The ____ of a variable defines what kind of values may be stored in a variable and what kind of operations can be performed on it.

A) syntax
B) language
C) input
D) data type
سؤال
It is conventional, but not required, to begin object names with a lowercase letter and to begin class names with an uppercase letter.
سؤال
Beginning an identifier with a lowercase letter and capitalizing subsequent words within the identifier is a style known as camel casing (for example, yourAge ).
سؤال
____ is a programming language that supports object-oriented techniques.

A) COBOL
B) C++
C) BASIC
D) FORTRAN
سؤال
You cannot write procedural programs in C++.
سؤال
In general, C++ programmers use the term "____" when referring to methods.

A) procedures
B) functions
C) subroutines
D) blocks
سؤال
All modern programming languages require that variable names be one word; that is, they cannot include any embedded spaces.
سؤال
Float values are called double-precision numbers.
سؤال
Object-oriented programs use ____ to carry out the same operation in a manner customized to the object.

A) inheritance
B) is-a relationships
C) polymorphism
D) methods
سؤال
____________________ is the process of paying attention to important properties while ignoring details.
سؤال
What is a semantic error?
سؤال
____________________ errors are errors that are so severe that they prevent a program from executing.
سؤال
An integer value may be stored in an integer data type variable, declared with the keyword ____.

A) int
B) integer
C) INT
D) Integer
سؤال
A Boolean data type variable can be declared using the ____ data type, which has only two possible values-true or false.

A) boolean
B) bool
C) logical
D) flag
سؤال
In object-oriented programming, you can create new classes that extend or are____________________ of existing classes.
سؤال
In many computer programming languages, including C++, variables must be explicitly ____________________, that is, given a data type as well as a name, before they can be used.
سؤال
In C++, ____________________ consists of any number of spaces, tabs, and Enter characters.
سؤال
When you compile a C++ program, error messages and/or ____ might appear.

A) bugs
B) exceptions
C) inconsistencies
D) warnings
سؤال
What were the disadvantages of programming in the oldest procedural languages?
سؤال
Characters may be stored in character data type variables, declared with the keyword ____.

A) character
B) String
C) Char
D) char
سؤال
In C++, a(n) ____ comment begins with two slashes ( // ) and continues to the end of the line on which it is placed.

A) block
B) line
C) standard
D) expanded
سؤال
What is low-level programming? What is high-level programming? Is programming in C++ considered low-level or high-level?
سؤال
To indicate a newline character-that is, the invisible character that forces the next output to appear on a new line-you can use the escape sequence ____.

A) \n
B) \r
C) \t
D) \\
سؤال
When writing C++ code, the style in which the braces in a function each occupy a line of their own and align to the left, is called the ____ style.

A) inline
B) indented
C) exdented
D) standard
سؤال
In object-oriented programming, descendent classes can ____ all the attributes of the original (or parent) class, or they can override inappropriate attributes.

A) extend
B) inherit
C) implement
D) adopt
سؤال
C++ refers to locations where values may be stored as ____________________ because these values are located on the left side of assignment statements.
سؤال
A(n) ____________________ is a mechanism for grouping features you want to include in a program.
سؤال
What is a variable?
سؤال
Match between columns
group of statements in C++
interpreter
group of statements in C++
statement
group of statements in C++
machine language
group of statements in C++
production program
group of statements in C++
block
group of statements in C++
procedural program
group of statements in C++
compiler
group of statements in C++
output
group of statements in C++
translator program
سؤال
What is an escape sequence?
سؤال
Match between columns
segment of C++ code that performs a task
interpreter
segment of C++ code that performs a task
statement
segment of C++ code that performs a task
machine language
segment of C++ code that performs a task
production program
segment of C++ code that performs a task
block
segment of C++ code that performs a task
procedural program
segment of C++ code that performs a task
compiler
segment of C++ code that performs a task
output
segment of C++ code that performs a task
translator program
سؤال
Match between columns
a real-life program used by a business
interpreter
a real-life program used by a business
statement
a real-life program used by a business
machine language
a real-life program used by a business
production program
a real-life program used by a business
block
a real-life program used by a business
procedural program
a real-life program used by a business
compiler
a real-life program used by a business
output
a real-life program used by a business
translator program
سؤال
Match between columns
consists of a series of steps or procedures that take place one after the other.
interpreter
consists of a series of steps or procedures that take place one after the other.
statement
consists of a series of steps or procedures that take place one after the other.
machine language
consists of a series of steps or procedures that take place one after the other.
production program
consists of a series of steps or procedures that take place one after the other.
block
consists of a series of steps or procedures that take place one after the other.
procedural program
consists of a series of steps or procedures that take place one after the other.
compiler
consists of a series of steps or procedures that take place one after the other.
output
consists of a series of steps or procedures that take place one after the other.
translator program
سؤال
Match between columns
information produced by a program
interpreter
information produced by a program
statement
information produced by a program
machine language
information produced by a program
production program
information produced by a program
block
information produced by a program
procedural program
information produced by a program
compiler
information produced by a program
output
information produced by a program
translator program
سؤال
Match between columns
translates programming language instructions one line at a time
interpreter
translates programming language instructions one line at a time
statement
translates programming language instructions one line at a time
machine language
translates programming language instructions one line at a time
production program
translates programming language instructions one line at a time
block
translates programming language instructions one line at a time
procedural program
translates programming language instructions one line at a time
compiler
translates programming language instructions one line at a time
output
translates programming language instructions one line at a time
translator program
سؤال
Match between columns
works by translating the entire program at one time
interpreter
works by translating the entire program at one time
statement
works by translating the entire program at one time
machine language
works by translating the entire program at one time
production program
works by translating the entire program at one time
block
works by translating the entire program at one time
procedural program
works by translating the entire program at one time
compiler
works by translating the entire program at one time
output
works by translating the entire program at one time
translator program
سؤال
What does it mean to compile a program?
سؤال
What is a function header and what are its components?
سؤال
What is the difference between objects and classes?
سؤال
Match between columns
language that computers can understand
interpreter
language that computers can understand
statement
language that computers can understand
machine language
language that computers can understand
production program
language that computers can understand
block
language that computers can understand
procedural program
language that computers can understand
compiler
language that computers can understand
output
language that computers can understand
translator program
سؤال
What are header files? What are preprocessor directives?
سؤال
Match between columns
checks your program for syntax errors
interpreter
checks your program for syntax errors
statement
checks your program for syntax errors
machine language
checks your program for syntax errors
production program
checks your program for syntax errors
block
checks your program for syntax errors
procedural program
checks your program for syntax errors
compiler
checks your program for syntax errors
output
checks your program for syntax errors
translator program
سؤال
What is the scope of a variable?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/55
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: An Overview of Object-Oriented Programming and C++
1
Basic logic components used in programs are called ____.

A) sequence structures
B) selection structures
C) control structures
D) loop structures
C
2
The variables and instructions within a module are hidden and contained-that is, ____-which helps to make the module independent of all other modules and therefore reusable.

A) abstracted
B) simplified
C) summarized
D) encapsulated
D
3
In a ____, program steps execute one after another, without interruption.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
A
4
____ variables store numbers with decimal places.

A) Integer
B) Numeric
C) Floating point
D) Character
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
5
You ____ a program by using sample data to determine whether the program results are correct.

A) test
B) debug
C) interpret
D) run
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
6
A ____ repeats actions while some condition remains unchanged.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
7
In C++, by default, all structure fields are private.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
8
Finding syntax errors is much more time consuming for a programmer than finding logical errors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ variables store whole numbers.

A) Integer
B) Numeric
C) Floating point
D) Character
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
10
The rules of any language make up its ____.

A) syntax
B) vocabulary
C) grammar
D) parser
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
11
A ____ is used to perform different tasks based on a condition.

A) sequence structure
B) selection structure
C) control structure
D) loop structure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ error occurs when you use a statement that, although syntactically correct, doesn't do what you intended.

A) programming
B) debugging
C) logical
D) syntax
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
13
The ____ of a variable defines what kind of values may be stored in a variable and what kind of operations can be performed on it.

A) syntax
B) language
C) input
D) data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
14
It is conventional, but not required, to begin object names with a lowercase letter and to begin class names with an uppercase letter.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
15
Beginning an identifier with a lowercase letter and capitalizing subsequent words within the identifier is a style known as camel casing (for example, yourAge ).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
16
____ is a programming language that supports object-oriented techniques.

A) COBOL
B) C++
C) BASIC
D) FORTRAN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
17
You cannot write procedural programs in C++.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
18
In general, C++ programmers use the term "____" when referring to methods.

A) procedures
B) functions
C) subroutines
D) blocks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
19
All modern programming languages require that variable names be one word; that is, they cannot include any embedded spaces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
20
Float values are called double-precision numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
21
Object-oriented programs use ____ to carry out the same operation in a manner customized to the object.

A) inheritance
B) is-a relationships
C) polymorphism
D) methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
22
____________________ is the process of paying attention to important properties while ignoring details.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
23
What is a semantic error?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
24
____________________ errors are errors that are so severe that they prevent a program from executing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
25
An integer value may be stored in an integer data type variable, declared with the keyword ____.

A) int
B) integer
C) INT
D) Integer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
26
A Boolean data type variable can be declared using the ____ data type, which has only two possible values-true or false.

A) boolean
B) bool
C) logical
D) flag
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
27
In object-oriented programming, you can create new classes that extend or are____________________ of existing classes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
28
In many computer programming languages, including C++, variables must be explicitly ____________________, that is, given a data type as well as a name, before they can be used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
29
In C++, ____________________ consists of any number of spaces, tabs, and Enter characters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
30
When you compile a C++ program, error messages and/or ____ might appear.

A) bugs
B) exceptions
C) inconsistencies
D) warnings
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
31
What were the disadvantages of programming in the oldest procedural languages?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
32
Characters may be stored in character data type variables, declared with the keyword ____.

A) character
B) String
C) Char
D) char
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
33
In C++, a(n) ____ comment begins with two slashes ( // ) and continues to the end of the line on which it is placed.

A) block
B) line
C) standard
D) expanded
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
34
What is low-level programming? What is high-level programming? Is programming in C++ considered low-level or high-level?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
35
To indicate a newline character-that is, the invisible character that forces the next output to appear on a new line-you can use the escape sequence ____.

A) \n
B) \r
C) \t
D) \\
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
36
When writing C++ code, the style in which the braces in a function each occupy a line of their own and align to the left, is called the ____ style.

A) inline
B) indented
C) exdented
D) standard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
37
In object-oriented programming, descendent classes can ____ all the attributes of the original (or parent) class, or they can override inappropriate attributes.

A) extend
B) inherit
C) implement
D) adopt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
38
C++ refers to locations where values may be stored as ____________________ because these values are located on the left side of assignment statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
39
A(n) ____________________ is a mechanism for grouping features you want to include in a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
40
What is a variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
41
Match between columns
group of statements in C++
interpreter
group of statements in C++
statement
group of statements in C++
machine language
group of statements in C++
production program
group of statements in C++
block
group of statements in C++
procedural program
group of statements in C++
compiler
group of statements in C++
output
group of statements in C++
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is an escape sequence?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
43
Match between columns
segment of C++ code that performs a task
interpreter
segment of C++ code that performs a task
statement
segment of C++ code that performs a task
machine language
segment of C++ code that performs a task
production program
segment of C++ code that performs a task
block
segment of C++ code that performs a task
procedural program
segment of C++ code that performs a task
compiler
segment of C++ code that performs a task
output
segment of C++ code that performs a task
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
44
Match between columns
a real-life program used by a business
interpreter
a real-life program used by a business
statement
a real-life program used by a business
machine language
a real-life program used by a business
production program
a real-life program used by a business
block
a real-life program used by a business
procedural program
a real-life program used by a business
compiler
a real-life program used by a business
output
a real-life program used by a business
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
45
Match between columns
consists of a series of steps or procedures that take place one after the other.
interpreter
consists of a series of steps or procedures that take place one after the other.
statement
consists of a series of steps or procedures that take place one after the other.
machine language
consists of a series of steps or procedures that take place one after the other.
production program
consists of a series of steps or procedures that take place one after the other.
block
consists of a series of steps or procedures that take place one after the other.
procedural program
consists of a series of steps or procedures that take place one after the other.
compiler
consists of a series of steps or procedures that take place one after the other.
output
consists of a series of steps or procedures that take place one after the other.
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
46
Match between columns
information produced by a program
interpreter
information produced by a program
statement
information produced by a program
machine language
information produced by a program
production program
information produced by a program
block
information produced by a program
procedural program
information produced by a program
compiler
information produced by a program
output
information produced by a program
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
47
Match between columns
translates programming language instructions one line at a time
interpreter
translates programming language instructions one line at a time
statement
translates programming language instructions one line at a time
machine language
translates programming language instructions one line at a time
production program
translates programming language instructions one line at a time
block
translates programming language instructions one line at a time
procedural program
translates programming language instructions one line at a time
compiler
translates programming language instructions one line at a time
output
translates programming language instructions one line at a time
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
48
Match between columns
works by translating the entire program at one time
interpreter
works by translating the entire program at one time
statement
works by translating the entire program at one time
machine language
works by translating the entire program at one time
production program
works by translating the entire program at one time
block
works by translating the entire program at one time
procedural program
works by translating the entire program at one time
compiler
works by translating the entire program at one time
output
works by translating the entire program at one time
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
49
What does it mean to compile a program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
50
What is a function header and what are its components?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
51
What is the difference between objects and classes?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
52
Match between columns
language that computers can understand
interpreter
language that computers can understand
statement
language that computers can understand
machine language
language that computers can understand
production program
language that computers can understand
block
language that computers can understand
procedural program
language that computers can understand
compiler
language that computers can understand
output
language that computers can understand
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
53
What are header files? What are preprocessor directives?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match between columns
checks your program for syntax errors
interpreter
checks your program for syntax errors
statement
checks your program for syntax errors
machine language
checks your program for syntax errors
production program
checks your program for syntax errors
block
checks your program for syntax errors
procedural program
checks your program for syntax errors
compiler
checks your program for syntax errors
output
checks your program for syntax errors
translator program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
55
What is the scope of a variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 55 في هذه المجموعة.