1. What does Unit 1 require students to do with code?
Write and compile no code in the unit
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
Machine language consists of binary instructions, which are the only language form the processor can execute directly.
11
Erklärung
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
Erklärung
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
Erklärung
High-level languages are designed for programmer convenience, and one readable line can represent many machine steps.
Machine language, assembly language, high-level language
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
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
Erklärung
The condition “75 or more” gives an unambiguous rule that can be executed consistently, whereas “good enough” depends on subjective interpretation.
Merke dir die Antworten mit 38 Karteikarten zu 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.
Lies den vollständigen Lernzettel zu Introduction to Computer Programming.
Lernzettel ansehen →Importiere deinen Kurs und die KI erstellt in 30 Sekunden Quizze mit Korrekturen.
Quiz-Generator