wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CH7: High- and Low-level Languages

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

1. Programs are our way of telling a computer ________

a)

A. What to do.

b)

B. How to do.

c)

C. When to do.

d)

D. All of the above.

2.

2. What can a computer do?

a)

A. Stream videos.

b)

B. Drink water.

c)

C. Eat food.

3.

3. Which answer fits the definition of a computer program the best?

a)

A. A robot that works for a user.

b)

B. A list of instructions that enable a computer to perform a specific task.

c)

C. A robot that listens to what a person tells them to do.

d)

D. A list of tasks that they do to satisfy users.

4.

4. Computer can be written in ________

a)

A. High-level languages.

b)

B. Low-level languages.

c)

C. All of the above.

5.

5. High-level programming languages can be used on different types of computer and it is ________

a)

A. Portable.

b)

B. Cheap.

c)

C. Fast.

6.

6. Programming statements written in high-level language are harder to understand than those written in a low-level language.

a)

A. True

b)

B. False

7.

7. Programs written in a high-level language ________

a)

A. Easier to read and understand as the language used is closer to human language.

b)

B. Write in a shorter time.

c)

C. Maintain once in use.

d)

D. All of the above.

8.

8. High-level programming languages in use today include _______

a)

A. Chrome

b)

B. Safari

c)

C. Python

d)

D. Gmail

9.

9. Computers only ‘understand’ their machine code.

a)

A. True

b)

B. False

10.

10. What does LDA mean?

a)

A. Load the value of the variables to the accumulator.

b)

B. Add the value of another variable to the value stored in the accumulator.

c)

C. Replace the value of the variable by the value stored in the accumulator.

d)

D. All of the above.

11.

11. What are the two-piece that makes up an assembly code?

a)

A. Oppa and Opcode.

b)

B. Optical and Opcode.

c)

C. Opcode and Operands.

d)

D. Operand and Optical.

12.

12. What does DSP stand for?

a)

A. Digital Signal Protocol.

b)

B. Digital System Protocol.

c)

C. Digital System Processing.

d)

D. Digital Signal Processing.

13.

13. Which of the following is an example of a type of assembly language?

a)

A. CISC

b)

B. CSS

c)

C. FBI

d)

D. CICS

14.

14. What does the RISC assembly language code stand for?

a)

A. Real-Instruction Start computer.

b)

B. Read Instruction start code.

c)

C. Read instruction start the computer.

d)

D. Reduced instruction set computer.

15.

15. A compiler is a computer program that translates a program written in……….to machine codes.

a)

A. HTML

b)

B. HLL

c)

C. HILL

d)

D. HBL

16.

16. What is an interpreter?

a)

A.computer program that reads a statement from a program written in a low-level language.

b)

B.computer program that reads a statement from a program written in a high-level language.

c)

C.computer program that translates low-level language to high-level language.

d)

D. computer program that translates high level language to low level language.

17.

17. A program must be translated to ……… before a computer uses it.

a)

A.Denary

b)

B.Hexadecimal

c)

C.Binary

d)

D. Machine language

18.

18. What does ADD mean?

a)

A. Load the value of the variables to the accumulator.

b)

B. Plus the value of another variable to the value stored in the accumulator.

c)

C. Replace the value of the variable by the value stored in the accumulator.

d)

D. all of the above.

19.

19. As programs are written by humans, they may contain _______.

a)

A. errors

b)

B. feelings

c)

C. thoughts

d)

D. all of the above

20.

20. There are _______ different types of errors.

a)

A. zero

b)

B. two

c)

C. three

d)

D. several

21.

21. A _______ is where a program statement doesn’t obey the rules of the programming language.

a)

A. systematic error

b)

B. logic error

c)

C. syntax error

d)

D. run-time error

22.

22. A program cannot be _______ if it contains syntax errors.

a)

A. touched

b)

B. bivalve

c)

C. translated

d)

D. flagellated

23.

23. A _______ is where the program doesn’t do what the programmer wanted it to do.

a)

A. logic error

b)

B. Typo

c)

C. Syntax error

d)

D. random software

24.

24. Logic errors are _______ when a program is being run.

a)

A. erased

b)

B. restarted

c)

C. found

d)

D. equalized

25.

25. When a program is being compiled, if any _______ are found no translated program is produced.

a)

A. logic error

b)

B. syntax error

c)

C. run-time error

d)

D. random program

26.

26. When a program is being interpreted, the _______ performs the actions specified by each statement until a syntax error is found.

a)

A. interpreter

b)

B. hacker

c)

C. cracker

d)

D. assembler

27.

The error is corrected by the _______ and the _______ continues until the next error is found or the task is completed.

a)

A. assembler, translation

b)

B. programmer, interpretation

c)

C. compiler, program

d)

D. translator, error

28.

28. When a program is being run, if it doesn’t do what it should do there is a _______.

a)

A. Syntax error

b)

B. Logic error

c)

C. Typo

d)

D. Translation error

29.

29. This is what most high-level programming languages use for program development.

a)

A. IDE

b)

B. Graphics card

c)

C. Machine learning

d)

D. VR

30.

30. What does IDE stand for?

a)

A. Integrated/interactive Development Environment

b)

B. International Development Experiment

c)

C. Intercontinental Deviant Experience

d)

D. Intervening Delorean Emission

31.

31. What does an IDE contain?

a)

A. Source code editor

b)

B. Debugger

c)

C. None of them

d)

B. Both of them

32.

32. What kind of IDE is this?

a)

A. Eclipse IDE

b)

B. Python IDE

c)

C. Apache IDE

d)

D. Komodo Edit

33.

33. Princess Anna scores 80 in her test, however, when she puts her score into the program, it displays a “C” grade and not the expected B grade. Which statement is a logic error?

a)

A. If score > 50: print (‘C’)

b)

B. If score > 75: print (‘B’)

c)

C. If score > 85: print (‘A’)

d)

D. All of them.

34.

34. What are the benefits of using an IDE used by most programmers using high-level programming languages?

a)

A. It supports multiple programming languages at once.

b)

B. It is very simple to use

c)

C. It has many features and tools that handle the project’s errors.

d)

D. All of them.

35.

35. What is the solution to this logic error?

Stanford has 60kg of fish, when he inputs it into a program he wrote earlier, it came out as “Little amount of fish” instead of “Moderate amount of fish”.

Here is the code he wrote

If score > 50: print (‘Little amount of fish’)

If score > 75: print (‘Moderate amount of fish’)

If score > 85: print (‘A lot of fish’)

How to fix the problem?

a)

A. Make the criteria vale more specific.

b)

B. There is no problem found.

c)

C. Hire a better coder.

d)

D. None of the above.