NEW
Font size
WorksheetsCH7: High- and Low-level Languages
Total questions: 35
Worksheet time: 18mins
1. Programs are our way of telling a computer ________
A. What to do.
B. How to do.
C. When to do.
D. All of the above.
2. What can a computer do?
A. Stream videos.
B. Drink water.
C. Eat food.
3. Which answer fits the definition of a computer program the best?
A. A robot that works for a user.
B. A list of instructions that enable a computer to perform a specific task.
C. A robot that listens to what a person tells them to do.
D. A list of tasks that they do to satisfy users.
4. Computer can be written in ________
A. High-level languages.
B. Low-level languages.
C. All of the above.
5. High-level programming languages can be used on different types of computer and it is ________
A. Portable.
B. Cheap.
C. Fast.
6. Programming statements written in high-level language are harder to understand than those written in a low-level language.
A. True
B. False
7. Programs written in a high-level language ________
A. Easier to read and understand as the language used is closer to human language.
B. Write in a shorter time.
C. Maintain once in use.
D. All of the above.
8. High-level programming languages in use today include _______
A. Chrome
B. Safari
C. Python
D. Gmail
9. Computers only ‘understand’ their machine code.
A. True
B. False
10. What does LDA mean?
A. Load the value of the variables to the accumulator.
B. Add the value of another variable to the value stored in the accumulator.
C. Replace the value of the variable by the value stored in the accumulator.
D. All of the above.
11. What are the two-piece that makes up an assembly code?
A. Oppa and Opcode.
B. Optical and Opcode.
C. Opcode and Operands.
D. Operand and Optical.
12. What does DSP stand for?
A. Digital Signal Protocol.
B. Digital System Protocol.
C. Digital System Processing.
D. Digital Signal Processing.
13. Which of the following is an example of a type of assembly language?
A. CISC
B. CSS
C. FBI
D. CICS
14. What does the RISC assembly language code stand for?
A. Real-Instruction Start computer.
B. Read Instruction start code.
C. Read instruction start the computer.
D. Reduced instruction set computer.
15. A compiler is a computer program that translates a program written in……….to machine codes.
A. HTML
B. HLL
C. HILL
D. HBL
16. What is an interpreter?
A.computer program that reads a statement from a program written in a low-level language.
B.computer program that reads a statement from a program written in a high-level language.
C.computer program that translates low-level language to high-level language.
D. computer program that translates high level language to low level language.
17. A program must be translated to ……… before a computer uses it.
A.Denary
B.Hexadecimal
C.Binary
D. Machine language
18. What does ADD mean?
A. Load the value of the variables to the accumulator.
B. Plus the value of another variable to the value stored in the accumulator.
C. Replace the value of the variable by the value stored in the accumulator.
D. all of the above.
19. As programs are written by humans, they may contain _______.
A. errors
B. feelings
C. thoughts
D. all of the above
20. There are _______ different types of errors.
A. zero
B. two
C. three
D. several
21. A _______ is where a program statement doesn’t obey the rules of the programming language.
A. systematic error
B. logic error
C. syntax error
D. run-time error
22. A program cannot be _______ if it contains syntax errors.
A. touched
B. bivalve
C. translated
D. flagellated
23. A _______ is where the program doesn’t do what the programmer wanted it to do.
A. logic error
B. Typo
C. Syntax error
D. random software
24. Logic errors are _______ when a program is being run.
A. erased
B. restarted
C. found
D. equalized
25. When a program is being compiled, if any _______ are found no translated program is produced.
A. logic error
B. syntax error
C. run-time error
D. random program
26. When a program is being interpreted, the _______ performs the actions specified by each statement until a syntax error is found.
A. interpreter
B. hacker
C. cracker
D. assembler
The error is corrected by the _______ and the _______ continues until the next error is found or the task is completed.
A. assembler, translation
B. programmer, interpretation
C. compiler, program
D. translator, error
28. When a program is being run, if it doesn’t do what it should do there is a _______.
A. Syntax error
B. Logic error
C. Typo
D. Translation error
29. This is what most high-level programming languages use for program development.
A. IDE
B. Graphics card
C. Machine learning
D. VR
30. What does IDE stand for?
A. Integrated/interactive Development Environment
B. International Development Experiment
C. Intercontinental Deviant Experience
D. Intervening Delorean Emission
31. What does an IDE contain?
A. Source code editor
B. Debugger
C. None of them
B. Both of them
32. What kind of IDE is this?
A. Eclipse IDE
B. Python IDE
C. Apache IDE
D. Komodo Edit
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. If score > 50: print (‘C’)
B. If score > 75: print (‘B’)
C. If score > 85: print (‘A’)
D. All of them.
34. What are the benefits of using an IDE used by most programmers using high-level programming languages?
A. It supports multiple programming languages at once.
B. It is very simple to use
C. It has many features and tools that handle the project’s errors.
D. All of them.
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. Make the criteria vale more specific.
B. There is no problem found.
C. Hire a better coder.
D. None of the above.
