0% found this document useful (0 votes)
15 views3 pages

15 Question 2

Uploaded by

vasanth.p2610
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

15 Question 2

Uploaded by

vasanth.p2610
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DR.

ZAKIR HUSAIN COLLEGE, ILAYANGUDI


DEPARTMENT OF COMPUTER SCIENCE
PIXELS - SYMPOSIUM 2K24
QUIZ COMPETITION
Time: 10 min Questions:15

1. What is the purpose of the "elif" keyword in Python?


a) To define a block of code that executes when a condition is true
b) To specify an alternative condition if the preceding "if" statement is false
c) To handle exceptions in Python
d) To declare a function

2. What is a deadlock in operating systems?


a) A situation where two or more processes are waiting indefinitely for resources held by each other
b) A condition where a program executes an infinite loop
c) A type of error that occurs during compilation
d) A situation where a process is terminated unexpectedly

3. What is a hash function used for in computer science?


a) To encrypt data
b) To generate unique identifiers for data
c) To compress data
d) To perform arithmetic operations

4. What does the acronym "API" stand for in software development?


a) Advanced Programming Interface
b) Application Programming Interface
c) Automated Program Interaction
d) Adaptive Programming Interface

5. What is the purpose of the "git commit" command in version control systems like Git?
a) To create a new branch
b) To merge changes from one branch into another
c) To save changes to the local repository
d) To revert changes made to a file

6. What is a binary search tree?


a) A data structure where each node has at most two children, and the value of each left child is less than the
parent node, and the value of each right child is greater than the parent node
b) A data structure that stores elements in a sorted order
c) A data structure used for storing key-value pairs
d) A data structure where elements are stored in a stack-like manner

7. What is a semaphore in operating systems?


a) A data structure used for storing key-value pairs
b) A synchronization primitive used to control access to a shared resource by multiple processes
c) A mechanism for handling memory allocation and deallocation
d) A type of error that occurs during compilation

8. Which of the following is NOT a valid HTTP status code?


a) 200
b) 404
c) 500
d) 700
9. What does CRUD stand for in database operations?
a) Create, Retrieve, Update, Delete
b) Collect, Rearrange, Update, Delete
c) Create, Rearrange, Update, Deliver
d) Collect, Rearrange, Upload, Deliver

10. What is the purpose of the "virtual" keyword in C++?


a) To declare a function that does not return any value
b) To specify a pointer to a function
c) To indicate that a function can be overridden in derived classes
d) To declare a constant value

11. What does RAID stand for in data storage?


a) Redundant Array of Independent Disks
b) Random Access Information Drive
c) Rapid Access In-memory Database
d) Read-After-Insert Datastore

12. What is the purpose of a destructor in C++?


a) To allocate memory for an object
b) To free memory when an object is destroyed
c) To copy the values of one object to another object
d) To initialize an object with default values

13. What is the difference between TCP and UDP?


a) TCP provides connection-oriented communication with error checking and flow control, while UDP provides
connectionless communication without error checking or flow control
b) TCP is faster than UDP
c) TCP is used for streaming audio and video, while UDP is used for web browsing
d) TCP uses port numbers, while UDP uses IP addresses

14. What is a binary heap?


a) A data structure that stores elements in a sorted order
b) A data structure used for heapifying arrays
c) A binary tree where the parent node is greater than or equal to its children
d) A binary tree where each node has at most two children

15. What is a mutex in operating systems?


a) A type of error that occurs during compilation
b) A synchronization primitive used to prevent multiple threads from accessing shared resources
simultaneously
c) A mechanism for handling memory allocation and deallocation
d) A data structure used for storing key-value pairs
Answers :
1. b) To specify an alternative condition if the preceding "if" statement is false
2. a) A situation where two or more processes are waiting indefinitely for resources held by each other
3. b) To generate unique identifiers for data
4. b) Application Programming Interface
5. c) To save changes to the local repository
6. a) A data structure where each node has at most two children, and the value of each left child is less than the
parent node, and the value of each right child is greater than the parent node
7. b) A synchronization primitive used to control access to a shared resource by multiple processes
8. d) 700
9. a) Create, Retrieve, Update, Delete
10. c) To indicate that a function can be overridden in derived classes
11. a) Redundant Array of Independent Disks
12. b) To free memory when an object is destroyed
13. a) TCP provides connection-oriented communication with error checking and flow control, while UDP
provides connectionless communication without error checking or flow control
14. c) A binary tree where the parent node is greater than or equal to its children
15. b) A synchronization primitive used to prevent multiple threads from accessing shared resources
simultaneously

You might also like