wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Quiz

Total questions: 74

Worksheet time: 37mins

Name
Class
Date
1.

What is a computer?

a)

A machine that performs calculations

b)

A machine that stores data

c)

A machine that accepts input and provides output

d)

A machine that connects to a network

2.

Which is correct information processing cycle

a)

To provide the results of processing

b)

To process data based on instructions

c)

To accept input from a source.

d)

All the above

3.

Which of the following is not a type of personal computer?

a)

Notebook (or laptop) computer

b)

Tablet computer

c)

Desktop computer

d)

Supercomputer

4.

_________________ is a sequence of events consisting of input, processing, storage & output.

a)

Communication

b)

Processing cycle

c)

Computer

d)

Information processing cycle

5.

____________________ 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

a)

Random access memory (RAM)

b)

Input device

c)

Hard disk drive

d)

Central processing unit (CPU)

6.

Which statement is TRUE about the device in figure above

a)

Output device

b)

Camera

c)

Input device

d)

To show image

7.

These devices listed are categorised as

a)

Input

b)

output

c)

storage

d)

processor

8.

Figure x shows the important device to store the information. X is refer to?

a)

Input

b)

storage

c)

Output

d)

Processor

9.

Which type of memory allows the computer to store and retrieve data quickly?

a)

Random access memory (RAM)

b)

Hard disk drive

c)

Optical storage

d)

Read-only memory (ROM)

10.

What is the purpose of computer storage?

a)

To process data

b)

To hold data permanently

c)

To provide output to the user

d)

To accept input from the user

11.

____________________ a set of instructions, data, or programs that tell a computer how to operate and perform specific tasks

a)

Hardware

b)

Operating system

c)

Software

d)

Computer

12.

Which operating system is most popular?

a)

Android OS

b)

Mac OS

c)

Linux OS

d)

Windows OS

13.

Statement “Store data and program instructions, either temporarily or permanently” refers to

a)

Input

b)

Memory

c)

Output

d)

Processor

14.

Statement “Organizes and carried out instructions that come from either the user or the software” refers to

a)

Network interface card

b)

Random access memory

c)

Central processing unit

d)

Read only memory

15.

This device used for data storage purposed, except

a)

Flash drive

b)

Central processing unit

c)

CD-ROM

d)

Read only memory

16.

What is a program?

a)

A machine code understood by the processor

b)

A software used by programmers

c)

A set of instructions that authorize a computer to perform tasks.

d)

A type of computer language

17.

Which programming language is a low-level language made of binary numbers?

a)

Object Oriented Programming Language

b)

Machine language

c)

Assembly language

d)

High-level programming language

18.

What is the purpose of assembly language?

a)

To convert high-level programming languages into machine code

b)

To make programming process more efficient

c)

To provide abstraction from a computer's instruction set architecture

d)

To act as a link between high-level programming languages and machine languages

19.

Which programming language is closer to human languages?

a)

Object Oriented Programming Language

b)

Machine language

c)

Assembly language

d)

High-level programming language

20.

What is the purpose of coding in the programming language hierarchy?

a)

To communicate with the computer at each level

b)

To manipulate program elements graphically

c)

To create software for users

d)

To promote reusability and sharing of codes

21.

Input or sensor will connect to EV3 brick through

a)

PC port

b)

1, 2, 3 or 4 port

c)

A, B, C or D port

d)

USB port

22.

Output will connect to EV3 brick through

a)

PC port

b)

1, 2, 3 or 4 port

c)

A, B, C or D port

d)

USB port

23.

Figure X show output device of an EV3, this device is refer to ?

a)

Large Motor

b)

Touch sensor

c)

Sound

d)

Medium motor

24.

Figure X show output device of an EV3, this device uses to measure

a)

Pressure

b)

Colour

c)

Distance

d)

Temperature

25.

What is the purpose of the LEGO MINDSTORMS EV3 IDE?

a)

To control the motors and sensors of the EV3 Brick

b)

To create a high-level programming environment for the EV3 Brick

c)

To adjust general settings on the EV3 Brick

d)

To navigate and manage files on the EV3 Brick

26.

What are the main input and output connections on the EV3 Brick?

a)

Inputs: A, B, C, D; Outputs: 1, 2, 3, 4

b)

Inputs: 1, 2, 3, 4; Outputs: 1, 2, 3, 4

c)

Inputs: A, B, C, D; Outputs: A, B, C, D

d)

Inputs: 1, 2, 3, 4; Outputs: A, B, C, D

27.

Which component of the EV3 programming environment is used to build the program?

a)

Programming Canvas

b)

Content Editor

c)

Programming Palettes

d)

Hardware page

28.

What is the purpose of the Wait block in EV3 programming?

a)

To download and run the program

b)

To pause the program

c)

To set the sensors and output

d)

To control the motors

29.

What is the purpose of the Content Editor in EV3 programming?

a)

To display information about the EV3 Brick

b)

To build the program

c)

To document the project

d)

To access and manage files

30.

What is the purpose of the Download and Run buttons in EV3 programming?

a)

To set the sensors and output

b)

To adjust general settings on the EV3 Brick

c)

To download and run the program

d)

To control the motors

31.

Figure X show output device of an EV3, this device uses to measure

a)

Pressure

b)

Colour

c)

Distance

d)

Temperature

32.

The block in Figure X represents

a)

Medium motor

b)

Display

c)

Sound

d)

Brick status light

33.

Figure X shows the block in action palette, it represents

a)

Medium motor

b)

Display

c)

Sound

d)

Brick status light

34.

Figure X shows the block in flow control palette, it represents

a)

Loop interrupt

b)

Switch

c)

Wait

d)

Loop

35.

Figure X shows the block in flow control palette, it represents

a)

Loop interrupt

b)

Switch

c)

Wait

d)

Loop

36.

Figure X shows the block in action palette, it represents

a)

Loop interupt

b)

Display

c)

Sound

d)

Brick status light

37.

Figure X shows the block in data operation palette, it represents

a)

Compare

b)

Variable

c)

Constant

d)

Range

38.

Figure X shows the block in data operation palette, it represents

a)

Compare

b)

Variable

c)

Constant

d)

Range

39.

Figure show EV3 programming code block

a)

Sound “1000ms”

b)

Delay “1000ms”

c)

Display “1000ms”

d)

Loop for 1000 times

40.

This programming code operate to produce (a) Sound “1000ms” (c) Delay “1000ms” (b) Display “1000ms” (d) Loop for 1000 times

a)

Sound “1000ms”

b)

Delay “1000ms”

c)

Display “1000ms”

d)

Loop for 1000 times

41.

Time delay for that programming was (a) 10s (c) 150s (b) 100s (d) 1000s

a)

10s

b)

100s

c)

150s

d)

1000s

42.

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

a)

Loop interrupt

b)

Wait

c)

Loop

d)

Switch

43.

What sound will produce when colour sensor detects “green” object (a) Green (c) Red (b) None (d) Blue

a)

Green

b)

None

c)

Red

d)

Blue

44.

Which types of data can be stored in the Variable block in EV3?

a)

Numeric, Logical, Numeric Array

b)

Text, Numeric, Logical

c)

Numeric Array, Logical Array

d)

Text, Numeric, Logical Array

45.

What is the purpose of the Constant block in EV3 programming?

a)

To delay the program execution

b)

To make a choice based on conditions

c)

To store values that never change

d)

To compare sensor values

46.

What is Arduino?

a)

A programming language similar to C and C++

b)

A software medium to upload a program to Arduino hardware

c)

A physical open-source computing platform based on an Atmel AVR microcontroller

d)

A library used to control inputs and outputs on Arduino boards

47.

Which of the following is true about the Arduino IDE?

a)

It is a software medium to upload a program to Arduino hardware

b)

It is a programming language similar to C and C++

c)

It is a physical open-source computing platform

d)

It is a library used to control inputs and outputs on Arduino boards

48.

What is the purpose of the setup() function in Arduino?

a)

To produce output values to analog pins

b)

To take input values from digital pins

c)

To establish the environment in which the program will run and initialize values

d)

To execute instructions repeatedly until the user calls for exit

49.

Which function is automatically called after the setup() function in Arduino?

a)

digitalRead()

b)

analogRead()

c)

loop()

d)

digitalWrite()

50.

Arduino programming language are called

a)

Python

b)

Java

c)

Arduino C

d)

EV3

51.

Figure show Arduino IDE software. That software able to do several functions, except

a)

Code writing

b)

Code checking

c)

Code uploading

d)

Code correction

52.

To ensure program successfully uploaded to the Arduino platform, we need to ensure that at Arduino IDE we a selected correct

a)

Numeric, Logical, Numeric Array

b)

Text, Numeric, Logical

c)

Numeric Array, Logical Array

d)

Text, Numeric, Logical Array

53.

Which Arduino Sketch Structure that will be executed repeatedly.

a)

Setup Function

b)

User Define Function

c)

Loop Function

d)

Program Comments

54.

Which Arduino Sketch Structure that will be executed once.

a)

Setup Function

b)

User Define Function

c)

Loop Function

d)

Program Comments

55.

Which Arduino Sketch Structure that will be executed never executed.

a)

Setup Function

b)

User Define Function

c)

Loop Function

d)

Program Comments

56.

Which Arduino Sketch Structure that will be executed only when it is called.

a)

Setup Function

b)

User Define Function

c)

Loop Function

d)

Program Comments

57.

Which is correct order of Arduino Sketch Structure

a)

User define function → Loop function → Setup function → Initialization

b)

Initialization → Loop function → Setup function → User define function

c)

Initialization → Setup function → Loop function → User define function

d)

User define function → Setup function → Loop function → Initialization

58.

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

a)

i and ii

b)

i and iii

c)

ii and iii

d)

All above

59.

Which the correct command to established output pin in Arduino programming

a)

PinMode(12,OUTPUT);

b)

PinMode(12,OUTPUT)

c)

pinMode(12,OUTPUT);

d)

pinMode(12,OUTPUT)

60.

Which is the correct single line comment command.

a)

/ put your setup code here

b)

| put your setup code here

c)

| | put your setup code here

d)

// put your setup code here

61.

Most of Arduino statements end with

a)

/

b)

:

c)

_

d)

;

62.

Which command is used to upload an Arduino sketch onto the Arduino board?

a)

Upload

b)

Compile

c)

Run

d)

Verify

63.

Which comparison operator is used to check if two values are equal in Arduino C programming?

a)

>

b)

=

c)

<

d)

!=

64.

Which operator is used for addition in Arduino C?

a)

*

b)

-

c)

<

d)

+

65.

What is the purpose of the IF()...ELSE statement in Arduino C programming?

a)

To implement conditional control based on a condition

b)

To handle serial communication

c)

To create loops in the program

d)

To define user-defined functions

66.

Which arithmetic operator in Arduino programming represents multiplication

a)

+

b)

-

c)

*

d)

/

67.

Which boolean operator in Arduino programming represents AND

a)

|

b)

||

c)

&

d)

&&

68.

Which boolean operator in Arduino programming represents NOT

a)

|

b)

||

c)

==

d)

!=

69.

What is the purpose of the Serial.begin(9600) command in Arduino?

a)

To print strings of characters to the connected serial device

b)

To establish a data transfer speed

c)

To set the available bytes waiting in the serial buffer

d)

To read the first byte of information available

70.

What is the purpose of a boolean variable in Arduino?

a)

To store a character

b)

To store a true or false value

c)

To store a number with decimal point

d)

To store a text string

71.

Which data type is used to store a character in Arduino?

a)

char

b)

float

c)

boolean

d)

int

72.

Which command type used as iterative Control. i. For Loop statement ii. While Loop statement iii. Break and continue statement

a)

i

b)

ii and iii

c)

iii

d)

All above

73.

What is the baud rate?

a)

The speed at which data is printed to the connected serial device

b)

The transfer rate for sending and receiving information packets

c)

The number of available bytes waiting in the serial buffer

d)

The first byte of information available in the serial buffer

74.

What is the range of values that can be stored in an int variable in Arduino?

a)

0 to 255

b)

-32,768 to 32,767

c)

0 to 65,535

d)

-128 to 127