SS2 first term computer science past questions and answers
Here are 20 multiple-choice questions for SS2 Computer Science:
Question: What is the primary purpose of an operating system?
A) Running applications
B) Managing hardware resources
C) Creating documents
D) Playing games
Answer: B
Question: Which programming language is primarily used for developing Android applications?
A) Java
B) Python
C) C++
D) Ruby
Answer: A
Question: What does HTML stand for?
A) HyperText Markup Language
B) High-Level Text Management Language
C) Hyperlink and Text Manipulation Language
D) Human-Tested Markup Language
Answer: A
Question: In a binary number system, what digit represents the value of 2^0?
A) 0
B) 1
C) 2
D) 10
Answer: B
Question: Which data structure uses Last In, First Out (LIFO) order?
A) Queue
B) Stack
C) Linked List
D) Array
Answer: B
Question: What is the purpose of SQL in a database system?
A) Styling web pages
B) Managing databases
C) Creating graphics
D) Programming robots
Answer: B
Question: What is the function of RAM in a computer?
A) Long-term storage
B) Temporary storage for data and programs
C) Processing graphics
D) Controlling input devices
Answer: B
Question: Which protocol is used for secure communication over the Internet?
A) FTP
B) HTTP
C) HTTPS
D) SMTP
Answer: C
Question: What is the purpose of an algorithm in computer science?
A) Storing data
B) Solving problems step by step
C) Displaying images
D) Managing networks
Answer: B
Question: What is the role of a compiler in programming?
A) Executing code
B) Writing code
C) Converting high-level code to machine code
D) Debugging code
Answer: C
Question: Which of the following is a high-level programming language?
A) Assembly language
B) Machine language
C) Java
D) Binary code
Answer: C
Question: What does DNS stand for?
A) Dynamic Network System
B) Domain Name System
C) Digital Naming Service
D) Data Network Server
Answer: B
Question: Which data type is used for whole numbers in many programming languages?
A) Float
B) Char
C) Integer
D) Double
Answer: C
Question: What is the purpose of a firewall in network security?
A) Creating websites
B) Blocking unauthorized access
C) Managing databases
D) Generating reports
Answer: B
Question: What is the default extension for a Java source code file?
A) .exe
B) .java
C) .html
D) .txt
Answer: B
Question: Which of the following is a relational database management system?
A) MongoDB
B) SQLite
C) Redis
D) Cassandra
Answer: B
Question: What is the purpose of the "if" statement in programming?
A) Looping
B) Decision-making
C) File management
D) Error handling
Answer: B
Question: Which of the following is a valid IP address?
A) 192.256.1.1
B) 300.200.100.50
C) 172.16.0.1
D) 500.400.300.200
Answer: C
Question: What is the function of a CPU in a computer?
A) Storing files
B) Displaying images
C) Processing data
D) Connecting to the internet
Answer: C
Question: Which programming paradigm is associated with objects and classes?
A) Procedural
B) Object-Oriented
C) Functional
D) Logical
Answer: B
Post a Comment