Computer Science

Which of the following is an example of a high-level programming language?
A. Assembly language
B. C++
C. Machine language
D. Binary code

What does the acronym "URL” stand for?
A. Universal Resource Locator
B. Uniform Resource Link
C. Unified Resource Locator
D. Universal Reference Link

Which data structure follows the Last-In-First-Out (LIFO) principle?
A. Queue
B. Stack
C. Heap
D. Tree

What is the main function of an operating system?
A. Manage hardware resources
B. Execute user applications
C. Perform arithmetic calculations
D. Provide internet connectivity

Which protocol is used for secure communication over the internet?
A. HTTP
B. FTP
C. SSH
D. SMTP

Moderate Level:

In object-oriented programming, what is encapsulation?
A. Hiding internal details of an object
B. Combining multiple objects into one
C. Creating new objects from existing objects
D. Sharing data between different objects

Which sorting algorithm has the worst-case time complexity of O(n^2)?
A. Merge sort
B. Quick sort
C. Insertion sort
D. Bubble sort

What is the purpose of a primary key in a database?
A. Ensure data integrity
B. Store large amounts of data
C. Perform complex calculations
D. Establish network connections

What does the acronym "RAM” stand for?
A. Read-Only Memory
B. Random Access Memory
C. Remote Access Module
D. Rapid Application Development

What is the purpose of an IP address?
A. Identify a specific website
B. Establish a wireless connection
C. Encrypt data transmission
D. Identify a network device

Hard Level:

What is the time complexity of the Dijkstra’s algorithm for finding the shortest path in a graph?
A. O(n)
B. O(n log n)
C. O(n^2)
D. O(n!)

What is the purpose of a virtual private network (VPN)?
A. Securely connect to a remote network
B. Increase computer processing speed
C. Encrypt local data storage
D. Monitor network traffic

Which data structure is used to implement a priority queue efficiently?
A. Array
B. Linked list
C. Stack
D. Heap

What is the role of a compiler in software development?
A. Execute code line by line
B. Debug the program
C. Translate source code into machine code
D. Handle memory management

What is the difference between TCP and UDP?
A. TCP guarantees packet delivery, while UDP does not
B. TCP is connectionless, while UDP is connection-oriented
C. TCP is faster than UDP for real-time applications
D. TCP is used for voice communication
A 26-year-old male patient is admitted to the hospital with the following symptoms: high fever, severe headache, and stiff neck. On examination, he has a positive Kernig’s sign and Brudzinski’s sign. What is the most likely diagnosis?

A. Meningitis
B. Pneumonia
C. Appendicitis
D. Gastritis

Correct Answers:

B
A
B
A
C
A
D
A
B
D
C
A
D
C
A