Deck 6: Low-Level Programming Languages and Pseudocode

ملء الشاشة (f)
exit full mode
سؤال
Which of the following best describes a virtual computer?

A) A hypothetical computer with unlimited memory
B) A hypothetical computer with an unlimited instruction set
C) A hypothetical computer used to illustrate the features of a real machine
D) A programmed simulator for a real CPU like a Pentium 4
E) A programmed simulator of multiple CPUs
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which part of the Pep/9 instruction specifier indicates which instruction is to be carried out?

A) Operation code
B) Register specifier
C) Addressing mode specifier
D) Status bit
E) Accumulator
سؤال
Which of the following is not an operation that can be performed by a Pep/9 machine instruction?

A) Stop execution
B) Load the operand into the accumulator
C) Store the contents of the accumulator into the operand
D) Add the contents of the program counter to the accumulator
E) Read character input and store into the operand
سؤال
What is an assembler directive?

A) An assembly language instruction
B) An instruction to the assembler program
C) A human-readable comment
D) An alternative way to specify the operand
E) An instruction that begins the assembly language translation
سؤال
Given that the word length in the Pep/9 virtual computer is 2 bytes, how long is the information that flows into and out of the arithmetic/logic unit (ALU) of the PEP/9's CPU?

A) 16 bits
B) 8 bits
C) 32 bits
D) 64 bits
E) 128 bits
سؤال
Machine language is the set of binary-coded instructions that are executed directly by a computer.
سؤال
The Pep/9 character input instruction specifies the register into which a character is to be stored.
سؤال
An assembler directive is an instruction to the assembler itself.
سؤال
Assembly language is an abstraction, hiding some of the details that occur at the machine language level.
سؤال
A(n) _______________ is a hypothetical machine used to illustrate the features of a real machine.
سؤال
A(n) _______________ is a program that puts a machine-language program into memory so that it can be executed.
سؤال
An assembly-language program uses _______________ to represent instructions.
سؤال
In _______________ testing, tests are designed based on the logic of the code.
سؤال
How many hexadecimal digits are needed to describe the bit pattern in a byte? Why?
سؤال
What is the word length of the Pep/9 machine?
سؤال
What does an assembler accept as input and what does it produce as output?
سؤال
Where is the operand if the address mode specifier is 001?
سؤال
What is a memory address?
سؤال
What is an assembler directive?
سؤال
Which language is actually executed by the central processing unit of a computer?

A) High-level language
B) Assembly language
C) Machine language
D) Virtual language
E) Accumulator language
سؤال
Which of the following is not a valid mnemonic in the Pep/9 assembly language?

A) STOP
B) LDWA
C) ADDA
D) STWA
E) REPEAT
سؤال
Which of the following is true about black-box testing?

A) The test cases are based on the code.
B) The test cases are based on the input.
C) The test cases are based on the output.
D) The testing is performed by dedicated testers.
E) The testing is performed each time the program changes.
سؤال
Which of the following is part of a Pep/9 program instruction?

A) Accumulator
B) Simulator
C) Program counter
D) Specifier
E) Register
سؤال
In which of the following are tests designed based only on possible input data (rather than code)?

A) Clear-box testing
B) Code-coverage approach
C) Black-box testing
D) Test plan implementation
سؤال
Each machine language instruction performs a single complex task, such as sorting a list of numbers.
سؤال
Very few programs are written in machine language today.
سؤال
The Pep/9 system includes a simulator that can be used to input and run programs.
سؤال
Machine language programs are loaded into the Pep/9 simulator by specifying the instructions in hexadecimal.
سؤال
Assembly language allows program instructions to be specified using mnemonics that correspond to machine language instructions.
سؤال
In Pep/9 assembly language, decisions can be made using instructions that check the status of the accumulator.
سؤال
The data-coverage testing approach tests the limits of the program's data.
سؤال
Assembly language instructions are executed directly by the hardware of a particular computer.
سؤال
The input to an assembler is an assembly language program.
سؤال
A test case is a document that specifies how a program is to be tested.
سؤال
Which register contains the address of the next instruction to be executed?

A) Program counter
B) Instruction register
C) Index register
D) Accumulator
E) Status register
سؤال
Which Pep/9 addressing mode indicates that the operand contains the location of data rather than the data itself?

A) Accumulator
B) Direct
C) Immediate
D) Virtual
E) Status
سؤال
Which of the following does not represent a function of the accumulator (A register)?

A) Data loaded from main memory is stored in the accumulator.
B) Results of ALU operations are stored in the accumulator.
C) The contents of an instruction's operand specifier can be stored in the accumulator.
D) The contents of the accumulator can be subtracted from the instruction register.
E) The contents of the accumulator can be stored to main memory.
سؤال
A virtual computer is a hypothetical machine in which there are no limits on memory use.
سؤال
True or False? Character input and output in Pep/9 uses a principle called memory-mapped I/O.
سؤال
An assembler is used to execute an assembly language program directly on the central processing unit.
سؤال
In the Pep/9 machine, the contents of the A register can be compared to the contents of a place in memory.
سؤال
The code-coverage testing approach eliminates the need to test some of the code by covering it with a theoretical "black box."
سؤال
Konrad Zuse's 1936 patent application for the Z1 computer, with program and data modifiable in storage, anticipated the von Neumann architecture by nine years.
سؤال
The _______________ is a register used to hold the address of the next instruction to be executed.
سؤال
A(n) _______________ is a program that translates an assembly-language program into machine code.
سؤال
A(n) _______________ is an instruction for the translating program.
سؤال
___________________ is an approach to computer program testing that designs tests cases to ensure that each statement in the program is executed properly.
سؤال
____________________ is an approach to computer program testing that involves designing tests to ensure that the limits of the permissible data are covered.
سؤال
A(n) ______________________ is a section of code that repeats.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: Low-Level Programming Languages and Pseudocode
1
Which of the following best describes a virtual computer?

A) A hypothetical computer with unlimited memory
B) A hypothetical computer with an unlimited instruction set
C) A hypothetical computer used to illustrate the features of a real machine
D) A programmed simulator for a real CPU like a Pentium 4
E) A programmed simulator of multiple CPUs
C
2
Which part of the Pep/9 instruction specifier indicates which instruction is to be carried out?

A) Operation code
B) Register specifier
C) Addressing mode specifier
D) Status bit
E) Accumulator
A
3
Which of the following is not an operation that can be performed by a Pep/9 machine instruction?

A) Stop execution
B) Load the operand into the accumulator
C) Store the contents of the accumulator into the operand
D) Add the contents of the program counter to the accumulator
E) Read character input and store into the operand
D
4
What is an assembler directive?

A) An assembly language instruction
B) An instruction to the assembler program
C) A human-readable comment
D) An alternative way to specify the operand
E) An instruction that begins the assembly language translation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
5
Given that the word length in the Pep/9 virtual computer is 2 bytes, how long is the information that flows into and out of the arithmetic/logic unit (ALU) of the PEP/9's CPU?

A) 16 bits
B) 8 bits
C) 32 bits
D) 64 bits
E) 128 bits
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
6
Machine language is the set of binary-coded instructions that are executed directly by a computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
7
The Pep/9 character input instruction specifies the register into which a character is to be stored.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
8
An assembler directive is an instruction to the assembler itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
9
Assembly language is an abstraction, hiding some of the details that occur at the machine language level.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
10
A(n) _______________ is a hypothetical machine used to illustrate the features of a real machine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
11
A(n) _______________ is a program that puts a machine-language program into memory so that it can be executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
12
An assembly-language program uses _______________ to represent instructions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
13
In _______________ testing, tests are designed based on the logic of the code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
14
How many hexadecimal digits are needed to describe the bit pattern in a byte? Why?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
15
What is the word length of the Pep/9 machine?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
16
What does an assembler accept as input and what does it produce as output?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
17
Where is the operand if the address mode specifier is 001?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
18
What is a memory address?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
19
What is an assembler directive?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which language is actually executed by the central processing unit of a computer?

A) High-level language
B) Assembly language
C) Machine language
D) Virtual language
E) Accumulator language
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of the following is not a valid mnemonic in the Pep/9 assembly language?

A) STOP
B) LDWA
C) ADDA
D) STWA
E) REPEAT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which of the following is true about black-box testing?

A) The test cases are based on the code.
B) The test cases are based on the input.
C) The test cases are based on the output.
D) The testing is performed by dedicated testers.
E) The testing is performed each time the program changes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following is part of a Pep/9 program instruction?

A) Accumulator
B) Simulator
C) Program counter
D) Specifier
E) Register
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
24
In which of the following are tests designed based only on possible input data (rather than code)?

A) Clear-box testing
B) Code-coverage approach
C) Black-box testing
D) Test plan implementation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
25
Each machine language instruction performs a single complex task, such as sorting a list of numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
26
Very few programs are written in machine language today.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
27
The Pep/9 system includes a simulator that can be used to input and run programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
28
Machine language programs are loaded into the Pep/9 simulator by specifying the instructions in hexadecimal.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
29
Assembly language allows program instructions to be specified using mnemonics that correspond to machine language instructions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
30
In Pep/9 assembly language, decisions can be made using instructions that check the status of the accumulator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
31
The data-coverage testing approach tests the limits of the program's data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
32
Assembly language instructions are executed directly by the hardware of a particular computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
33
The input to an assembler is an assembly language program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
34
A test case is a document that specifies how a program is to be tested.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which register contains the address of the next instruction to be executed?

A) Program counter
B) Instruction register
C) Index register
D) Accumulator
E) Status register
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
36
Which Pep/9 addressing mode indicates that the operand contains the location of data rather than the data itself?

A) Accumulator
B) Direct
C) Immediate
D) Virtual
E) Status
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
37
Which of the following does not represent a function of the accumulator (A register)?

A) Data loaded from main memory is stored in the accumulator.
B) Results of ALU operations are stored in the accumulator.
C) The contents of an instruction's operand specifier can be stored in the accumulator.
D) The contents of the accumulator can be subtracted from the instruction register.
E) The contents of the accumulator can be stored to main memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
38
A virtual computer is a hypothetical machine in which there are no limits on memory use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
39
True or False? Character input and output in Pep/9 uses a principle called memory-mapped I/O.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
40
An assembler is used to execute an assembly language program directly on the central processing unit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
41
In the Pep/9 machine, the contents of the A register can be compared to the contents of a place in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
42
The code-coverage testing approach eliminates the need to test some of the code by covering it with a theoretical "black box."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
43
Konrad Zuse's 1936 patent application for the Z1 computer, with program and data modifiable in storage, anticipated the von Neumann architecture by nine years.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
44
The _______________ is a register used to hold the address of the next instruction to be executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
45
A(n) _______________ is a program that translates an assembly-language program into machine code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
46
A(n) _______________ is an instruction for the translating program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
47
___________________ is an approach to computer program testing that designs tests cases to ensure that each statement in the program is executed properly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
48
____________________ is an approach to computer program testing that involves designing tests to ensure that the limits of the permissible data are covered.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
49
A(n) ______________________ is a section of code that repeats.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 49 في هذه المجموعة.