B.A CS-II Midterm Paper OBJ
B.A CS-II Midterm Paper OBJ
MIDTERM EXAM
COMPUTER SCIENCE
CLASS: B.A/ B.Sc. PART: II
TOTAL MARKS: 20 TIME ALLOWED: 30 Mins
STUDENT NAME: ____________________ ROLL No: ______________________
(OBJECTIVE PART)
DATABASE MANAGEMENT SYSTEM
Note: Overwriting, cutting, and use of lead pencil or ink-remover is not allowed.
Question 1: Each question has four possible answers. Tick the correct answer: 10
1. The HTTP and FTP protocols operate at which layer of the OSI model?
a) Application Layer b) Transport Layer c) Session Layer d) Network Layer
2. In a multithreaded application, what do threads share within the same process?
a) Registers b) Heap Memory c) Program Counter d) All of these
3. Which layer of the OSI model deals with segmenting and reassembling data packets?
a) Application Layer b) Transport Layer c) Session Layer d) Network Layer
4. Which term refers to a situation in which a thread is waiting for a resource that is held by
another thread, resulting in both threads being unable to proceed?
a) Deadlock b) Live lock c) Starvation d) Race condition
5. What is the purpose of an 'interrupt' in an operating system?
a) To stop a running process b) To request system services
c) To allocate memory d) To manage file operations
6. DML is provided for _________.
a) Increased security b) Improved resource utilization
c) Reduced memory consumption d) Enhanced process isolation
7. Which layer of the OSI model is responsible for logical addressing and routing?
a) Application Layer b) Transport Layer c) Session Layer d) Network Layer
8. Which process scheduling algorithm aims to minimize the average waiting time of processes?
a) Round Robin b) Shortest Job First
c) First Come First Serve d) Priority Scheduling
9. What is a process in an operating system?
a) A program in execution b) A collection of files
c) A system call d) A hardware component
10. What is the purpose of the 'scheduler' in an operating system?
a) Manages input/output operations b) Manages memory allocation
c) Controls process execution d) Handles file management