Font size
WorksheetsProgramming Languages
Total questions: 103
Worksheet time: 55mins
............ converts high level languages into machine code one instruction at a time on-the-fly while the program is running. Each instruction is converted to machine code once the previous instruction has been executed.
Compiler
Interpreter
Assembler
............ is a program that converts high level languages into machine code before the program is run. A compiler saves the machine code, so the source code is no longer needed A compiler allows a program to be run faster that interpreted code.
Compiler
Interpreter
Assembler
............ converts assembly language instructions into machine code.
Compiler
Interpreter
Assembler
A high level language .......
use mnemonics
are easier to understand
Needs a translator
run slower because of the layers of abstraction and there is inefficiency in translator.
A low level language ......
are very difficult to understand and modify
is written for a specific processor architecture, and so is not portable to other computer architectures
are appropriate for developing new operating systems, embedded systems and hardware device drivers
are easier to understand
Machine code ....
is expressed in binary values 0 and 1.
is specific to a processor.
are made up of two parts the operator and the operand.
is portable
Interpreters ....
convert each instruction is to machine code once the previous instruction has been executed.
converts high level languages into machine code one instruction at a time on-the-fly while the program is running
are good for debugging code because the program stops as soon as the error has been found.
saves the machine code, so the source code is no longer needed
Python is a high-level programming language
True
False
Python code uses interpreter to convert it into machine code one instruction at a time on-the-fly while the program is running.
False
True
What is a computer programming language?
All these are programming language except......................
Java
Javascript
Python
Big C
Which of the following is NOT an example of a higher level language
Python
Ruby
Java
Fortran
A high level computer language is a language that is difficult for computer to understand and perform. They program the language in the computers to high level. They use words such as print, if, input and while statements “
True
False
Low level computer language is easy to learn and is used by more people this computer programming language type is as flexible and abstract and overall well functional.
True
False
Which letter represents the right level of programming
A is Low-level Programming
B is High-level programming
A is High level Programming
B is low level programing
A CPU only understands instructions in ……………………………………. form?
Binary
Numbers
Letters
none of the above
The fundamental language of the computer is called……………………………….. language ?
Machine
Python
Ruby
Scratch
.................. are the steps to take when you are making something using programming. It is for completing a particular task, and for functioning computers and other programmed objects.
Binary Code
Machine Code
Algorithms
Code
The follwoing are all types of Algorithms excepts
Recursive
Greedy
Dynamic
Strong
Python was developed by
Guido van Don
Guido van Gossum
Guido van Rossum
Guido van Sossum
Yes
19
What is a flowchart?
A flowchart is a text-based way of designing an algorithm
A flowchart is a specific programming language
A flowchart is a diagram that represents a set of instructions
What is the symbol for a decision in a flowchart?
A parallelogram
A diamond
A circle
Which of these is the correct symbol for a process in a flowchart?
A diamond
A rectangle
A parallelogram
High-level languages are also known as 4GLs.
False
True
COBOL is a 4GL.
False
True
Fourth-generation languages are non-procedural.
False
True
Machine language is procedural.
True
False
In a procedural language, users define only what they want the computer to do.
False
True
4GLs are attractive to a large number of new users which can be a disadvantage.
False
True
Scenario: There is an algorithm in preparing rice. What is the first step in the given choices?
Cook the rice
Measure the rice
Rinse the rise
Serve the rice
This is a set of steps used to complete a specific task.
Flowchart
Algorithm
Order
Routine
The following image shows a simple arithmetical algorithm. What is the missing item here?
123
132
213
312
“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many stickers there are in all.” What do you think is the best algorithm to use in this situation?
Addition
Subtraction
Multiplication
Division
“Zayd has 32 packs of stickers. Each pack has 467 stickers. He wants to know how many packs he can give with an equal amount of stickers.” What do you think is the best algorithm to use in this situation?
Addition
Subtraction
Multiplication
Division
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
This is a graphical representation of an algorithm.
Dropdiagram
Flowchart
Waveform
Streamshow
What will be displayed as output?
What will be displayed as output?
Yes
<
distanceToSchool = 10
What is the value of the variable?
This symbol indicates a question to be answered
Process symbol
Terminator symbol
Decision symbol
Document symbol
This is another name for the start/end symbol
Initial Symbol
Terminator Symbol
Programming Symbol
Pseudo Symbol
what is a flow chart
showing the direction of water
a measurement of how much flow a song has
a diagram showing a sequence of actions
a medical diagnosis
what does this do
process
decision
terminator
input/output
decision
process
terminator
input/output
what is this
process
input/output
decision
terminator
what is this
process
terminator
input/output
decision
This is a diagram that shows a process, system, or computer algorithm
Procedure
Process
Flowchart
Pseudocode
What symbol is shown here
Process
Decision
Terminator
Input/Output
What symbol is shown here
Process
Decision
Terminator
Input/Output
What symbol is shown here
Process
Decision
Terminator
Input/Output
It should not use any specific programming language
How would we assign a value to a variable in (aqa) pseudo code?
name <-- "Peter"
name = "Peter"
"Peter" = name
name == "Peter"
Which is the correct example of selection (aqa) pseudo code?
if number > 10:
IF number >10 THEN
while number >10:
WHILE number > 10
Is this the correct way of writing pseudo code?
age = 16
if age > 18:
print("You are an adult")
else:
print("You are a child")
Yes - looks good to me
No
Why is it important to be consistent with naming conventions?
It looks better
So variables are easily identifiable
So you can see what's going on
Because all programming languages are consistant
what is a flow chart
showing the direction of water
a measurement of how much flow a song has
a diagram showing a sequence of actions
a medical diagnosis
Which one of the following statements is TRUE about Pseudo codes?
It can be run on a computer.
It can be expressed in diagrams.
It is a method to represent an algorithm.
It is written in JavaScript syntax only.
