NEW
Font size
WorksheetsICT Programming and Logic Lesson 1
Total questions: 31
Worksheet time: 16mins
What is the role of programming in computing?
To create hardware components
To define and solve problems using code
To design user interfaces
To manage network connections
What is binary representation used for in computers?
To create graphics
To store and process data and programs
To manage user input
To design software interfaces
Which of the following is a high-level programming language?
Machine language
Assembly language
Python
Binary code
Which language is usually compiled?
JavaScript
Python
C++
HTML
Why is sequencing important in the structure of a simple program?
It helps in creating graphics
It ensures the program runs in the correct order
It allows for user interaction
It manages network connections
What is pseudocode used for in program design?
To write the final code
To create a visual design
To outline the program flow
To compile the program
What do programs consist of?
Instructions that tell the computer what to do
Pictures and videos
Music and sounds
Games and applications
Who is a programmer?
A person that writes programs
A person that repairs computers
A person that designs websites
A person that plays video games
What is programming?
The process of writing a computer program
The process of playing computer games
The process of designing computer hardware
The process of fixing computer errors
What is a programming language?
A set of key words and syntax for organizing instructions
A type of spoken language
A collection of computer games
A book about computers
What is a computer?
A machine that can perform a task independently
A device that only stores data
A tool for drawing pictures
A machine that cannot run programs
What does a computer need to perform tasks?
A program that tells it what to do
A manual guide
A set of tools
A battery
What is executing in terms of computers?
When a computer runs a program and performs tasks
When a computer is turned off
When a computer is being repaired
When a computer is charging
Which of the following is a primary function of a computer?
Storing, retrieving, and displaying data
Painting pictures
Playing music
Making phone calls
What does a computer do when it calculates and manipulates data?
Adding, multiplying, comparing & moving data
Printing documents
Sending emails
Browsing the internet
What is the only language a computer understands?
Machine language
Assembly language
Python
Java
What is a transistor in the context of machine language?
A type of computer program
An electrical switch that is either off (0) or on (1)
A storage device
A type of software
How many bits are in a byte?
Four bits
Six bits
Eight bits
Ten bits
What is the base of machine language?
Base 10 (0-9)
Base 8 (0-7)
Base 16 (0-9, A-F)
Base 2 (0,1)
What is a characteristic of assembly language?
Easy to write
Uses symbols and recognizable code
Same for all computers
Does not use symbols
Why is assembly language considered difficult to write?
It is too simple
It is unique to different computers
It uses complex symbols
It is similar to machine language
What are high-level programming languages usually written with?
Machine code
Binary numbers
English words and phrases
Hexadecimal code
Which of the following is a high-level programming language?
Assembly
Python
Binary
Machine code
What must high-level languages be translated into before they can be run?
Assembly language
Source code
Machine language
Pseudocode
What is the correct way to print "Hello, World!" in Java?
print("Hello, World!");
System.out.println("Hello, World!");
echo "Hello, World!";
Console.WriteLine("Hello, World!");
Which programming language uses the command `print("Hello World!")` to display "Hello, World!"?
Java
Python
C++
JavaScript
In Snap! or Scratch, which block is used to display "Hello, World!"?
when clicked, say Hello, world!
on start, print Hello, world!
if clicked, display Hello, world!
start, echo Hello, world!
What is a characteristic of compiled languages?
Translates the entire program before running
Translates line by line during execution
Slower than translated languages
Only used for web development
How do translated languages or interpreters work?
Translate the entire program before execution
Translate a few instructions, execute them, then continue
Only translate after the program is fully executed
Translate instructions randomly
What is one characteristic of structured programming?
Works from the bottom to top
Designed by combining problems into larger ones
Allows programmers to re-use portions of code
Makes it harder to correct errors
How does structured programming make problems easier to execute?
By ignoring smaller problems
By breaking problems into smaller, logical problems
By using only one large block of code
By avoiding the use of code
