1. What does Unit 1 require students to do with code?
Write and compile no code in the unit
Explanation
Unit 1 consists of two hours of lecture and has no laboratory work, so students write and compile no code in this unit.
Write and compile no code in the unit
Explanation
Unit 1 consists of two hours of lecture and has no laboratory work, so students write and compile no code in this unit.
Two hours of lecture with no laboratory work
Explanation
Unit 1 is a two-hour lecture with two hours of lecture time and no laboratory work.
A machine that stores data and follows instructions on it
Explanation
A computer stores data and carries out instructions on that data exactly as given. Judgment and decisions are supplied by a person, not the computer itself.
A program is a complete set of instructions for one job, while an instruction is one command within it
Explanation
A program is a complete set of instructions that performs one job, whereas an instruction is a single command within that program.
It cannot determine the meaning through guessing
Explanation
Computers obey instructions literally and do not guess when an instruction lacks one definite meaning.
The programmer, because the programmer is responsible for the instructions
Explanation
The programmer is accountable for every instruction the computer carries out, including instructions that were omitted or failed to handle a situation.
A system program
Explanation
A system program keeps the computer working by managing resources such as memory, files, devices, and processor sharing. An application program serves a user's task.
Writing a document for the user
Explanation
Application programs perform jobs wanted by users, such as writing, browsing, or computing a grade. Resource management is the role of system programs.
To serve as the main system program that shares resources among other programs
Explanation
An operating system is the main system program that shares memory, processor time, and files among other programs.
It uses the digits 0 and 1
Explanation
Binary is a number system that uses only 0 and 1. Decimal, by contrast, uses the digits 0 through 9.
Its instructions are written in binary
Explanation
Machine language consists of binary instructions, which are the only language form the processor can execute directly.
11
Explanation
The 1s occupy the 8, 2, and 1 positions, so 8 + 2 + 1 = 11. The 0 in the 4 position contributes nothing.
Assembly uses short command words, while machine language uses binary
Explanation
Assembly language expresses machine instructions with short words such as LOAD, ADD, and STORE. Machine language expresses those instructions directly in binary.
A readable line can represent many machine steps
Explanation
High-level languages are designed for programmer convenience, and one readable line can represent many machine steps.
Machine language, assembly language, high-level language
Explanation
Machine-level code is binary and closest to the processor, assembly uses short words for individual machine steps, and high-level code uses readable statements for multiple steps.
To convert source code from one language into another
Explanation
A translator is a program that turns source written in one language into another language. Direct execution is performed by the processor only for machine language.
The whole source file is translated into machine-ready form and saved
Explanation
A compiler translates the entire source file before execution and produces a machine-code file saved on disk. Translating during execution describes interpretation.
It translates and executes one instruction at a time while the program runs
Explanation
An interpreter translates and carries out source code one instruction at a time during execution, without saving a translated file.
Compilation starts more slowly but runs faster, while interpretation starts immediately and translates during execution
Explanation
Compilation has a slower start because it processes the whole file, but the resulting program runs faster and is checked before execution. Interpretation starts immediately but translates during execution, revealing errors when their lines are reached.
Display PASSED when the grade is 75 or more, and FAILED otherwise
Explanation
An executable instruction replaces vague judgments with an exact condition and specifies the output for each case. “The grade is 75 or more” is precise, while “good enough” is ambiguous.
It defines a precise condition that can determine the required output
Explanation
The condition “75 or more” gives an unambiguous rule that can be executed consistently, whereas “good enough” depends on subjective interpretation.
Memorize the answers with 38 flashcards on Introduction to Computer Programming.
How long is the lecture time in Unit 1?
Two hours of lecture time.
Does Unit 1 include any laboratory work?
No, it includes no laboratory work.
Do students write or compile code in Unit 1?
No, students write and compile no code in Unit 1.
Read the complete revision sheet on Introduction to Computer Programming.
See revision sheet →Import your course and AI generates quizzes with corrections in 30 seconds.
Quiz generator