Flashcard: Introduction to Computer Programming — 38 carte

Tutte le carte

1Domanda

How long is the lecture time in Unit 1?

Risposta

Two hours of lecture time.

2Domanda

Does Unit 1 include any laboratory work?

Risposta

No, it includes no laboratory work.

3Domanda

Do students write or compile code in Unit 1?

Risposta

No, students write and compile no code in Unit 1.

4Domanda

What is a computer?

Risposta

A machine that stores data and executes instructions exactly as given.

5Domanda

What defines a program?

Risposta

A complete set of instructions telling a computer how to perform one job.

6Domanda

What is an instruction in a program?

Risposta

One single command inside a program.

7Domanda

How does a computer obey instructions?

Risposta

It obeys literally, in order, unless told to jump, and never guesses.

8Domanda

What does a computer never do when an instruction is unclear?

Risposta

It never guesses when an instruction has no single definite meaning.

9Domanda

Who is responsible for every instruction a computer executes?

Risposta

The programmer is accountable for every instruction carried out.

10Domanda

Does programmer responsibility include omitted instructions?

Risposta

Yes, it includes instructions omitted or failing to handle a case.

11Domanda

What does a system program manage to keep the computer working?

Risposta

Memory, files, devices, and processor sharing.

12Domanda

What is the purpose of an application program?

Risposta

To perform a job wanted by the user.

13Domanda

Give examples of jobs an application program performs.

Risposta

Writing, browsing, or computing a grade.

14Domanda

What is an operating system in relation to system programs?

Risposta

The main system program.

15Domanda

What resources does an operating system share among programs?

Risposta

Memory, processor time, and files.

16Domanda

What digits does the binary number system use?

Risposta

Digits 0 and 1.

17Domanda

What is machine language composed of?

Risposta

Instructions written in binary.

18Domanda

Which language form can the processor execute directly?

Risposta

Machine language.

19Domanda

How do you convert a binary number to decimal?

Risposta

Add place values of positions containing 1.

20Domanda

What are the place values in binary from right to left?

Risposta

1, 2, 4, 8, 16, 32, and so on.

21Domanda

What does assembly language use to write machine instructions?

Risposta

Short command words like LOAD, ADD, and STORE.

22Domanda

How many machine steps does one assembly language word represent?

Risposta

One machine step.

23Domanda

Why is a high-level language written?

Risposta

For programmer convenience.

24Domanda

How many machine steps does one high-level language line represent?

Risposta

Many machine steps.

25Domanda

What form is machine-level code in for the processor?

Risposta

Binary code.

26Domanda

What does assembly-level code use for each machine step?

Risposta

Short words.

27Domanda

What type of statements does high-level code use?

Risposta

Readable statements for several machine steps.

28Domanda

What does a translator program do?

Risposta

It converts source code from one language to another.

29Domanda

When does a compiler translate source code?

Risposta

Before the program runs, translating the whole source file.

30Domanda

What output does a compiler produce?

Risposta

A machine-code file saved on disk.

31Domanda

How does an interpreter execute source code?

Risposta

It translates and runs one instruction at a time during execution.

32Domanda

Does an interpreter save a translated file?

Risposta

No, it does not save a translated file.

33Domanda

How does compilation differ from interpretation in start time?

Risposta

Compilation is slower to start than interpretation.

34Domanda

Which is faster to run: compiled or interpreted code?

Risposta

Compiled code runs faster than interpreted code.

35Domanda

When does interpretation find errors compared to compilation?

Risposta

Interpretation finds errors when the line is reached during execution.

36Domanda

How do you make an everyday instruction executable?

Risposta

Replace every vague judgment with an exact condition and specify the exact output.

37Domanda

What exact output should be displayed if the grade is 75 or more?

Risposta

PASSED

38Domanda

What exact output should be displayed if the grade is less than 75?

Risposta

FAILED

Metti alla prova te stesso con il quiz

Metti alla prova le tue conoscenze con 21 domande su Introduction to Computer Programming.

1. What does Unit 1 require students to do with code?

2. What is the scheduled format of Unit 1?

Fai il quiz →

Leggi la scheda di revisione

Ripassa il corso completo nella scheda di revisione per Introduction to Computer Programming.

Vedi la scheda di revisione →

Similar courses

Crea le tue flashcard

Importa il tuo corso e l'AI genera flashcard in 30 secondi.

Generatore di flashcard