wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Basics Quiz

Total questions: 37

Worksheet time: 19mins

Name
Class
Date
1.

What is a computer?

a)

A machine that only stores data

b)

A device used only for communication

c)

An electronic machine that receives data, processes data, and produces output

d)

A machine that only produces output

2.

Which of the following is an example of a computer?

a)

A refrigerator

b)

A laptop

c)

A television

d)

A washing machine

3.

What is the first step a computer performs?

a)

Produces output

b)

Processes data

c)

Receives data (input)

d)

Stores data

4.

Which of the following is NOT a function of a computer?

a)

Receives data

b)

Processes data

c)

Produces output

d)

Repairs itself

5.

Which of the following devices is NOT an example of a computer?

a)

Medical devices

b)

Cars

c)

Phones

d)

Microwave ovens

6.

What do computers follow to execute tasks?

a)

Emotions

b)

Algorithms

c)

Random guesses

d)

Human thoughts

7.

What is programming?

a)

Writing instructions a computer can follow

b)

Making computers think like humans

c)

Designing computer hardware

d)

Creating random tasks for computers

8.

Which of the following is NOT a purpose of programming?

a)

Solve problems

b)

Automate tasks

c)

Make computers think

d)

Write instructions for computers

9.

Why do computers not think?

a)

They lack intelligence

b)

They only execute exactly what we program

c)

They are too slow

d)

They are not connected to the internet

10.

What is a programming language?

a)

A tool used to create physical machines

b)

A language used to communicate with other people

c)

A set of instructions a computer can understand

d)

A type of hardware used in computers

11.

Which of the following is an example of a programming language used for creating websites?

a)

Java

b)

Python

c)

JavaScript

d)

C#

12.

Which programming language is commonly used for developing Android apps and enterprise software?

a)

Python

b)

Java

c)

C#

d)

JavaScript

13.

What is Python commonly used for?

a)

Creating games

b)

Developing Android apps

c)

Artificial Intelligence and automation

d)

Building websites

14.

Which programming language is often used for game development in Unity Engine?

a)

Java

b)

Python

c)

C#

d)

JavaScript

15.

A diagram showing the definition of a programming language and examples of programming languages such as Java, Python, JavaScript, and C# with their respective uses. Which of the following is NOT a programming language shown in the diagram?

a)

Java

b)

Python

c)

JavaScript

d)

HTML

16.

Which type of programming organizes code into objects with data and behavior?

a)

Procedural Programming

b)

Object-Oriented Programming (OOP)

c)

Functional Programming

d)

Logic/Declarative Programming

17.

Which programming type focuses on functions and avoids changing data?

a)

Procedural Programming

b)

Object-Oriented Programming (OOP)

c)

Functional Programming

d)

Logic/Declarative Programming

18.

Which programming type involves describing what you want, not how to do it?

a)

Procedural Programming

b)

Object-Oriented Programming (OOP)

c)

Functional Programming

d)

Logic/Declarative Programming

19.

Which of the following is an example of a Procedural Programming language?

a)

Java

b)

C

c)

Haskell

d)

Prolog

20.

Which of the following is NOT an example of Object-Oriented Programming (OOP) languages?

a)

Python

b)

C++

c)

SQL

d)

Java

21.

What is the main idea behind Procedural Programming?

a)

Code runs in sequence with procedures (functions).

b)

Organizes code into objects with data and behavior.

c)

Focuses on functions and avoids changing data.

d)

You describe what you want, not how to do it.

22.

Which programming type uses languages like Haskell, Scala, and Kotlin?

a)

Procedural Programming

b)

Object-Oriented Programming (OOP)

c)

Functional Programming

d)

Logic/Declarative Programming

23.

What is the main idea behind Logic/Declarative Programming?

a)

Code runs in sequence with procedures (functions).

b)

Organizes code into objects with data and behavior.

c)

Focuses on functions and avoids changing data.

d)

You describe what you want, not how to do it.

24.

What is Java?

a)

A type of coffee

b)

A high-level, object-oriented programming language

c)

A type of operating system

d)

A database management system

25.

Who created Java and in which year?

a)

Microsoft, 1990

b)

Sun Microsystems, 1995

c)

Apple, 2000

d)

Google, 1998

26.

Which of the following is NOT a characteristic of Java?

a)

Simplicity — readable and structured

b)

Reliability — used for critical systems

c)

Portability — runs on any computer

d)

Incompatibility — works only on specific systems

27.

Why is Java considered secure?

a)

It is used in banks and enterprises

b)

It has a simple syntax

c)

It is created by Sun Microsystems

d)

It is a low-level programming language

28.

What is the first step in how Java works?

a)

JVM executes the bytecode

b)

You write Java code (.java file)

c)

Java Compiler (javac) converts it to bytecode (.class file)

d)

Java Virtual Machine runs Java on any platform

29.

What does the Java Compiler (javac) do?

a)

Executes the bytecode

b)

Converts Java code into bytecode (.class file)

c)

Runs Java on any platform

d)

Writes Java code

30.

What is the role of JVM in the process of how Java works?

a)

It writes Java code

b)

It converts Java code into bytecode

c)

It executes the bytecode

d)

It compiles Java code

31.

What does JVM stand for?

a)

Java Virtual Machine

b)

Java Version Manager

c)

Java Verification Module

d)

Java Variable Manager

32.

What is the purpose of JVM?

a)

To write Java code

b)

To convert Java code into bytecode

c)

To run Java on any platform

d)

To compile Java code

33.

What is the purpose of the `System.out.println("Hello, Java!");` statement in the given Java code?

a)

It prints "Hello, Java!" to the console.

b)

It declares a variable named "Hello, Java!".

c)

It creates a new class named "Hello, Java!".

d)

It terminates the program.

34.

What is the name of the class defined in the given Java code?

a)

Main

b)

Hello

c)

Java

d)

System

35.

Which method is used as the entry point of the program in the given Java code?

a)

main()

b)

println()

c)

System.out()

d)

args()

36.

What is the correct syntax to print a message in Java, as shown in the code?

a)

System.out.print("Hello, Java!");

b)

System.out.println("Hello, Java!");

c)

Print("Hello, Java!");

d)

Console.print("Hello, Java!");

37.

What is the purpose of the `public static void main(String[] args)` method in Java?

a)

It is the starting point of execution for a Java program.

b)

It defines a variable named "args".

c)

It prints the output of the program.

d)

It creates a new class in Java.