Deck 2: Elements of High-Quality Programs
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
Match between columns
سؤال
Match between columns
سؤال
Match between columns
سؤال
Match between columns
سؤال
سؤال
Match between columns
سؤال
سؤال
سؤال
Match between columns
سؤال
سؤال
سؤال
Match between columns
سؤال
Match between columns
سؤال
سؤال
سؤال
سؤال
Match between columns
سؤال
سؤال
Match between columns
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/60
العب
ملء الشاشة (f)
Deck 2: Elements of High-Quality Programs
1
A variable's unknown value is commonly called ____.
A)initial
B)default
C)random
D)garbage
A)initial
B)default
C)random
D)garbage
D
2
A specific numeric value is often called a(n)____.
A)named constant
B)defined constant
C)arithmetic constant
D)numeric constant
A)named constant
B)defined constant
C)arithmetic constant
D)numeric constant
D
3
Modularization makes it harder for multiple programmers to work on a problem.
False
4
Fractional numeric variables that contain a decimal point are known as ____ variables.
A)partial
B)string
C)integer
D)floating-point
A)partial
B)string
C)integer
D)floating-point
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
5
Programmers generally write programs as one long series of steps.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
6
Declaring a starting value for a variable is known as ____ the variable.
A)initializing
B)declaring
C)defining
D)identifying
A)initializing
B)declaring
C)defining
D)identifying
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
7
When the first letter of a variable name is uppercase, as in HourlyWage , the format is known as ____ casing.
A)Hungarian notation
B)Pascal casing
C)camel casing
D)Turing notation
A)Hungarian notation
B)Pascal casing
C)camel casing
D)Turing notation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
8
Because one memory location can be used repeatedly with different values, you can write program instructions once and then use them for thousands of separate calculations
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
9
When you write programs, you work with data in three different forms: ____.
A)values, variables (or named values), and unnamed values
B)variables, named constants, and named memory
C)variables, literals (or unnamed constants), and named constants
D)variations, RAM (or unnamed constants), and named values
A)values, variables (or named values), and unnamed values
B)variables, named constants, and named memory
C)variables, literals (or unnamed constants), and named constants
D)variations, RAM (or unnamed constants), and named values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
10
Variable names can be more than one word with blanks between the words.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
11
The process of naming program variables and assigning a type to them is called ____ variables.
A)initializing
B)declaring
C)identifying
D)proclaiming
A)initializing
B)declaring
C)identifying
D)proclaiming
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
12
When the variable starts with a lowercase letter and any subsequent word begins with an uppercase letter, this is called ____.
A)Hungarian notation
B)Pascal casing
C)camel casing
D)Turing notation
A)Hungarian notation
B)Pascal casing
C)camel casing
D)Turing notation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
13
Most modern programming languages require that program statements be placed in specific columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
14
A string variable can hold digits such as account numbers and zip codes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
15
In most programming languages, before you can use any variable, you must include a ____ for it.
A)declaration
B)definition
C)header
D)proclamation
A)declaration
B)definition
C)header
D)proclamation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
16
The assignment operator has left-to-right-to-left associativity, which means that the value of the expression to the left of the assignment operator is evaluated first and that the result is assigned to the operand on the right.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
17
In many programming languages, if you declare a variable and do not initialize it, the variable contains an unknown value until it is assigned a value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
18
____ is where a variable's data type or other information is stored as part of the name.
A)Hungarian notation
B)Pascal case
C)Turing notation
D)Camel case
A)Hungarian notation
B)Pascal case
C)Turing notation
D)Camel case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
19
Program comments are a type of internal documentation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
20
All programming languages support four broad data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
21
In a flowchart, an ____ is most often represented by a three-sided box that is connected to the step it references by a dashed line.
A)abstraction symbol
B)annotation symbol
C)abbreviation symbol
D)enumeration symbol
A)abstraction symbol
B)annotation symbol
C)abbreviation symbol
D)enumeration symbol
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
22
Programmers say that variables and constants declared within a module are ____ only within that module.
A)abstracted
B)out of scope
C)in scope
D)in reference
A)abstracted
B)out of scope
C)in scope
D)in reference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
23
____ is the process of paying attention to important properties while ignoring nonessential details.
A)Abstraction
B)Modularization
C)Abbreviation
D)Decomposition
A)Abstraction
B)Modularization
C)Abbreviation
D)Decomposition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
24
Each programming language has a few reserved ____________________ that are not allowed as variable names because they are part of the language's syntax.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
25
When a program has several modules calling other modules, programmers often use a program ____, which operates similarly to an organizational chart, to show the overall picture of how modules are related to one another.
A)hierarchy chart
B)tree chart
C)flow chart
D)data diagram
A)hierarchy chart
B)tree chart
C)flow chart
D)data diagram
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
26
Program ___________________ are written explanations that are not part of the program logic but that serve as documentation for readers of the program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
27
As programs become larger and more complicated, the need for good planning and design ____ .
A)decreases
B)is inefficient
C)is not necessary
D)increases
A)decreases
B)is inefficient
C)is not necessary
D)increases
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
28
The ____ dictate the order in which operations in the same statement are carried out.
A)rules of precedence
B)statement rules
C)operation rules
D)rules of arithmetic
A)rules of precedence
B)statement rules
C)operation rules
D)rules of arithmetic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
29
Whole number variables are known as ____________________ variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
30
Programmers refer to programs that contain meaningful names as ____.
A)undocumented
B)procedurally documented
C)formally documented
D)self-documenting
A)undocumented
B)procedurally documented
C)formally documented
D)self-documenting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
31
Programmers say the statements that are contained in a module have been ____.
A)embedded
B)decomposed
C)encapsulated
D)modularized
A)embedded
B)decomposed
C)encapsulated
D)modularized
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
32
The mainline logic of almost every procedural computer program consists of these three distinct parts: ____ .
A)housekeeping tasks, main tasks, and end-of-job tasks
B)clearing tasks, detail loop tasks, and end-of-job tasks
C)housekeeping tasks, detail loop tasks, and end-of-job tasks
D)housekeeping tasks, detail loop tasks, and math tasks
A)housekeeping tasks, main tasks, and end-of-job tasks
B)clearing tasks, detail loop tasks, and end-of-job tasks
C)housekeeping tasks, detail loop tasks, and end-of-job tasks
D)housekeeping tasks, detail loop tasks, and math tasks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
33
____ variables and constants are known to the entire program.
A)Local
B)Transient
C)Heap
D)Global
A)Local
B)Transient
C)Heap
D)Global
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
34
A(n)____ is similar to a variable, except it can be assigned a value only once.
A)unnamed constant
B)literal
C)named constant
D)constant
A)unnamed constant
B)literal
C)named constant
D)constant
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
35
The assignment operator is the ____ sign.
A)*
B)+
C)=
D)/
A)*
B)+
C)=
D)/
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
36
A ____ variable is not used for input or output, but instead is just a working variable that you use during a program's execution.
A)programming
B)throw away
C)temporary
D)calculating
A)programming
B)throw away
C)temporary
D)calculating
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
37
___________________ tasks include any steps you must perform at the beginning of a program to get ready for the rest of the program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
38
Declaring a starting value is known as ____________________ the variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
39
Depending on the programming language being used, modules are also known as ____ .
A)subroutines, procedures, or methods
B)subroutines, receptacles, or methods
C)tasks, functions, or methods
D)procedures, functions, or containers
A)subroutines, procedures, or methods
B)subroutines, receptacles, or methods
C)tasks, functions, or methods
D)procedures, functions, or containers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
40
The process of breaking down a large program into modules is called ____.
A)decomposing
B)modularization
C)fragmentation
D)caching
A)decomposing
B)modularization
C)fragmentation
D)caching
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
41
List three reasons for modularizing a large program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
42
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
43
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
44
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
45
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
46
List three design features that you can use while creating programs to make them easier to write and maintain.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
47
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
48
What items should you include when you create a module?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
49
What are end-of-job tasks?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
51
Discuss why it is important to use meaningful names for identifiers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
52
Explain the purpose of temporary variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
53
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
55
Explain the purpose of annotation symbols.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
56
What does a data item's data type describe?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
57
Explain the purpose of detail loop tasks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
58
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
59
Discuss why it is important to maintain good programming habits.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
60
Match between columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck