-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdata.json
More file actions
2551 lines (2551 loc) · 83.5 KB
/
Copy pathdata.json
File metadata and controls
2551 lines (2551 loc) · 83.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"CN": [
{
"q": "In a star topology, what is the single point of failure?",
"opts": [
"Any one cable segment",
"The central device (hub/switch)",
"The end nodes",
"There is no single point of failure"
],
"ans": 1,
"exp": "If the central device fails, the entire star network fails; a single cable failure only disconnects one node."
},
{
"q": "Which topology forms a single continuous path with no central server, used in SONET/SDH networks?",
"opts": [
"Bus",
"Mesh",
"Ring",
"Tree"
],
"ans": 2,
"exp": "Ring topology connects each node to exactly two neighbours forming a continuous loop; SONET and SDH are classic examples."
},
{
"q": "A fully connected mesh of n nodes requires how many point-to-point links?",
"opts": [
"n",
"n-1",
"n(n-1)/2",
"n^2"
],
"ans": 2,
"exp": "Each node connects to every other node: nC2 = n(n-1)/2 links, which is why mesh cabling cost is high."
},
{
"q": "Tree topology is best described as a combination of which two topologies?",
"opts": [
"Star and ring",
"Star and bus",
"Bus and mesh",
"Ring and mesh"
],
"ans": 1,
"exp": "Tree (expanded star) topology connects multiple star networks to a single backbone bus, typically using Ethernet."
},
{
"q": "In bus topology, when a device transmits data, the data is:",
"opts": [
"Sent only to the recipient's port",
"Sent to all devices attached to the bus",
"Sent to the central hub only",
"Buffered in the bus controller"
],
"ans": 1,
"exp": "The bus is a shared communication medium; the transmitted signal reaches every attached device, which then discards it if not addressed to itself."
},
{
"q": "What is the main drawback of a bus topology?",
"opts": [
"Requires a central switch",
"Cannot handle broadcast traffic",
"If the bus is damaged, the whole network fails",
"Cabling cost is very high"
],
"ans": 2,
"exp": "The central cable is a single point of failure; any damage to the bus brings down the entire network."
},
{
"q": "Mesh topology has two variants. Which is correct?",
"opts": [
"Fully and partially connected mesh",
"Star mesh and bus mesh",
"Wired and wireless mesh",
"Rooted and rootless mesh"
],
"ans": 0,
"exp": "Fully connected mesh: every node connected to every other. Partially connected mesh: not all pairs are directly linked."
},
{
"q": "Which topology results when a star topology is connected to a different topology?",
"opts": [
"Extended star",
"Hybrid",
"Mesh",
"Tree"
],
"ans": 1,
"exp": "Combining different topologies produces a hybrid topology; joining two star topologies just yields another star."
},
{
"q": "If the 'main bus' in a tree topology breaks:",
"opts": [
"Only leaf nodes are affected",
"Only the root star is affected",
"The whole network gets damaged",
"Traffic is automatically rerouted"
],
"ans": 2,
"exp": "Tree topology depends on the main bus/backbone; damage to it brings the whole network down."
},
{
"q": "Which network type would connect branch offices of a company across cities of a country?",
"opts": [
"LAN",
"MAN",
"WAN",
"PAN"
],
"ans": 2,
"exp": "A WAN spans wide geographical areas such as cities and countries; a MAN is limited to a single metropolitan city."
},
{
"q": "What is the approximate range limit of a PAN (Personal Area Network)?",
"opts": [
"Up to 10 metres",
"Up to 100 metres",
"Up to 1 kilometre",
"Up to 10 kilometres"
],
"ans": 0,
"exp": "A PAN's range limit is roughly 10 metres — Bluetooth-style personal device networks."
},
{
"q": "A CAN (Campus Area Network) is best described as:",
"opts": [
"A network within a single building",
"A connection of devices within a campus linking multiple departments",
"A country-wide backbone",
"A satellite-based network"
],
"ans": 1,
"exp": "A CAN links devices across a campus area (e.g., a university) covering multiple departments/buildings."
},
{
"q": "Which network uses satellites to connect devices over the global area?",
"opts": [
"WAN",
"MAN",
"GAN",
"VPN"
],
"ans": 2,
"exp": "A GAN (Global Area Network) uses satellite links to provide worldwide connectivity."
},
{
"q": "A HAN (House Area Network) is essentially:",
"opts": [
"A satellite home service",
"A LAN used within a house to connect home devices",
"A branch of a WAN",
"A wireless PAN only"
],
"ans": 1,
"exp": "A HAN is a LAN restricted to household use, connecting PCs, printers, phones and other home devices."
},
{
"q": "A VPN is best described as:",
"opts": [
"A private LAN with encrypted switches",
"A private WAN built over the public internet using a secure tunnel",
"A firewall configuration",
"A dedicated leased line between offices"
],
"ans": 1,
"exp": "A VPN creates a secure, encrypted tunnel across the public internet, giving remote users/offices private-network access cheaply compared to dedicated WAN links."
},
{
"q": "Which VPN type is intended for remote/mobile individual employees rather than connecting whole office networks?",
"opts": [
"Site-to-Site VPN",
"Intranet VPN",
"Extranet VPN",
"Access VPN"
],
"ans": 3,
"exp": "Access (remote-access) VPN serves telecommuters and mobile users; Site-to-Site (Intranet/Extranet) links entire office networks."
},
{
"q": "An Intranet VPN is used to:",
"opts": [
"Connect an organisation to its customers securely",
"Connect remote offices in different geographical locations using shared infrastructure with the same policies as a private WAN",
"Provide dial-up connectivity",
"Encrypt internal LAN traffic only"
],
"ans": 1,
"exp": "Intranet VPN links remote offices of the same organisation via shared infrastructure, giving them WAN-like unified accessibility policies."
},
{
"q": "An Extranet VPN differs from an Intranet VPN because it:",
"opts": [
"Uses no encryption",
"Connects the organisation with external partners, suppliers, or customers via dedicated connections",
"Runs only on satellite links",
"Is limited to a single building"
],
"ans": 1,
"exp": "Extranet VPNs extend the intranet infrastructure to external stakeholders using dedicated, controlled connections."
},
{
"q": "An IPv4 address is how many bits long, arranged as how many octets?",
"opts": [
"16 bits, 2 octets",
"32 bits, 4 octets",
"64 bits, 8 octets",
"128 bits, 16 octets"
],
"ans": 1,
"exp": "IPv4 addresses are 32-bit values written as four 8-bit octets (each 0–255)."
},
{
"q": "The IPv4 address 200.45.10.9 belongs to which class?",
"opts": [
"Class A",
"Class B",
"Class C",
"Class D"
],
"ans": 2,
"exp": "Class C spans 192.0.0.0 – 223.255.255.255; used for local area networks."
},
{
"q": "Which IPv4 class is reserved for multicasting?",
"opts": [
"Class B",
"Class C",
"Class D",
"Class E"
],
"ans": 2,
"exp": "Class D (224.0.0.0 – 239.255.255.255) is reserved for multicast; Class E is kept for study/R&D."
},
{
"q": "Which range covers Class A IPv4 addresses?",
"opts": [
"0.0.0.0 – 127.255.255.255",
"128.0.0.0 – 191.255.255.255",
"192.0.0.0 – 223.255.255.255",
"240.0.0.0 – 255.255.255.254"
],
"ans": 0,
"exp": "Class A: 0.0.0.0 to 127.255.255.255, used for very large networks."
},
{
"q": "Which statement about public vs private IP addresses is correct?",
"opts": [
"Private IPs are routable on the internet directly",
"Public IPs are assigned by the ISP and used on the internet; private IPs are not valid on the internet without NAT/proxy",
"Public and private IPs are interchangeable",
"Private IPs are only IPv6"
],
"ans": 1,
"exp": "Public IPs come from the ISP and are internet-routable; private IPs need NAT or a proxy to reach the internet."
},
{
"q": "Which OSI layer converts data into frames, attaches MAC addresses, and performs flow/error control on a link?",
"opts": [
"Physical",
"Data link",
"Network",
"Transport"
],
"ans": 1,
"exp": "Framing, physical addressing, flow control, error control and link management are data-link-layer functions."
},
{
"q": "Routing, logical addressing, packetizing and fragmentation are functions of which OSI layer?",
"opts": [
"Data link",
"Network",
"Transport",
"Session"
],
"ans": 1,
"exp": "The network layer determines the best source-to-destination route, assigns logical (IP) addresses, packetizes data and fragments packets."
},
{
"q": "Which OSI layer is called the 'Translation layer' and handles data compression and encryption?",
"opts": [
"Session",
"Presentation",
"Application",
"Transport"
],
"ans": 1,
"exp": "The presentation layer translates between application format and common network format, and handles character code translation, compression and encryption."
},
{
"q": "Which OSI layer transmits the raw bitstream over a physical medium?",
"opts": [
"Physical",
"Data link",
"Network",
"Application"
],
"ans": 0,
"exp": "The physical layer is the lowest layer, handling unstructured raw-bit transmission over cables/wireless media."
},
{
"q": "Beginning, maintaining and ending communication sessions between devices is the job of which layer?",
"opts": [
"Transport",
"Session",
"Presentation",
"Application"
],
"ans": 1,
"exp": "The session layer establishes, maintains and terminates sessions between users, and reports errors from upper layers."
},
{
"q": "A connection-oriented transmission where the receiver sends an acknowledgement is provided by which OSI layer?",
"opts": [
"Data link",
"Network",
"Transport",
"Session"
],
"ans": 2,
"exp": "The transport layer offers both connection-oriented (ack-based) and connectionless services and handles end-to-end error checking."
},
{
"q": "The application layer of OSI enables the user to access the network. Which is a valid application-layer protocol?",
"opts": [
"ARP",
"Ethernet",
"HTTP",
"IP"
],
"ans": 2,
"exp": "HTTP, SMTP, DNS, FTP are all application-layer protocols; ARP is network-layer-adjacent, Ethernet is data-link, IP is network."
},
{
"q": "The TCP/IP reference model has how many layers, and which layer 'holds the architecture together' by delivering IP packets?",
"opts": [
"4 layers; Internet layer",
"4 layers; Transport layer",
"5 layers; Network layer",
"7 layers; Network layer"
],
"ans": 0,
"exp": "TCP/IP has 4 layers (Link, Internet, Transport, Application); the Internet layer (IP, ICMP) delivers packets end-to-end."
},
{
"q": "In the TCP/IP model, which layer decides which physical links (e.g., serial lines, Ethernet) meet the needs of the connectionless internet layer?",
"opts": [
"Link layer",
"Internet layer",
"Transport layer",
"Application layer"
],
"ans": 0,
"exp": "The Link layer chooses link technology (Ethernet, Sonet, etc.) to satisfy the connectionless Internet layer above it."
},
{
"q": "Which statement about HTTP vs HTTPS is correct?",
"opts": [
"HTTP uses port 443; HTTPS uses port 80",
"HTTPS adds SSL/TLS on top of HTTP and uses port 443 by default",
"HTTP is stateful; HTTPS is stateless",
"HTTPS works over UDP for speed"
],
"ans": 1,
"exp": "HTTPS is HTTP secured with SSL/TLS encryption, default port 443; plain HTTP is a stateless application-layer protocol on port 80."
},
{
"q": "HTTP is called a 'stateless protocol' because:",
"opts": [
"It cannot carry data",
"Each command is independent of previous commands",
"It cannot use TCP",
"It cannot handle cookies"
],
"ans": 1,
"exp": "Stateless means the server treats every HTTP command as unrelated to earlier ones; state must be added externally (e.g., cookies)."
},
{
"q": "What does DNS primarily do?",
"opts": [
"Assigns IP addresses dynamically to hosts",
"Maps domain names to their IP addresses",
"Encrypts traffic between browser and server",
"Routes packets between autonomous systems"
],
"ans": 1,
"exp": "DNS resolves human-readable domain names into IP addresses. Dynamic IP assignment is DHCP's job."
},
{
"q": "A DNS forwarder is used when:",
"opts": [
"A client wants to bypass DNS caching",
"A DNS server forwards queries it cannot resolve to external DNS servers",
"A router converts MAC to IP addresses",
"A server load-balances HTTP requests"
],
"ans": 1,
"exp": "A forwarder-configured DNS server passes unresolvable queries to external DNS servers for resolution."
},
{
"q": "Which underlying transport does DNS typically use for its lookups?",
"opts": [
"TCP only",
"UDP for standard queries",
"ICMP",
"SCTP"
],
"ans": 1,
"exp": "DNS uses UDP for the vast majority of queries (fast, connectionless) and falls back to TCP for large responses/zone transfers."
},
{
"q": "SMTP listens on which port, and what is it used for?",
"opts": [
"Port 21; file transfer",
"Port 25; transmitting email between servers",
"Port 53; name resolution",
"Port 110; receiving email on client"
],
"ans": 1,
"exp": "SMTP (Simple Mail Transfer Protocol) governs email transmission and is always listening on port 25."
},
{
"q": "SMTP supports which two delivery methods?",
"opts": [
"Push and pull",
"End-to-End and Store-and-Forward",
"Circuit-switched and packet-switched",
"Best-effort and reliable"
],
"ans": 1,
"exp": "SMTP supports both End-to-End (direct) and Store-and-Forward (via intermediate servers) email delivery."
},
{
"q": "POP3 is responsible for:",
"opts": [
"Sending mail between servers",
"Accessing the mail service on a client machine",
"Encrypting mail in transit",
"Routing mail through DNS"
],
"ans": 1,
"exp": "POP3 (Post Office Protocol v3) handles retrieving mail to a client machine, operating in Delete or Keep modes."
},
{
"q": "Which is a key difference between TCP and UDP?",
"opts": [
"UDP is connection-oriented; TCP is connectionless",
"TCP retransmits lost packets; UDP does not",
"UDP provides flow control and acknowledgements",
"TCP is faster than UDP"
],
"ans": 1,
"exp": "TCP is connection-oriented with error checking, ACKs, flow control and retransmission; UDP is faster, simpler, and connectionless."
},
{
"q": "Which protocol does 'basic checksum-only' error checking?",
"opts": [
"TCP",
"UDP",
"SMTP",
"HTTP"
],
"ans": 1,
"exp": "UDP has only checksum-based error detection; TCP performs extensive error checking with retransmissions and flow control."
},
{
"q": "Which protocol auto-assigns IP addresses and other network configuration to devices?",
"opts": [
"ARP",
"DHCP",
"DNS",
"ICMP"
],
"ans": 1,
"exp": "DHCP (application layer) auto-configures IP, subnet mask and DNS details for hosts (default port 67)."
},
{
"q": "ARP is used to:",
"opts": [
"Map an IP address to a MAC address",
"Map a MAC address to an IP address",
"Find the best route using hop count",
"Report network-layer errors"
],
"ans": 0,
"exp": "Address Resolution Protocol converts a logical (IP) address into the device's physical (MAC) address on the local network."
},
{
"q": "Which protocol is primarily used for error handling and diagnostics (e.g., 'ping')?",
"opts": [
"ARP",
"ICMP",
"RIP",
"FTP"
],
"ans": 1,
"exp": "ICMP (Internet Control Message Protocol) is a network-layer protocol used by routers for error reporting and connectivity diagnostics."
},
{
"q": "RIP (Routing Information Protocol) selects the best route based on:",
"opts": [
"Bandwidth",
"Link delay",
"Hop count",
"Packet loss"
],
"ans": 2,
"exp": "RIP is a dynamic routing protocol that uses hop-count as its metric; suited to small/medium networks."
},
{
"q": "FTP is used to:",
"opts": [
"Send email",
"Transfer files reliably between hosts",
"Look up domain names",
"Assign IP addresses"
],
"ans": 1,
"exp": "FTP (File Transfer Protocol) is an application-layer protocol for reliable, efficient file transfer, including downloads from remote servers."
},
{
"q": "Which statement about MAC and IP addresses is correct?",
"opts": [
"Both are assigned by the ISP",
"MAC identifies the physical device (from the NIC manufacturer); IP identifies the network connection (from the ISP)",
"MAC changes with every network; IP is permanent",
"IP is a 48-bit hardware address"
],
"ans": 1,
"exp": "NIC manufacturers assign MAC addresses (hardware identity); ISPs assign IP addresses (network identity)."
},
{
"q": "Hub vs switch — which is correct?",
"opts": [
"Hub is data-link and filters packets",
"Switch is physical and broadcasts to all ports",
"Hub is physical with no packet filtering; switch is data-link with packet filtering",
"Both operate at the network layer"
],
"ans": 2,
"exp": "A hub blindly repeats signals to every port (physical layer, no filtering); a switch is a full-duplex data-link-layer device that filters and forwards frames per port."
},
{
"q": "A node that connects two or more networks and forwards messages between them is called:",
"opts": [
"Repeater",
"Bridge",
"Gateway/router",
"Modem"
],
"ans": 2,
"exp": "Gateways/routers connect different networks, regulating and forwarding traffic between them."
},
{
"q": "A NIC (Network Interface Card):",
"opts": [
"Is a router",
"Is a peripheral card that attaches a PC to a network and has its own MAC address",
"Is a software firewall",
"Is a DNS server"
],
"ans": 1,
"exp": "A NIC connects a PC to a network and carries a unique MAC address identifying that PC on the network."
},
{
"q": "When you type google.com, what happens immediately after the OS resolves the IP via DNS?",
"opts": [
"The browser renders the cached page",
"An HTTP request is sent without any connection",
"A TCP connection is established with the server using a three-way handshake",
"The server pushes the page via UDP"
],
"ans": 2,
"exp": "After DNS resolution: TCP three-way handshake → HTTP request → HTTP response → render (and cache if cacheable)."
},
{
"q": "Which delivery method targets a subset of nodes with the same data (used to send data to multiple selected receivers)?",
"opts": [
"Unicast",
"Anycast",
"Multicast",
"Broadcast"
],
"ans": 2,
"exp": "Multicast targets a subset of receivers. Unicast: one node; anycast: any one of several servers; broadcast: all nodes."
},
{
"q": "Which delivery method sends data to any one of several servers (used by CDNs)?",
"opts": [
"Unicast",
"Anycast",
"Multicast",
"Broadcast"
],
"ans": 1,
"exp": "Anycast routes traffic to the topologically nearest instance among several, commonly used by CDNs and DNS root servers."
},
{
"q": "A firewall's role is to:",
"opts": [
"Assign IP addresses",
"Monitor incoming/outgoing traffic and block based on security policies",
"Compress network packets",
"Route between VLANs only"
],
"ans": 1,
"exp": "A firewall (hardware, software, or both) sits between a private network and the public internet, enforcing security policies."
},
{
"q": "VPN encrypts internet traffic to:",
"opts": [
"Increase raw speed",
"Disguise online identity and protect confidentiality",
"Reduce packet loss",
"Improve DNS lookups"
],
"ans": 1,
"exp": "A VPN protects confidentiality and hides the user's real IP/identity; it does not inherently increase throughput."
},
{
"q": "Which are the elements of a protocol?",
"opts": [
"Syntax, semantics, timing",
"Header, body, footer",
"Encoding, error correction, addressing",
"Encryption, integrity, availability"
],
"ans": 0,
"exp": "A protocol is defined by syntax (format), semantics (meaning), and timing (when/how fast data is sent)."
},
{
"q": "Network reliability is measured by all of these EXCEPT:",
"opts": [
"Downtime",
"Failure frequency",
"Catastrophe handling",
"Colour of the cabling"
],
"ans": 3,
"exp": "Reliability metrics per the notes: downtime (recovery time), failure frequency, and catastrophe robustness."
},
{
"q": "Subnetting a network is done primarily to:",
"opts": [
"Reduce hardware cost",
"Achieve higher routing efficiency and enhance security",
"Force devices to use IPv6",
"Speed up ARP resolutions"
],
"ans": 1,
"exp": "Subnetting divides a network into subnets, improving routing efficiency and security, and reducing routing-table lookup time."
},
{
"q": "Netstat is a utility that:",
"opts": [
"Configures IP addresses",
"Shows current TCP/IP connections and settings",
"Encrypts traffic",
"Restarts network interfaces"
],
"ans": 1,
"exp": "Netstat is a command-line utility providing useful information about the current TCP/IP setting and active connections."
},
{
"q": "Which command is used on Linux/UNIX/macOS to view and configure network interfaces?",
"opts": [
"ipconfig",
"ifconfig",
"tracert",
"ping"
],
"ans": 1,
"exp": "ifconfig (Interface Configuration) is used on Linux/UNIX/macOS; ipconfig is the Windows equivalent."
},
{
"q": "RAID stands for:",
"opts": [
"Random Access Independent Disks",
"Redundant Array of Independent Disks",
"Reliable Array of Integrated Devices",
"Redundant Access to Internal Data"
],
"ans": 1,
"exp": "RAID = Redundant Array of Independent Disks — stores data redundantly across multiple drives for performance/fault tolerance (7 levels)."
}
],
"OS": [
{
"q": "An operating system is best defined as:",
"opts": [
"Application software for productivity tasks",
"An interface between the user/applications and hardware, managing resources",
"A database management system",
"A network protocol suite"
],
"ans": 1,
"exp": "The OS is the interface between users/applications and hardware, responsible for process execution, resource allocation, CPU, file and memory management."
},
{
"q": "In which OS type does the CPU switch to another job whenever the running process waits for I/O?",
"opts": [
"Batch OS",
"Multiprogramming OS",
"Real-time OS",
"Time-sharing OS"
],
"ans": 1,
"exp": "Multiprogramming keeps several jobs in main memory; when the running process blocks for I/O, the OS assigns the CPU to another job."
},
{
"q": "A time-sharing OS is characterised by:",
"opts": [
"Batch execution without interaction",
"Interaction with the user (e.g., keyboard) with the OS responding to instructions",
"Fixed deadlines only",
"Serial execution of jobs"
],
"ans": 1,
"exp": "Time-sharing systems interact with users through input devices; the OS executes instructions and responds with output."
},
{
"q": "A Real-Time OS is typically used when:",
"opts": [
"Multiple users share a computer casually",
"Rigid, fixed timing constraints govern operations",
"Batch jobs must be queued",
"Cost-cutting is the priority"
],
"ans": 1,
"exp": "Real-time systems have well-defined, fixed time constraints — used in dedicated systems that must meet deadlines."
},
{
"q": "In a batch OS, a job is assigned to the CPU:",
"opts": [
"When the previous job's execution completes",
"On a time slice",
"Based on I/O availability",
"At user request"
],
"ans": 0,
"exp": "Batch OS stores similar jobs in memory; a new job takes the CPU only after the previous one finishes execution."
},
{
"q": "Each process in an OS is represented by:",
"opts": [
"A page table",
"A Process Control Block (PCB)",
"A file descriptor",
"A kernel thread"
],
"ans": 1,
"exp": "A PCB stores metadata about a process — including the program counter — used by the OS to manage the process."
},
{
"q": "The program counter (PC) of a process indicates:",
"opts": [
"Number of instructions executed",
"Address of the next instruction to be executed",
"CPU utilisation percentage",
"Process priority"
],
"ans": 1,
"exp": "The PC value indicates the address of the next instruction of the process being executed."
},
{
"q": "A process makes 4 fork() system calls. How many child processes are created?",
"opts": [
"4",
"8",
"15",
"16"
],
"ans": 2,
"exp": "n fork() calls generate 2^n − 1 children: 2^4 − 1 = 15."
},
{
"q": "If Completion Time = 27 and Arrival Time = 5, Burst Time = 12, what is the Waiting Time?",
"opts": [
"22",
"10",
"12",
"15"
],
"ans": 1,
"exp": "Turnaround = 27 − 5 = 22; Waiting = Turnaround − Burst = 22 − 12 = 10."
},
{
"q": "Turnaround Time is defined as:",
"opts": [
"Burst time − Arrival time",
"Completion time − Arrival time",
"Completion time − Burst time",
"Waiting time + Burst time"
],
"ans": 1,
"exp": "Turnaround Time = Completion Time − Arrival Time."
},
{
"q": "Waiting Time is defined as:",
"opts": [
"Turnaround − Burst",
"Burst − Turnaround",
"Arrival − Burst",
"Completion + Arrival"
],
"ans": 0,
"exp": "Waiting Time = Turnaround Time − Burst Time."
},
{
"q": "Which resources does a thread NOT share with other threads of the same process?",
"opts": [
"Code section",
"Data section",
"Open files and signals",
"Its own stack and register set"
],
"ans": 3,
"exp": "Each thread has its own PC, register set, and stack; it shares the process's code, data, files and signals."
},
{
"q": "Which pair is a valid classification of threads?",
"opts": [
"Primary and secondary threads",
"User threads and kernel threads",
"Static and dynamic threads",
"Local and remote threads"
],
"ans": 1,
"exp": "Threads are broadly user threads (implemented by user libraries) and kernel threads (implemented by the OS)."
},
{
"q": "Which of these is NOT typically an advantage of multithreaded programming?",
"opts": [
"Enhanced responsiveness",
"Resource sharing within a process",
"Economical use of resources",
"Guaranteed deadlock avoidance"
],
"ans": 3,
"exp": "Multithreading is responsive, economical, shares process resources and exploits multiprocessors, but does not itself prevent deadlocks."
},
{
"q": "Which scheduling algorithm is the simplest and schedules based purely on arrival times?",
"opts": [
"FCFS",
"SJF",
"Round Robin",
"HRRN"
],
"ans": 0,
"exp": "First Come First Serve is the simplest algorithm; jobs are scheduled strictly in arrival order."
},
{
"q": "Shortest Remaining Time First (SRTF) is:",
"opts": [
"Non-preemptive version of FCFS",
"Preemptive version of SJF",
"Priority scheduling",
"Round-robin variant"
],
"ans": 1,
"exp": "SRTF preempts the running process if a newly arrived process has a shorter remaining burst — the preemptive form of SJF."
},
{
"q": "Round Robin scheduling gives each process:",
"opts": [
"Priority based on burst",
"A fixed time slice in a cyclic order",
"Only I/O time",
"Non-preemptive execution"
],
"ans": 1,
"exp": "RR assigns each process a fixed time quantum in a cyclic fashion, giving fair sharing among all processes."
},
{
"q": "In non-preemptive priority scheduling, if two processes have equal priority, the tiebreaker is:",
"opts": [
"Random selection",
"Arrival time",
"Burst time",
"Process ID"
],
"ans": 1,
"exp": "For equal priorities, scheduling defaults to arrival order."
},
{
"q": "Which scheduling algorithm avoids starvation via a response ratio?",
"opts": [
"SJF",
"Round Robin",
"HRRN",
"MLFQ"
],
"ans": 2,
"exp": "HRRN = (Waiting + Burst) / Burst — long waits raise the ratio, so long-waiting processes eventually get scheduled."
},
{
"q": "In Multilevel Feedback Queue scheduling, a process that consumes too much CPU time is:",
"opts": [
"Terminated",
"Moved to a higher-priority queue",
"Moved to a lower-priority queue",
"Given a longer quantum in the same queue"
],
"ans": 2,
"exp": "MLFQ demotes CPU-hungry processes to lower-priority queues based on CPU-burst behaviour, unlike static MLQ."
},
{
"q": "Which is NOT one of the three required conditions for a valid critical-section solution?",
"opts": [
"Mutual exclusion",
"Progress",
"Bounded waiting",
"Circular wait"
],
"ans": 3,
"exp": "Solutions require mutual exclusion, progress, and bounded waiting. Circular wait is a deadlock condition."
},
{
"q": "A race condition is:",
"opts": [
"A process running faster than expected",
"When the final output depends on the order in which shared variables are accessed",
"Two processes with equal priorities",
"Blocking on I/O for too long"
],
"ans": 1,
"exp": "Race conditions arise when the outcome depends on interleavings of accesses to shared variables."
},
{
"q": "Bounded waiting guarantees:",
"opts": [
"A process waits at most a fixed amount of wall-clock time",
"A bound exists on how many times other processes can enter the CS after one has requested it",
"No process ever waits",
"Waiting equals burst time"
],
"ans": 1,
"exp": "Bounded waiting ensures a limit on how many times other processes may enter the critical section between a process's request and its grant."
},
{
"q": "A semaphore whose value ranges over an unrestricted integer domain is a:",
"opts": [
"Binary semaphore",
"Counting semaphore",
"Mutex",
"Spinlock"
],
"ans": 1,
"exp": "Counting semaphores take unrestricted integers; binary semaphores take only 0/1 and implement mutual exclusion."
},
{
"q": "Binary semaphores are used to implement:",
"opts": [
"Deadlock avoidance",
"Mutual exclusion and process synchronisation",
"Priority scheduling",
"Paging"
],
"ans": 1,
"exp": "Binary semaphores (values 0/1) implement mutual exclusion and synchronise concurrent processes."
},
{
"q": "A mutex differs from a counting semaphore in that:",
"opts": [
"A mutex has integer value",
"A mutex provides mutual exclusion — only one thread can hold it at a time",
"Semaphores cannot be shared",
"Mutex is only used in kernels"
],
"ans": 1,
"exp": "A mutex is a mutual-exclusion primitive; only one owner holds it at a time, generalisable via semaphores."
},
{
"q": "Which set lists all four necessary conditions for deadlock?",
"opts": [
"Mutual exclusion, hold & wait, preemption, circular wait",
"Mutual exclusion, hold & wait, no preemption, circular wait",
"Starvation, hold & wait, no preemption, aging",
"Mutual exclusion, race condition, no preemption, circular wait"
],
"ans": 1,
"exp": "Deadlock requires all four simultaneously: mutual exclusion, hold and wait, NO preemption, circular wait."
},
{
"q": "Windows and UNIX generally handle deadlock by:",
"opts": [
"Banker's algorithm",
"Deadlock detection and recovery",
"Ignoring the problem (Ostrich approach)",
"Wait-die scheme"
],
"ans": 2,
"exp": "Since deadlock is rare, both Windows and UNIX ignore it and rely on a reboot — the 'ignore altogether' strategy."
},
{
"q": "Banker's algorithm is a technique for:",
"opts": [
"Deadlock detection",
"Deadlock avoidance",
"Deadlock recovery",