WorksheetsComputer Science Quiz
Total questions: 41
Worksheet time: 14mins
Which of the following is a compiled language?
C++
Python
JavaScript
PHP
In C++, what is the output of: int x=1; ++x; cout<<"Result is:", x * 5 + 2;
12
7
Result is: 12
Result is: x
Which of the following is NOT a valid variable name in C++?
_var
Var123
123Var
var_name
What is the primary key used for in a database?
Uniquely identifying a record
Storing multiple values
Creating a foreign key
Sorting data
Which SQL clause is used to filter records?
WHERE
HAVING
GROUP BY
ORDER BY
Which of the following is NOT an operating system?
Windows
iOS
Oracle
Android
What is the main function of an operating system?
Manage hardware and software resources
Compile programs
Run user applications
Connect to the internet
Which device connects multiple networks?
Switch
Router
Hub
Modem
What is phishing?
A social engineering attack to steal sensitive data
A firewall technique
A type of antivirus
A network protocol
Which of the following is NOT AI
Ginger Writer
Neura Edge
ChatGPT
OpenAI
Which AI technique is used in chatbots?
Natural Language Processing (NLP)
Reinforcement Learning
Neural Networks
Genetic Algorithms
UML stands for:
Universal Modeling Logic
Unified Modeling Language
Unique Model Layout
None
What does DevOps focus on?
Continuous integration and deployment
Only software development
Only hardware testing
User interface design
What is the output of print(2 ** 3) in Python?
8
6
9
16
In C++, which keyword is used to dynamically allocate memory?
new
malloc
allocate
create
Which of the following sorting algorithms has an average time complexity of O(n log n)?
Merge Sort
Bubble Sort
Insertion Sort
Selection Sort
In object-oriented programming, what does encapsulation mean?
Hiding data and restricting access
Allowing global access to variables
Using functions instead of loops
Converting a program to machine language
What is the default return type of the main() function in C++?
void
float
int
char
Which operator is used for pointer dereferencing in C?
&
->
.
*
What is the purpose of an operating system?
Only manages hardware
Only manages software
Acts as an interface between hardware and software
Only runs the internet
What does "HTTP" stand for?
Hypertext Transfer Protocol
High Transmission Transfer Process
Hardware Transfer Technique Protocol
Hyperlink and Text Processing
What is the function of a router in a network?
Connects devices in a single room
Forwards data packets between networks
Prevents unauthorized access
Encrypts data for security
What does "DNS" stand for in networking?
Domain Name System
Dynamic Network Service
Digital Network Setup
Data Naming Structure
Which of the following is a private IP address?
192.168.1.1
10.0.0.1
8.8.8.8
172.217.3.14
What does "SQL" stand for?
Structured Query Language
Standard Query Language
Sequential Query Language
Server Query Language
Which SQL command is used to remove all records from a table without deleting the structure?
DROP
TRUNCATE
DELETE
CLEAR
What type of database does MongoDB use?
NoSQL
Relational
SQL
Object-Oriented
What is the primary goal of software engineering?
Write as much code as possible
Develop reliable and efficient software
Increase CPU usage
Avoid project deadlines
What does CRUD stand for in databases?
Create, Read, Update, Delete
Code, Run, Undo, Debug
Create, Retrieve, Use, Develop
Classify, Record, Upload, Delete
Which language is primarily used for database queries?
SQL
Python
Java
C++
GPT stands for:
Generalized Processing Technology
Generative Pre-trained Transformer
Global Programming Tool
Graphical Processing Transformer
Founder of OpenAI:
Elon Musk & Sam Altman
Bill Gates
Jeff Bezos
Mark Zuckerberg
Founder of DeepSeek:
DeepSeek AI Team
Sundar Pichai
Jeff Bezoz
Yann LeCun
Neuralink CEO:
Elon Musk
Jeff Bezos
Tim Cook
Sam Altman
Which AI chatbot became widely popular in 2022?
ChatGPT
Siri
Bixby
Google Assistant
What does "IoT" stand for?
Internet of Things
Information on Technology
Input of Text
Internet of Text
Which company developed GitHub Copilot?
Microsoft
Apple
Amazon
What does "URL" stand for?
Uniform Resource Locator
Universal Reference Link
Unique Resource Link
Unstructured Readable Language
What is the primary function of a compiler?
Convert source code to machine code
Detect viruses
Encrypt data
Run cloud applications
Taj Mahal is located in which city:
India
Taj Nagar
Agra
JahanNagar
Professor Dr. Muhammad Usman has done his PHD From:
America
South Korea
China
North Korea
