Flashcards: Introduction to Computer Programming — 38 cartões

Todos os cartões

1Pergunta

How long is the lecture time in Unit 1?

Resposta

Two hours of lecture time.

2Pergunta

Does Unit 1 include any laboratory work?

Resposta

No, it includes no laboratory work.

3Pergunta

Do students write or compile code in Unit 1?

Resposta

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

4Pergunta

What is a computer?

Resposta

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

5Pergunta

What defines a program?

Resposta

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

6Pergunta

What is an instruction in a program?

Resposta

One single command inside a program.

7Pergunta

How does a computer obey instructions?

Resposta

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

8Pergunta

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

Resposta

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

9Pergunta

Who is responsible for every instruction a computer executes?

Resposta

The programmer is accountable for every instruction carried out.

10Pergunta

Does programmer responsibility include omitted instructions?

Resposta

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

11Pergunta

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

Resposta

Memory, files, devices, and processor sharing.

12Pergunta

What is the purpose of an application program?

Resposta

To perform a job wanted by the user.

13Pergunta

Give examples of jobs an application program performs.

Resposta

Writing, browsing, or computing a grade.

14Pergunta

What is an operating system in relation to system programs?

Resposta

The main system program.

15Pergunta

What resources does an operating system share among programs?

Resposta

Memory, processor time, and files.

16Pergunta

What digits does the binary number system use?

Resposta

Digits 0 and 1.

17Pergunta

What is machine language composed of?

Resposta

Instructions written in binary.

18Pergunta

Which language form can the processor execute directly?

Resposta

Machine language.

19Pergunta

How do you convert a binary number to decimal?

Resposta

Add place values of positions containing 1.

20Pergunta

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

Resposta

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

21Pergunta

What does assembly language use to write machine instructions?

Resposta

Short command words like LOAD, ADD, and STORE.

22Pergunta

How many machine steps does one assembly language word represent?

Resposta

One machine step.

23Pergunta

Why is a high-level language written?

Resposta

For programmer convenience.

24Pergunta

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

Resposta

Many machine steps.

25Pergunta

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

Resposta

Binary code.

26Pergunta

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

Resposta

Short words.

27Pergunta

What type of statements does high-level code use?

Resposta

Readable statements for several machine steps.

28Pergunta

What does a translator program do?

Resposta

It converts source code from one language to another.

29Pergunta

When does a compiler translate source code?

Resposta

Before the program runs, translating the whole source file.

30Pergunta

What output does a compiler produce?

Resposta

A machine-code file saved on disk.

31Pergunta

How does an interpreter execute source code?

Resposta

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

32Pergunta

Does an interpreter save a translated file?

Resposta

No, it does not save a translated file.

33Pergunta

How does compilation differ from interpretation in start time?

Resposta

Compilation is slower to start than interpretation.

34Pergunta

Which is faster to run: compiled or interpreted code?

Resposta

Compiled code runs faster than interpreted code.

35Pergunta

When does interpretation find errors compared to compilation?

Resposta

Interpretation finds errors when the line is reached during execution.

36Pergunta

How do you make an everyday instruction executable?

Resposta

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

37Pergunta

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

Resposta

PASSED

38Pergunta

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

Resposta

FAILED

Teste-se com o quiz

Teste seu conhecimento com 21 perguntas sobre Introduction to Computer Programming.

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

2. What is the scheduled format of Unit 1?

Faça o quiz →

Leia a ficha de revisão

Revise o curso completo na ficha de revisão para Introduction to Computer Programming.

Veja a ficha de revisão →

Similar courses

Crie seus próprios flashcards

Importe seu curso e a IA gera flashcards em 30 segundos.

Gerador de flashcards