NEW
Font size
WorksheetsComputer Basics Quiz
Total questions: 37
Worksheet time: 19mins
What is a computer?
A machine that only stores data
A device used only for communication
An electronic machine that receives data, processes data, and produces output
A machine that only produces output
Which of the following is an example of a computer?
A refrigerator
A laptop
A television
A washing machine
What is the first step a computer performs?
Produces output
Processes data
Receives data (input)
Stores data
Which of the following is NOT a function of a computer?
Receives data
Processes data
Produces output
Repairs itself
Which of the following devices is NOT an example of a computer?
Medical devices
Cars
Phones
Microwave ovens
What do computers follow to execute tasks?
Emotions
Algorithms
Random guesses
Human thoughts
What is programming?
Writing instructions a computer can follow
Making computers think like humans
Designing computer hardware
Creating random tasks for computers
Which of the following is NOT a purpose of programming?
Solve problems
Automate tasks
Make computers think
Write instructions for computers
Why do computers not think?
They lack intelligence
They only execute exactly what we program
They are too slow
They are not connected to the internet
What is a programming language?
A tool used to create physical machines
A language used to communicate with other people
A set of instructions a computer can understand
A type of hardware used in computers
Which of the following is an example of a programming language used for creating websites?
Java
Python
JavaScript
C#
Which programming language is commonly used for developing Android apps and enterprise software?
Python
Java
C#
JavaScript
What is Python commonly used for?
Creating games
Developing Android apps
Artificial Intelligence and automation
Building websites
Which programming language is often used for game development in Unity Engine?
Java
Python
C#
JavaScript
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?
Java
Python
JavaScript
HTML
Which type of programming organizes code into objects with data and behavior?
Procedural Programming
Object-Oriented Programming (OOP)
Functional Programming
Logic/Declarative Programming
Which programming type focuses on functions and avoids changing data?
Procedural Programming
Object-Oriented Programming (OOP)
Functional Programming
Logic/Declarative Programming
Which programming type involves describing what you want, not how to do it?
Procedural Programming
Object-Oriented Programming (OOP)
Functional Programming
Logic/Declarative Programming
Which of the following is an example of a Procedural Programming language?
Java
C
Haskell
Prolog
Which of the following is NOT an example of Object-Oriented Programming (OOP) languages?
Python
C++
SQL
Java
What is the main idea behind Procedural Programming?
Code runs in sequence with procedures (functions).
Organizes code into objects with data and behavior.
Focuses on functions and avoids changing data.
You describe what you want, not how to do it.
Which programming type uses languages like Haskell, Scala, and Kotlin?
Procedural Programming
Object-Oriented Programming (OOP)
Functional Programming
Logic/Declarative Programming
What is the main idea behind Logic/Declarative Programming?
Code runs in sequence with procedures (functions).
Organizes code into objects with data and behavior.
Focuses on functions and avoids changing data.
You describe what you want, not how to do it.
What is Java?
A type of coffee
A high-level, object-oriented programming language
A type of operating system
A database management system
Who created Java and in which year?
Microsoft, 1990
Sun Microsystems, 1995
Apple, 2000
Google, 1998
Which of the following is NOT a characteristic of Java?
Simplicity — readable and structured
Reliability — used for critical systems
Portability — runs on any computer
Incompatibility — works only on specific systems
Why is Java considered secure?
It is used in banks and enterprises
It has a simple syntax
It is created by Sun Microsystems
It is a low-level programming language
What is the first step in how Java works?
JVM executes the bytecode
You write Java code (.java file)
Java Compiler (javac) converts it to bytecode (.class file)
Java Virtual Machine runs Java on any platform
What does the Java Compiler (javac) do?
Executes the bytecode
Converts Java code into bytecode (.class file)
Runs Java on any platform
Writes Java code
What is the role of JVM in the process of how Java works?
It writes Java code
It converts Java code into bytecode
It executes the bytecode
It compiles Java code
What does JVM stand for?
Java Virtual Machine
Java Version Manager
Java Verification Module
Java Variable Manager
What is the purpose of JVM?
To write Java code
To convert Java code into bytecode
To run Java on any platform
To compile Java code
What is the purpose of the `System.out.println("Hello, Java!");` statement in the given Java code?
It prints "Hello, Java!" to the console.
It declares a variable named "Hello, Java!".
It creates a new class named "Hello, Java!".
It terminates the program.
What is the name of the class defined in the given Java code?
Main
Hello
Java
System
Which method is used as the entry point of the program in the given Java code?
main()
println()
System.out()
args()
What is the correct syntax to print a message in Java, as shown in the code?
System.out.print("Hello, Java!");
System.out.println("Hello, Java!");
Print("Hello, Java!");
Console.print("Hello, Java!");
What is the purpose of the `public static void main(String[] args)` method in Java?
It is the starting point of execution for a Java program.
It defines a variable named "args".
It prints the output of the program.
It creates a new class in Java.
