Font size
WorksheetsComputer Science Quiz
Total questions: 74
Worksheet time: 37mins
What is a computer?
A machine that performs calculations
A machine that stores data
A machine that accepts input and provides output
A machine that connects to a network
Which is correct information processing cycle
To provide the results of processing
To process data based on instructions
To accept input from a source.
All the above
Which of the following is not a type of personal computer?
Notebook (or laptop) computer
Tablet computer
Desktop computer
Supercomputer
_________________ is a sequence of events consisting of input, processing, storage & output.
Communication
Processing cycle
Computer
Information processing cycle
____________________ is the main component of a computer that controls the flow of data and instructions,
and is responsible for running the operating system and applications
Random access memory (RAM)
Input device
Hard disk drive
Central processing unit (CPU)
Which statement is TRUE about the device in figure above
Output device
Camera
Input device
To show image
These devices listed are categorised as
Input
output
storage
processor
Figure x shows the important device to store the information. X is refer to?
Input
storage
Output
Processor
Which type of memory allows the computer to store and retrieve data quickly?
Random access memory (RAM)
Hard disk drive
Optical storage
Read-only memory (ROM)
What is the purpose of computer storage?
To process data
To hold data permanently
To provide output to the user
To accept input from the user
____________________ a set of instructions, data, or programs that tell a computer how to operate and perform specific tasks
Hardware
Operating system
Software
Computer
Which operating system is most popular?
Android OS
Mac OS
Linux OS
Windows OS
Statement “Store data and program instructions, either temporarily or permanently” refers to
Input
Memory
Output
Processor
Statement “Organizes and carried out instructions that come from either the user or the software” refers to
Network interface card
Random access memory
Central processing unit
Read only memory
This device used for data storage purposed, except
Flash drive
Central processing unit
CD-ROM
Read only memory
What is a program?
A machine code understood by the processor
A software used by programmers
A set of instructions that authorize a computer to perform tasks.
A type of computer language
Which programming language is a low-level language made of binary numbers?
Object Oriented Programming Language
Machine language
Assembly language
High-level programming language
What is the purpose of assembly language?
To convert high-level programming languages into machine code
To make programming process more efficient
To provide abstraction from a computer's instruction set architecture
To act as a link between high-level programming languages and machine languages
Which programming language is closer to human languages?
Object Oriented Programming Language
Machine language
Assembly language
High-level programming language
What is the purpose of coding in the programming language hierarchy?
To communicate with the computer at each level
To manipulate program elements graphically
To create software for users
To promote reusability and sharing of codes
Input or sensor will connect to EV3 brick through
PC port
1, 2, 3 or 4 port
A, B, C or D port
USB port
Output will connect to EV3 brick through
PC port
1, 2, 3 or 4 port
A, B, C or D port
USB port
Figure X show output device of an EV3, this device is refer to ?
Large Motor
Touch sensor
Sound
Medium motor
Figure X show output device of an EV3, this device uses to measure
Pressure
Colour
Distance
Temperature
What is the purpose of the LEGO MINDSTORMS EV3 IDE?
To control the motors and sensors of the EV3 Brick
To create a high-level programming environment for the EV3 Brick
To adjust general settings on the EV3 Brick
To navigate and manage files on the EV3 Brick
What are the main input and output connections on the EV3 Brick?
Inputs: A, B, C, D; Outputs: 1, 2, 3, 4
Inputs: 1, 2, 3, 4; Outputs: 1, 2, 3, 4
Inputs: A, B, C, D; Outputs: A, B, C, D
Inputs: 1, 2, 3, 4; Outputs: A, B, C, D
Which component of the EV3 programming environment is used to build the program?
Programming Canvas
Content Editor
Programming Palettes
Hardware page
What is the purpose of the Wait block in EV3 programming?
To download and run the program
To pause the program
To set the sensors and output
To control the motors
What is the purpose of the Content Editor in EV3 programming?
To display information about the EV3 Brick
To build the program
To document the project
To access and manage files
What is the purpose of the Download and Run buttons in EV3 programming?
To set the sensors and output
To adjust general settings on the EV3 Brick
To download and run the program
To control the motors
Figure X show output device of an EV3, this device uses to measure
Pressure
Colour
Distance
Temperature
The block in Figure X represents
Medium motor
Display
Sound
Brick status light
Figure X shows the block in action palette, it represents
Medium motor
Display
Sound
Brick status light
Figure X shows the block in flow control palette, it represents
Loop interrupt
Switch
Wait
Loop
Figure X shows the block in flow control palette, it represents
Loop interrupt
Switch
Wait
Loop
Figure X shows the block in action palette, it represents
Loop interupt
Display
Sound
Brick status light
Figure X shows the block in data operation palette, it represents
Compare
Variable
Constant
Range
Figure X shows the block in data operation palette, it represents
Compare
Variable
Constant
Range
Figure show EV3 programming code block
Sound “1000ms”
Delay “1000ms”
Display “1000ms”
Loop for 1000 times
This programming code operate to produce (a) Sound “1000ms” (c) Delay “1000ms” (b) Display “1000ms” (d) Loop for 1000 times
Sound “1000ms”
Delay “1000ms”
Display “1000ms”
Loop for 1000 times
Time delay for that programming was (a) 10s (c) 150s (b) 100s (d) 1000s
10s
100s
150s
1000s
After programming is running, nothing is display at screen. Which flow control block need to insert in programming so that “MINDSTORMS” appear on screen for certain time (a) Loop interrupt (c) Wait (b) Loop (d) Switch
Loop interrupt
Wait
Loop
Switch
What sound will produce when colour sensor detects “green” object (a) Green (c) Red (b) None (d) Blue
Green
None
Red
Blue
Which types of data can be stored in the Variable block in EV3?
Numeric, Logical, Numeric Array
Text, Numeric, Logical
Numeric Array, Logical Array
Text, Numeric, Logical Array
What is the purpose of the Constant block in EV3 programming?
To delay the program execution
To make a choice based on conditions
To store values that never change
To compare sensor values
What is Arduino?
A programming language similar to C and C++
A software medium to upload a program to Arduino hardware
A physical open-source computing platform based on an Atmel AVR microcontroller
A library used to control inputs and outputs on Arduino boards
Which of the following is true about the Arduino IDE?
It is a software medium to upload a program to Arduino hardware
It is a programming language similar to C and C++
It is a physical open-source computing platform
It is a library used to control inputs and outputs on Arduino boards
What is the purpose of the setup() function in Arduino?
To produce output values to analog pins
To take input values from digital pins
To establish the environment in which the program will run and initialize values
To execute instructions repeatedly until the user calls for exit
Which function is automatically called after the setup() function in Arduino?
digitalRead()
analogRead()
loop()
digitalWrite()
Arduino programming language are called
Python
Java
Arduino C
EV3
Figure show Arduino IDE software. That software able to do several functions, except
Code writing
Code checking
Code uploading
Code correction
To ensure program successfully uploaded to the Arduino platform, we need to ensure that at Arduino IDE we a selected correct
Numeric, Logical, Numeric Array
Text, Numeric, Logical
Numeric Array, Logical Array
Text, Numeric, Logical Array
Which Arduino Sketch Structure that will be executed repeatedly.
Setup Function
User Define Function
Loop Function
Program Comments
Which Arduino Sketch Structure that will be executed once.
Setup Function
User Define Function
Loop Function
Program Comments
Which Arduino Sketch Structure that will be executed never executed.
Setup Function
User Define Function
Loop Function
Program Comments
Which Arduino Sketch Structure that will be executed only when it is called.
Setup Function
User Define Function
Loop Function
Program Comments
Which is correct order of Arduino Sketch Structure
User define function → Loop function → Setup function → Initialization
Initialization → Loop function → Setup function → User define function
Initialization → Setup function → Loop function → User define function
User define function → Setup function → Loop function → Initialization
To ensure program successfully upload to the Arduino, we need to ensure that at Arduino IDE we a selected correct:
(i) Arduino board type
(ii) Port number
(iii) Pin number
i and ii
i and iii
ii and iii
All above
Which the correct command to established output pin in Arduino programming
PinMode(12,OUTPUT);
PinMode(12,OUTPUT)
pinMode(12,OUTPUT);
pinMode(12,OUTPUT)
Which is the correct single line comment command.
/ put your setup code here
| put your setup code here
| | put your setup code here
// put your setup code here
Most of Arduino statements end with
/
:
_
;
Which command is used to upload an Arduino sketch onto the Arduino board?
Upload
Compile
Run
Verify
Which comparison operator is used to check if two values are equal in Arduino C programming?
>
=
<
!=
Which operator is used for addition in Arduino C?
*
-
<
+
What is the purpose of the IF()...ELSE statement in Arduino C programming?
To implement conditional control based on a condition
To handle serial communication
To create loops in the program
To define user-defined functions
Which arithmetic operator in Arduino programming represents multiplication
+
-
*
/
Which boolean operator in Arduino programming represents AND
|
||
&
&&
Which boolean operator in Arduino programming represents NOT
|
||
==
!=
What is the purpose of the Serial.begin(9600) command in Arduino?
To print strings of characters to the connected serial device
To establish a data transfer speed
To set the available bytes waiting in the serial buffer
To read the first byte of information available
What is the purpose of a boolean variable in Arduino?
To store a character
To store a true or false value
To store a number with decimal point
To store a text string
Which data type is used to store a character in Arduino?
char
float
boolean
int
Which command type used as iterative Control. i. For Loop statement ii. While Loop statement iii. Break and continue statement
i
ii and iii
iii
All above
What is the baud rate?
The speed at which data is printed to the connected serial device
The transfer rate for sending and receiving information packets
The number of available bytes waiting in the serial buffer
The first byte of information available in the serial buffer
What is the range of values that can be stored in an int variable in Arduino?
0 to 255
-32,768 to 32,767
0 to 65,535
-128 to 127
