WorksheetsTest4
Total questions: 34
Worksheet time: 17mins
Which layer of the OSI model is responsible for logical addressing?
A) Data Link
B) Transport
C) Network
D) Session
Which topology provides high reliability but is expensive?
A) Star
B) Bus
C) Ring
D) Mesh
What does CSMA/CD stand for?
A) Carrier Signal Multiple Access / Control Data
B) Carrier Sense Multiple Access / Collision Detection
C) Control Signal Multiple Access / Collision Detection
D) Carrier Sense Media Access / Control Device
Which device converts digital signals to analog signals?
A) Router
B) Switch
C) Modem
D) Hub
Which protocol is used to test network connectivity?
A) TCP
B) UDP
C) ICMP
D) ARP
What is the default port number of FTP?
A) 21
B) 23
C) 25
D) 80
Which address is permanently assigned to a network interface?
A) IP Address
B) MAC Address
C) Port Address
D) Logical Address
Which OSI layer is responsible for data compression?
A) Application
B) Transport
C) Presentation
D) Session
Which network type is best suited for a college campus?
A) PAN
B) LAN
C) MAN
D) WAN
Which protocol uses a sliding window mechanism?
A) UDP
B) IP
C) TCP
D) ICMP
What is the maximum number of hosts possible in a Class C network?
A) 254
B) 255
C) 256
D) 1024
A bridge operates at which OSI layer?
A) Physical
B) Network
C) Data Link
D) Transport
What is the minimum frame size in Ethernet?
A) 46 bytes
B) 64 bytes
C) 72 bytes
D) 128 bytes
What is the main purpose of NAT?
A) Improve security
B) Reduce IP address usage
C) Increase bandwidth
D) Improve routing speed
Which protocol uses three-way handshake?
A) UDP
B) FTP
C) TCP
D) HTTP
Which switching technique is used in telephone networks?
A) Packet switching
B) Circuit switching
C) Message switching
D) Frame switching
Which of the following best defines a kernel?
A) System software
B) Application software
C) Hardware component
D) Firmware
In which scheduling algorithm does the time quantum play an important role?
A) FCFS
B) SJF
C) Priority
D) Round Robin
Which OS component handles system calls?
A) Shell
B) Compiler
C) Kernel
D) Loader
Which OS is designed to work with minimal human intervention?
A) Batch OS
B) Time-sharing OS
C) Distributed OS
D) Network OS
What is spooling?
A) Scheduling technique
B) Buffering data for I/O devices
C) Memory allocation
D) Deadlock prevention
Which structure maintains information about open files?
A) Process table
B) Memory table
C) File Control Block
D) Page table
Which type of OS is used in washing machines and microwaves?
A) Distributed OS
B) Time-sharing OS
C) Real-time OS
D) Embedded OS
Which parameter passing mechanism allows the called function to modify the actual parameter?
A) Call by Value
B) Call by Name
C) Call by Reference
D) Call by Result
Which type checking is more flexible but less safe?
A) Static typing
B) Dynamic typing
C) Strong typing
D) Explicit typing
Aliasing occurs when:
A) Two variables have same value
B) Two variables refer to same memory location
C) Variable names are reused
D) Same function is called twice
Lambda expressions are mainly used to support:
A) Recursion
B) Functional programming
C) Object-oriented programming
D) Exception handling
Which control structure allows non-linear execution flow?
A) Sequence
B) Selection
C) Iteration
D) GOTO
Which polymorphism is resolved at runtime?
A) Function overloading
B) Operator overloading
C) Parametric polymorphism
D) Subtype polymorphism
Which storage allocation technique is used for dynamic data structures?
A) Static allocation
B) Stack allocation
C) Heap allocation
D) Register allocation
Which memory area is used to store activation records for recursive calls?
A) Heap
B) Stack
C) Cache
D) Register
Which parameter passing technique delays expression evaluation until it is used?
A) Call by value
B) Call by reference
C) Call by name
D) Call by result
Which scoping rule is followed by the C programming language?
A) Dynamic scoping
B) Static scoping
C) Block scoping only
D) No scoping
void fun(int x) {
x = x + 10;
}
int main() {
int a = 5;
fun(a);
printf("%d", a);
return 0;
}
A) 5
B) 10
C) 15
D) Garbage value
