Revealed: 0 / 0
0%
Digital Electronics & Logic Design
1
LogicThe Boolean expression
A(A+B) simplifies to:✔ Answer
A — By absorption law, A(A+B) = AA + AB = A + AB = A(1+B) = A.
2
LogicHow many 2-input NAND gates are needed to implement a 2-input AND gate?
✔ Answer
2 NAND gates — NAND→NAND gives AND. First NAND gives (A·B)’, second NAND (as inverter) gives back A·B.
3
Flip-FlopA JK flip-flop with J=1 and K=1 operates in which mode?
✔ Answer
Toggle mode — When both J=1 and K=1, the output toggles (complements) on every clock edge.
4
Number SystemsThe 2’s complement of the 8-bit number
10000000 is:✔ Answer
10000000 — This is a special case. 1’s complement = 01111111, adding 1 = 10000000 (overflow wraps back). It represents –128 in signed 8-bit.
5
CountersA 4-bit ripple counter can count up to how many states?
✔ Answer
16 states (0 to 15) — 2⁴ = 16 distinct states. Maximum count = 15 (binary 1111) before resetting to 0.
6
MultiplexerA 16:1 multiplexer requires how many select lines?
✔ Answer
4 select lines — 2⁴ = 16 inputs require 4 select lines (S3, S2, S1, S0).
7
Karnaugh MapIn a Karnaugh map, adjacent cells differ by exactly:
✔ Answer
One variable — This is the Gray code property used in K-maps; it enables grouping to eliminate variables.
8
ADC/DACResolution of an 8-bit ADC with a reference voltage of 5V is approximately:
✔ Answer
≈ 19.6 mV — Resolution = V_ref / (2ⁿ) = 5 / 256 ≈ 0.0195 V ≈ 19.5 mV per step.
Data Structures & Algorithms
9
SortingWhich sorting algorithm has the best worst-case time complexity?
✔ Answer
Merge Sort & Heap Sort — Both have O(n log n) worst-case. Quick Sort is O(n²) worst-case. Merge Sort is stable; Heap Sort is in-place.
10
TreesIn a complete binary tree with n nodes, the height is:
✔ Answer
⌊log₂ n⌋ — A complete binary tree of n nodes has height floor(log₂ n), making it O(log n) for search.
11
StackWhat data structure is used for function call management in programming languages?
✔ Answer
Stack (Call Stack) — LIFO property of stacks perfectly models function invocation and return, local variable storage, and activation records.
12
GraphDijkstra’s algorithm finds the shortest path in a graph with:
✔ Answer
Non-negative edge weights only — Dijkstra fails with negative weights. Use Bellman-Ford for graphs with negative edges.
13
HashingThe average-case time complexity of a lookup in a hash table is:
✔ Answer
O(1) — With a good hash function and low load factor, average-case search/insert/delete is O(1). Worst case is O(n) due to collision.
14
QueueWhich data structure is ideal for implementing a Breadth-First Search (BFS)?
✔ Answer
Queue (FIFO) — BFS explores level-by-level; enqueue neighbors and dequeue from front to maintain order.
15
ComplexityThe recurrence T(n) = 2T(n/2) + n solves to:
✔ Answer
O(n log n) — By Master Theorem Case 2 (a=2, b=2, f(n)=n = n^log₂2), T(n) = Θ(n log n). This is Merge Sort’s complexity.
Operating Systems
16
SchedulingWhich CPU scheduling algorithm may cause starvation?
✔ Answer
Priority Scheduling & SJF — Low priority or long processes may wait indefinitely. Aging is used as a remedy to prevent starvation.
17
DeadlockWhich of the four conditions is NOT necessary for deadlock?
✔ Answer
Preemption — The four Coffman conditions are: Mutual Exclusion, Hold & Wait, No Preemption, Circular Wait. Preemption being absent is a necessary condition; its presence prevents deadlock.
18
MemoryIn demand paging, a page fault occurs when:
✔ Answer
The referenced page is not in physical memory (RAM) — The OS then loads the page from disk (swap space) into a free frame.
19
SemaphoreWhat is the initial value of a binary semaphore?
✔ Answer
0 or 1 — A binary semaphore (mutex) is initialized to 1 (resource free) or 0 (locked). It allows only one process in the critical section.
20
File SystemIn Unix/Linux, the inode stores:
✔ Answer
File metadata (permissions, timestamps, size, block pointers) — NOT the filename — The filename is stored in the directory entry which maps to inode numbers.
Computer Networks
21
OSI ModelAt which OSI layer does TCP/IP operate?
✔ Answer
Layer 4 – Transport Layer — TCP (reliable, connection-oriented) and UDP (unreliable, connectionless) both operate at Transport Layer of OSI model.
22
IPWhat is the subnet mask for a Class B network by default?
✔ Answer
255.255.0.0 (/16) — Class A: 255.0.0.0, Class B: 255.255.0.0, Class C: 255.255.255.0. Class B addresses range 128.0.x.x – 191.255.x.x.
23
RoutingOSPF is based on which algorithm?
✔ Answer
Dijkstra’s Shortest Path First (SPF) algorithm — OSPF is a link-state routing protocol. Each router builds a complete topology map and computes shortest paths using Dijkstra.
24
TCPWhat mechanism does TCP use to prevent network congestion?
✔ Answer
Slow Start, Congestion Avoidance, Fast Retransmit & Fast Recovery — TCP uses CWND (Congestion Window) management. Slow start doubles CWND each RTT until threshold, then linear growth.
25
DNSDNS primarily uses which transport protocol and port?
✔ Answer
UDP port 53 (primarily) — DNS uses UDP/53 for standard queries (fast, small responses). TCP/53 is used for zone transfers and responses > 512 bytes.
26
SecurityWhich protocol provides secure remote login over an unsecured network?
✔ Answer
SSH (Secure Shell) – Port 22 — SSH replaces Telnet (port 23) which transmitted data in plaintext. SSH uses asymmetric encryption for key exchange.
27
MACThe MAC address is a feature of which OSI layer?
✔ Answer
Layer 2 – Data Link Layer — MAC (Media Access Control) is a sub-layer of DLL. It is 48-bit hardware address burned into NIC, expressed as 6 hex bytes (e.g., AA:BB:CC:DD:EE:FF).
Database Management Systems
28
NormalizationA relation in 3NF must already be in:
✔ Answer
1NF and 2NF — Normalization is hierarchical. 3NF requires: in 2NF, and no transitive functional dependency of non-key attributes on primary key.
29
SQLWhich SQL command is used to remove all rows from a table without deleting the table structure?
✔ Answer
TRUNCATE — TRUNCATE removes all rows quickly (DDL). DELETE (DML) removes rows one-by-one and is rollback-able. DROP removes the entire table structure.
30
ACIDThe ‘I’ in ACID properties of a transaction stands for:
✔ Answer
Isolation — ACID = Atomicity (all or nothing), Consistency (valid state), Isolation (transactions independent), Durability (committed data persists).
31
IndexingWhich index structure is most suitable for range queries?
✔ Answer
B+ Tree — B+ Trees store all data in leaf nodes linked in a list, making range queries efficient. Hash indices are O(1) for equality but poor for ranges.
32
ER ModelA weak entity in an ER diagram:
✔ Answer
Cannot be uniquely identified by its own attributes alone — A weak entity depends on an identifying (owner) entity. It uses a discriminator + owner’s primary key as composite key.
Software Engineering & SDLC
33
SDLCIn which SDLC model are all phases completed before moving to the next?
✔ Answer
Waterfall Model — Sequential: Requirements → Design → Implementation → Testing → Deployment → Maintenance. No iteration allowed between phases.
34
TestingBlack-box testing is based on:
✔ Answer
Functional requirements / external behavior (no knowledge of internal code) — Testers provide inputs and verify outputs without knowing implementation. Contrast: White-box tests internal structure/code.
35
UMLWhich UML diagram shows the interaction between objects over time?
✔ Answer
Sequence Diagram — Shows object interactions arranged by time sequence. Lifelines, activation boxes, and messages depict call order.
36
AgileIn Scrum, the time-boxed iteration is called:
✔ Answer
Sprint — A Sprint is typically 1–4 weeks long. Each sprint results in a potentially shippable product increment. Daily Scrum, Sprint Review, and Sprint Retrospective are key ceremonies.
Computer Architecture & Microprocessors
37
PipelineIn a 5-stage pipeline, what is the main cause of pipeline stalls?
✔ Answer
Hazards (Data, Control, Structural) — Data hazards (RAW, WAR, WAW), control hazards (branches), and structural hazards (resource conflicts) cause bubbles/stalls in the pipeline.
38
CacheCache hit ratio formula is:
✔ Answer
Hit Ratio = Cache Hits / (Cache Hits + Cache Misses) — Average access time = h × Tc + (1–h) × Tm, where h = hit ratio, Tc = cache time, Tm = main memory time.
39
8085In Intel 8085, how many general-purpose registers are there?
✔ Answer
6 (B, C, D, E, H, L) — Plus Accumulator (A), Stack Pointer (SP), Program Counter (PC), and Flags register. Registers pair as BC, DE, HL for 16-bit ops.
40
RISC vs CISCWhich characteristic is true for RISC architecture?
✔ Answer
Fixed-length instructions, large register file, load-store architecture — RISC: simple instructions, 1 clock cycle each, hardwired control. CISC: variable-length, microcode, fewer registers (e.g., x86).
41
DMADMA (Direct Memory Access) is used to:
✔ Answer
Transfer data between I/O devices and memory without CPU involvement — CPU initiates the transfer, then DMA controller takes over the bus to move data, freeing CPU for other tasks.
Signals & Communication Systems
42
NyquistAccording to Nyquist theorem, sampling frequency must be at least:
✔ Answer
2 × maximum signal frequency (2fmax) — This is the Nyquist rate. Sampling below this causes aliasing. For voice at 4kHz, Nyquist rate = 8kHz (used in telephony).
43
ModulationIn FM modulation, the bandwidth is determined by:
✔ Answer
Carson’s Rule: BW ≈ 2(Δf + fm) — Where Δf is max frequency deviation and fm is max message frequency. FM has wider bandwidth than AM but better noise immunity.
44
OFDMOFDM is used in which wireless standard?
✔ Answer
IEEE 802.11 (Wi-Fi), LTE/4G, 5G NR — OFDM divides spectrum into orthogonal sub-carriers, efficient for multipath fading environments. Also used in DVB-T (digital TV).
45
ShannonShannon’s channel capacity formula C = B log₂(1 + S/N) — S/N here refers to:
✔ Answer
Signal-to-Noise Ratio (linear, not dB) — C is in bits/sec, B is bandwidth in Hz. Higher SNR and wider bandwidth increase channel capacity. This sets the theoretical maximum throughput.
Cybersecurity & Cryptography
46
EncryptionAES uses which key sizes?
✔ Answer
128, 192, or 256 bits — AES (Advanced Encryption Standard) is a symmetric block cipher with 128-bit block size. AES-128 uses 10 rounds, AES-192 uses 12, AES-256 uses 14 rounds.
47
PKIIn asymmetric cryptography, data encrypted with a public key can only be decrypted by:
✔ Answer
The corresponding private key — Public key encrypts; private key decrypts (for confidentiality). For digital signatures: private key signs, public key verifies.
48
FirewallA stateful firewall differs from a stateless firewall in that it:
✔ Answer
Tracks connection state — Stateful firewalls maintain a connection table and inspect packets in context of established sessions. Stateless firewalls inspect each packet independently using static rules.
49
HashWhich hash function is recommended by NIST for security-sensitive applications?
✔ Answer
SHA-256 or SHA-3 — MD5 and SHA-1 are considered broken (collision attacks). NIST recommends SHA-2 family (SHA-256, SHA-512) or SHA-3 (Keccak).
50
AttackA SQL injection attack exploits:
✔ Answer
Improper input validation / unsanitized user inputs inserted into SQL queries — Prevention: parameterized queries (prepared statements), ORM usage, input validation, least privilege DB accounts.
Cloud Computing & Virtualization
51
CloudWhich cloud service model provides developers with a platform to build, run, and manage applications?
✔ Answer
PaaS (Platform as a Service) — IaaS: raw compute/storage (AWS EC2). PaaS: development platform (Google App Engine). SaaS: complete software (Gmail, Office365).
52
VirtualizationA hypervisor that runs directly on hardware without a host OS is called:
✔ Answer
Type 1 (Bare Metal) Hypervisor — Examples: VMware ESXi, Microsoft Hyper-V, Xen. Type 2 (Hosted) hypervisors run on a host OS (e.g., VirtualBox, VMware Workstation).
53
ContainersDocker containers differ from VMs in that containers:
✔ Answer
Share the host OS kernel and are more lightweight — Containers package only app + dependencies, not a full OS. Startup is milliseconds vs seconds for VMs. Docker uses Linux namespaces and cgroups.
54
RAIDRAID 5 requires a minimum of how many disks and provides what protection?
✔ Answer
3 disks minimum; tolerates 1 disk failure using distributed parity — RAID 0: striping (no redundancy). RAID 1: mirroring. RAID 5: block-level striping with distributed parity. RAID 6: two parity blocks.
55
MicroservicesIn a microservices architecture, services communicate primarily via:
✔ Answer
REST APIs (HTTP/HTTPS) or message queues (Kafka, RabbitMQ) — Synchronous: REST/gRPC. Asynchronous: message brokers. Each service has its own database (database per service pattern).
Programming Concepts & OOP
56
OOPWhich OOP concept allows a single interface to represent different underlying forms?
✔ Answer
Polymorphism — “One interface, multiple implementations.” Compile-time (method overloading) and runtime (method overriding via virtual functions) polymorphism.
57
JavaIn Java, what is the output of
5 + 3 + "NIC"?✔ Answer
“8NIC” — Left to right evaluation: 5+3=8 (integer addition), then 8+”NIC”=”8NIC” (string concatenation). Compare with
"NIC"+5+3 = “NIC53”.58
Design PatternThe Singleton pattern ensures:
✔ Answer
Only one instance of a class exists throughout the application — Achieved by private constructor + static getInstance() method. Used for DB connections, logging, configuration objects.
59
MemoryIn C,
malloc() allocates memory in:✔ Answer
Heap (dynamic memory) — Stack: local variables, function frames (auto-managed). Heap: dynamic allocation via malloc/calloc/realloc; must be freed with free() to avoid memory leaks.
60
RecursionWhat is the time complexity of a recursive Fibonacci implementation without memoization?
✔ Answer
O(2ⁿ) — Each call branches into 2 sub-calls, leading to exponential growth. With memoization (dynamic programming), it reduces to O(n). Iterative Fibonacci is O(n) time, O(1) space.
Mixed Topics — Digital & Computer Systems
61
EncodingHamming code is used for:
✔ Answer
Error detection and single-bit error correction — Hamming(7,4) can detect up to 2-bit errors and correct 1-bit errors. Uses parity bits at power-of-2 positions.
62
ProtocolHTTP is a ________ protocol.
✔ Answer
Stateless, application-layer protocol — HTTP runs over TCP (port 80). Each request is independent. HTTP/2 adds multiplexing; HTTP/3 uses QUIC over UDP. HTTPS adds TLS encryption.
63
VLSIMoore’s Law states that the number of transistors on a chip doubles approximately every:
✔ Answer
2 years (approximately 18–24 months) — Proposed by Gordon Moore in 1965. Modern fabrication nodes: 5nm, 3nm, 2nm. The law is considered to be slowing down due to physical limits.
64
OSThrashing in virtual memory occurs when:
✔ Answer
The OS spends more time swapping pages than executing processes — Caused by too many processes competing for limited frames. Working set model and page fault frequency are used to control thrashing.
65
NetworkingThe protocol used to assign IP addresses dynamically is:
✔ Answer
DHCP (Dynamic Host Configuration Protocol) – UDP ports 67/68 — DHCP server assigns IP, subnet mask, gateway, DNS. Process: DISCOVER → OFFER → REQUEST → ACK (DORA).
66
BusIn 8051 microcontroller, the number of I/O ports is:
✔ Answer
4 ports (P0, P1, P2, P3) — each 8-bit wide (32 I/O pins total) — 8051 has 8KB flash, 256B RAM, 2 timers, serial port, 6 interrupt sources.
67
DSPThe Z-transform is the digital equivalent of which analog transform?
✔ Answer
Laplace Transform — Z-transform is used to analyze discrete-time systems, just as Laplace is used for continuous-time. The unit circle |z|=1 corresponds to the jω axis in s-domain.
68
TestingRegression testing is performed to:
✔ Answer
Ensure new changes haven’t broken existing functionality — After every bug fix or new feature, regression tests re-run the full/partial test suite to catch regressions (newly introduced bugs).
69
ProtocolBGP (Border Gateway Protocol) is used for:
✔ Answer
Inter-AS (Autonomous System) routing on the Internet — BGP is the Internet’s backbone routing protocol. It is a path-vector protocol running over TCP port 179. ISPs use BGP to exchange routing information.
70
LinuxIn Linux, the command to display running processes is:
✔ Answer
ps aux or top / htop — ps aux shows all processes at a snapshot. top gives real-time monitoring. kill -9 PID forcefully terminates a process.71
Logic GatesThe output of an XNOR gate is HIGH when:
✔ Answer
Both inputs are equal (both 0 or both 1) — XNOR is the complement of XOR. Truth table: 0,0→1; 0,1→0; 1,0→0; 1,1→1. Used in comparator circuits.
72
StorageThe access time of RAM vs hard disk differ by approximately:
✔ Answer
~100,000× (RAM ≈ 50ns; HDD ≈ 5–10ms) — Memory hierarchy: Registers (< 1ns) → L1/L2 Cache (1-10ns) → RAM (50-100ns) → SSD (50-150µs) → HDD (5-10ms).
73
IPv6IPv6 address length is:
✔ Answer
128 bits (written as 8 groups of 4 hex digits separated by colons) — IPv4 is 32-bit (4 billion addresses). IPv6 is 128-bit (3.4 × 10³⁸ addresses). Example: 2001:0db8:85a3::8a2e:0370:7334.
74
CompilerWhich phase of a compiler converts tokens into a parse tree?
✔ Answer
Syntax Analysis (Parsing) — Compiler phases: Lexical Analysis → Syntax Analysis → Semantic Analysis → IR Generation → Optimization → Code Generation. Parser builds AST (Abstract Syntax Tree) using grammar rules.
75
AutomataA finite automaton that can be in multiple states simultaneously is called:
✔ Answer
NFA (Non-deterministic Finite Automaton) — NFA can transition to multiple states or use ε-transitions. Every NFA has an equivalent DFA (subset construction). Both accept Regular Languages.
76
OpAmpAn ideal operational amplifier has:
✔ Answer
Infinite input impedance, zero output impedance, infinite open-loop gain, infinite bandwidth — Real op-amps (e.g., 741) have high but finite values. Golden rules: V+ = V−, no current into inputs.
77
FPGAFPGA stands for:
✔ Answer
Field-Programmable Gate Array — Configurable logic blocks (CLBs) connected by programmable interconnects. Programmed using HDL (VHDL/Verilog). Used for prototyping ASICs and hardware acceleration.
78
APIREST API is based on which architectural style?
✔ Answer
Client-Server, Stateless, Cacheable (Representational State Transfer) — REST uses HTTP methods: GET (read), POST (create), PUT (update), DELETE (delete). Resources identified by URIs. Stateless: server holds no client session.
79
TransistorIn a BJT, the transistor operates as a switch when in which region?
✔ Answer
Saturation (ON) and Cut-off (OFF) regions — Saturation: both junctions forward biased → switch closed. Cut-off: both reverse biased → switch open. Active region: amplifier operation.
80
PythonIn Python, which data structure maintains insertion order and allows duplicate values?
✔ Answer
List — List: ordered, mutable, duplicates allowed. Tuple: ordered, immutable. Set: unordered, no duplicates. Dict: key-value pairs, ordered (Python 3.7+).
Advanced Topics — NIC Scientist B Level
81
AI/MLIn machine learning, overfitting refers to:
✔ Answer
A model that performs well on training data but poorly on unseen test data — High variance, low bias. Solutions: regularization (L1/L2), dropout, cross-validation, more training data, simpler model.
82
Version ControlIn Git, what does
git rebase do?✔ Answer
Re-applies commits on top of a new base commit (creates linear history) — Unlike merge (which creates a merge commit), rebase rewrites history. Use with caution on shared branches.
83
IoTThe MQTT protocol is used in IoT primarily because:
✔ Answer
It is lightweight, publish-subscribe messaging protocol suited for low-bandwidth, low-power devices — MQTT uses TCP port 1883 (8883 for TLS). Publish/Subscribe model via a broker. QoS levels 0, 1, 2.
84
NoSQLWhich type of NoSQL database is most suitable for storing hierarchical/tree-structured data?
✔ Answer
Document database (e.g., MongoDB) — Stores JSON/BSON documents with nested structures. Graph DBs (Neo4j) for relationships. Wide-column (Cassandra) for large scale. Key-value (Redis) for simple lookups.
85
NIC SpecificNIC stands for (in the context of India’s IT department):
✔ Answer
National Informatics Centre — NIC is under MeitY (Ministry of Electronics and IT), established in 1976. It provides IT services to government ministries, manages NIC-NET, develops e-governance portals.
86
DevOpsIn CI/CD, “Continuous Integration” means:
✔ Answer
Automatically building and testing code upon each commit/merge — CI: frequent integration + automated testing (Jenkins, GitHub Actions). CD: automated deployment to staging or production. Reduces integration issues.
87
EncodingIn IEEE 754 single precision float, the number of bits for exponent is:
✔ Answer
8 bits (biased by 127) — Single precision (32-bit): 1 sign + 8 exponent + 23 mantissa. Double precision (64-bit): 1+11+52. Exponent stored with bias to represent negative exponents without sign bit.
88
WirelessBluetooth operates in which frequency band?
✔ Answer
2.4 GHz ISM band (2.4–2.485 GHz) — Uses FHSS (Frequency Hopping Spread Spectrum) with 79 channels. BLE (Bluetooth Low Energy) uses 40 channels. Range: ~10m (class 2), 100m (class 1).
89
KernelA monolithic kernel differs from a microkernel in that:
✔ Answer
All OS services run in kernel space (monolithic) vs. minimal kernel with services in user space (microkernel) — Linux/Windows: monolithic (fast but less secure). Minix/QNX: microkernel (more stable/secure but slower IPC).
90
Data ScienceMapReduce is used for:
✔ Answer
Distributed processing of large datasets across clusters — Map phase: splits data into key-value pairs. Reduce phase: aggregates results. Introduced by Google; implemented in Hadoop. Handles petabyte-scale data.
91
ReliabilityMTBF stands for:
✔ Answer
Mean Time Between Failures — MTBF = total uptime / number of failures. Higher MTBF = more reliable. Related: MTTR (Mean Time To Repair). Availability = MTBF / (MTBF + MTTR).
92
InteroperabilitySOAP web services use which data format for message exchange?
✔ Answer
XML (Extensible Markup Language) — SOAP (Simple Object Access Protocol) uses XML envelopes. More verbose than REST/JSON. Uses WSDL for service description. Supports WS-Security, ACID transactions.
93
PowerA CMOS gate consumes power primarily during:
✔ Answer
Switching transitions (dynamic power) — CMOS: P = α C V² f, where α = activity factor, C = capacitance, V = supply voltage, f = clock frequency. Static/leakage power also present but minimal in older nodes.
94
BlockchainIn blockchain, the hash of each block includes:
✔ Answer
The hash of the previous block (chaining) — This creates tamper-evidence: changing any block invalidates all subsequent blocks. Merkle tree hashes all transactions in a block. PoW/PoS ensures consensus.
95
WebCross-Site Scripting (XSS) attacks inject:
✔ Answer
Malicious scripts into web pages viewed by other users — Stored XSS: persists in DB; Reflected XSS: in URL. Prevention: output encoding, CSP headers, input validation, HttpOnly cookies.
96
StandardsWhich body publishes standards for wireless LAN (IEEE 802.11)?
✔ Answer
IEEE (Institute of Electrical and Electronics Engineers) — 802.11a/b/g/n/ac/ax are Wi-Fi standards. 802.11ax (Wi-Fi 6) supports OFDMA, 6GHz band, 9.6 Gbps theoretical max.
97
EmbeddedReal-Time Operating Systems (RTOS) are characterized by:
✔ Answer
Deterministic, bounded response time (predictable latency) — Hard RTOS: missing deadline = system failure (pacemaker). Soft RTOS: occasional misses tolerable (video streaming). Examples: FreeRTOS, VxWorks, QNX.
98
Big DataCAP theorem states that a distributed system can guarantee at most:
✔ Answer
Two of three: Consistency, Availability, Partition Tolerance — CA: traditional RDBMS. CP: MongoDB, HBase. AP: CouchDB, Cassandra. In practice, network partitions occur, so trade-off is between C and A.
99
AntennaAn isotropic antenna radiates energy:
✔ Answer
Equally in all directions (omnidirectional, spherical pattern) — Isotropic antenna is a theoretical reference. Real antenna gain is measured in dBi (decibels relative to isotropic). Dipole antenna gain: 2.15 dBi.
100
e-GovDigiLocker is an initiative under which scheme?
✔ Answer
Digital India Programme (MeitY) — DigiLocker provides cloud storage for government-issued documents (Aadhaar, PAN, driving licence). NIC played a key role in developing the platform. Launched in 2015.
101
ProtocolTLS 1.3 compared to TLS 1.2 provides:
✔ Answer
Faster handshake (1-RTT vs 2-RTT), removed obsolete algorithms, mandatory forward secrecy — TLS 1.3 removes RSA key exchange, RC4, DES, SHA-1. Supports only AEAD ciphers. Reduces latency for HTTPS connections.
102
e-GovernanceWhich framework governs e-governance standards in India?
✔ Answer
e-Governance Standards (eGS) published by MeitY / NeGD — Covers interoperability, metadata standards, security, open APIs, localization. STQC certifies e-governance applications. NIC implements these across ministries.
103
CompilerLeft recursion in grammar causes issues in:
✔ Answer
Top-down (LL) parsers — causes infinite loop — Left recursion: A → Aα. Must be eliminated for LL(1) parsers. Bottom-up parsers (LR, LALR) handle left-recursive grammars without modification.
104
MemorySegmentation fault occurs when:
✔ Answer
A program tries to access memory it’s not allowed to access — Common causes: null pointer dereference, buffer overflow, dangling pointer, stack overflow. OS sends SIGSEGV signal, program terminates.
105
ProtocolsSNMP is used for:
✔ Answer
Network device management and monitoring — SNMP (Simple Network Management Protocol) uses UDP 161 (queries) and 162 (traps). SNMPv3 adds security. Uses MIB (Management Information Base) to organize device data.
106
ElectronicsA Zener diode is primarily used for:
✔ Answer
Voltage regulation (operates in reverse breakdown/Zener region) — Maintains constant voltage across it regardless of current variations. Zener breakdown voltage is well-defined and stable. Used in reference voltage circuits, surge protection.
107
OSIn Linux, the command
chmod 755 file.sh sets permissions as:✔ Answer
Owner: rwx (7), Group: r-x (5), Others: r-x (5) — Octal: r=4, w=2, x=1. 755 = rwxr-xr-x. Owner can read/write/execute; group and others can only read and execute. Common for scripts.
108
QuantumQubit differs from classical bit in that it can exist in:
✔ Answer
Superposition of 0 and 1 simultaneously — A qubit is |ψ⟩ = α|0⟩ + β|1⟩ where |α|²+|β|²=1. Measurement collapses the state. Entanglement and superposition give quantum computers exponential parallelism.
109
5GThe millimeter wave (mmWave) spectrum used in 5G operates in:
✔ Answer
24–100 GHz frequency range — mmWave: very high bandwidth but short range, high attenuation. Sub-6GHz: better coverage. 5G NR supports both FR1 (sub-6GHz) and FR2 (mmWave). Peak speed: 20 Gbps.
110
EthicsUnder the IT Act 2000 (India), Section 66 deals with:
✔ Answer
Computer-related offences (hacking, data theft) — IT Act 2000, amended in 2008. Section 43: unauthorized access. Section 66: hacking (3 yr imprisonment/5 lakh fine). Section 69: interception/monitoring. Section 72: breach of confidentiality.
Revealed: 0 / 0
0%
Top 30 NIC Scientist B Interview Questions
Technical + HR
I1
Tell me about NIC, its mandate, and the major systems it has developed for the Government of India.
✔ Model Answer
NIC (National Informatics Centre), established in 1976 under MeitY, is the primary IT arm of the Government of India. Key systems: NICNET (government network), GST portal, PFMS (public financial management), eSanjeevani (telemedicine), CoWIN (vaccine management), NeSDA (e-service delivery), DigiLocker, eTender, IVFRT (visa), MCA21 (company registration). NIC supports 600+ e-governance applications. It operates state data centres and provides cloud (MeghRaj), cybersecurity, and AI/ML services to ministries.
I2
Explain the OSI model layers with real-world protocol examples for each layer.
✔ Model Answer
7-Physical: Ethernet cable, optical fiber, RS-232 | 6-Data Link: MAC, ARP, PPP, 802.3 | 5-Network: IP, ICMP, OSPF, BGP | 4-Transport: TCP, UDP, SCTP | 3-Session: NetBIOS, RPC | 2-Presentation: SSL/TLS, JPEG, MPEG, ASCII | 1-Application: HTTP, FTP, SMTP, DNS, DHCP. Mnemonic: “All People Seem To Need Data Processing”.
I3
What is the difference between process and thread? When would you prefer one over the other?
✔ Model Answer
Process: Independent execution unit with its own memory space, PCB, isolated; communication via IPC (pipes, sockets, shared memory). Thread: Lightweight, shares memory/resources within a process; lower creation overhead; faster context switching. Prefer threads for parallelism within a task (web server handling requests). Prefer processes for isolation and fault tolerance (microservices, OS processes). Python GIL limits true thread parallelism for CPU-bound tasks.
I4
Explain database normalization up to BCNF with examples.
✔ Model Answer
1NF: Atomic values, no repeating groups. 2NF: 1NF + no partial dependency (non-key attr fully dependent on full PK). 3NF: 2NF + no transitive dependency (non-key attr depends only on PK, not other non-key). BCNF: For every FD X→Y, X must be a superkey. BCNF is stricter than 3NF; some 3NF tables aren’t in BCNF. Example: Student(Sno, Course, Teacher) where Teacher→Course violates BCNF if {Sno, Course} is PK.
I5
How does HTTPS work? Explain the TLS handshake process.
✔ Model Answer
HTTPS = HTTP over TLS. TLS Handshake (TLS 1.2): 1. Client Hello (TLS version, cipher suites, random). 2. Server Hello (chosen cipher, certificate). 3. Client verifies certificate via CA. 4. Key Exchange (RSA or ECDHE). 5. Session keys derived from pre-master secret + randoms. 6. Change Cipher Spec + Finished. Data encrypted with symmetric AES. TLS 1.3: 1-RTT handshake, forward secrecy mandatory, no RSA key exchange.
I6
What is the difference between SQL and NoSQL databases? When would you choose NoSQL?
✔ Model Answer
SQL: Structured, ACID compliant, predefined schema, vertical scaling. Best for transactional systems (banking, ERP). NoSQL: Flexible schema, horizontal scaling, eventual consistency, optimized for specific data models. Choose NoSQL when: (1) Rapidly changing data structure, (2) Large-scale unstructured data, (3) High read/write throughput (social media), (4) Geographical distribution (Cassandra), (5) Real-time analytics (Redis). Types: Document (MongoDB), Key-value (Redis), Wide-column (Cassandra), Graph (Neo4j).
I7
Explain the concept of virtual memory and how paging works.
✔ Model Answer
Virtual memory creates an abstraction allowing processes to use more memory than physically available. Paging: Virtual address space divided into fixed-size pages; physical memory into frames. Page Table maps virtual page numbers to physical frames. On page fault: MMU raises exception → OS checks page table → loads page from swap space into free frame → updates page table. Enables process isolation, memory sharing (shared libraries), demand loading, and protection via valid bits.
I8
How would you design a URL shortener like bit.ly at system design level?
✔ Model Answer
Requirements: 100M URLs/day, low latency redirect. Encoding: MD5/Base62 of original URL → 7-char short code. DB: NoSQL (Cassandra/DynamoDB) for key-value (short_code → original_url). Cache: Redis for hot URLs (80/20 rule). Redirect: 301 (permanent) vs 302 (temporary) — use 302 to track clicks. Scale: Load balancer + multiple stateless app servers. Analytics: Async pipeline to Kafka → Spark → analytics DB. Handle collisions via retry.
I9
What are the SOLID principles of object-oriented design?
✔ Model Answer
S – Single Responsibility: class should have one reason to change. O – Open/Closed: open for extension, closed for modification. L – Liskov Substitution: subclasses must be substitutable for base class. I – Interface Segregation: no client should be forced to depend on interfaces it doesn’t use. D – Dependency Inversion: depend on abstractions, not concretions. These reduce coupling, improve testability and maintainability.
I10
Explain the difference between symmetric and asymmetric encryption with use cases.
✔ Model Answer
Symmetric: Same key for encrypt/decrypt. Fast, suitable for bulk data. Examples: AES, DES, 3DES. Problem: secure key distribution. Asymmetric: Public/private key pair. Slow, used for key exchange and signatures. Examples: RSA, ECC, Diffie-Hellman. In practice (HTTPS): Asymmetric (RSA/ECDHE) to securely exchange a symmetric key; then AES for data encryption — best of both worlds. Digital signatures use private key to sign, public key to verify.
I11
What is the difference between TCP and UDP? Give real-world application examples.
✔ Model Answer
TCP: Connection-oriented (3-way handshake), reliable, ordered delivery, flow control, congestion control, header 20 bytes. Used for: HTTP/S, FTP, SSH, email. UDP: Connectionless, unreliable, no guarantee of order/delivery, header 8 bytes, lower latency. Used for: DNS, video streaming, VoIP, online gaming, DHCP, live broadcasts. Rule: use TCP when correctness matters, UDP when speed matters and occasional loss is acceptable.
I12
What is DevSecOps and why is it important for government IT systems?
✔ Model Answer
DevSecOps integrates security at every stage of DevOps pipeline rather than treating it as an afterthought. Key practices: SAST/DAST in CI/CD, container image scanning, secrets management (HashiCorp Vault), IAC security (Terraform scanning), dependency vulnerability checks (Snyk). For government: sensitive citizen data, regulatory compliance (IT Act, PDPB), nation-state cyber threats, zero-trust architecture. NIC uses CERT-In guidelines, VAPT, ISO 27001 compliance for all systems.
I13
Describe the microservices architecture and how it differs from monolithic architecture.
✔ Model Answer
Monolithic: Single deployable unit; easy to develop/test initially; becomes complex to scale/maintain; single point of failure. Microservices: Independent services, each responsible for one function; separate DB; communicate via REST/gRPC/messaging; independently deployable and scalable. Benefits: Technology heterogeneity, fault isolation, team autonomy. Challenges: Network latency, distributed tracing (Jaeger), service discovery (Consul/Eureka), data consistency. Use API gateway for routing, Kubernetes for orchestration.
I14
What is cloud-native development? Explain the 12-factor app methodology.
✔ Model Answer
Cloud-native: design apps to exploit cloud scalability, resilience, manageability. 12 Factors: (1)Codebase in VCS (2)Explicit dependencies (3)Config in environment (4)Backing services as attached resources (5)Strict build/release/run stages (6)Processes stateless (7)Port binding (8)Concurrency via process model (9)Disposability (fast start/shutdown) (10)Dev/prod parity (11)Logs as event streams (12)Admin tasks as one-off processes. These ensure portability, scalability, and maintainability on any cloud.
I15
How does Kubernetes manage containerized applications? Explain key concepts.
✔ Model Answer
Kubernetes (K8s): Container orchestration platform. Key concepts: Pod (smallest unit, 1+ containers) → Deployment (manages pod replicas) → Service (stable network endpoint, load balancing) → Ingress (external HTTP routing). Control Plane: API Server, etcd (state store), Scheduler, Controller Manager. Node: kubelet, kube-proxy, container runtime. Features: auto-scaling (HPA), rolling updates, self-healing, config/secret management, namespace isolation.
I16
Explain the concept of a binary search tree and time complexities for operations.
✔ Model Answer
BST: left subtree has smaller keys, right subtree has larger keys. Complexity: Search/Insert/Delete — Average O(log n), Worst O(n) (skewed tree). Balanced BSTs (AVL, Red-Black Tree) guarantee O(log n) worst case. AVL: height difference ≤ 1, rotations for balance. Red-Black: color properties ensure height ≤ 2log(n+1). In-order traversal of BST gives sorted sequence — used in range queries and sorted maps (TreeMap in Java).
I17
What is the difference between authentication and authorization? Explain OAuth 2.0.
✔ Model Answer
Authentication: Who are you? (identity verification — username/password, OTP, biometric). Authorization: What can you do? (access control — RBAC, ABAC). OAuth 2.0: Authorization framework (not authentication). Roles: Resource Owner, Client, Authorization Server, Resource Server. Flows: Authorization Code (web apps), Implicit (deprecated), Client Credentials (server-to-server), Device Code. OpenID Connect adds identity layer on OAuth 2.0 for authentication (ID tokens, UserInfo endpoint). Government uses OIDC for single sign-on.
I18
Describe your approach to handling a major cybersecurity incident in a government system.
✔ Model Answer
Incident Response (NIST framework): 1. Preparation: IR plan, SIEM, IDS/IPS, backups. 2. Identification: Detect via alerts, anomaly detection; classify severity. 3. Containment: Isolate affected systems; preserve evidence. 4. Eradication: Remove malware, patch vulnerabilities, revoke compromised credentials. 5. Recovery: Restore from clean backups; monitor closely. 6. Post-Incident: Root cause analysis, report to CERT-In within 6 hours (IT Act mandate), update security controls. Escalate to NIC-CERT and NCIIPC for critical infrastructure.
I19
What is dynamic programming? Explain with an example.
✔ Model Answer
DP: optimization technique for problems with overlapping subproblems and optimal substructure. Avoids recomputation by storing results (memoization/tabulation). Example — 0/1 Knapsack: dp[i][w] = max value using first i items with weight capacity w. Recurrence: dp[i][w] = max(dp[i-1][w], val[i] + dp[i-1][w-wt[i]]). O(nW) complexity. Other examples: Longest Common Subsequence, Matrix Chain Multiplication, Shortest Path (Bellman-Ford), Floyd-Warshall, Coin Change.
I20
How do you ensure high availability and disaster recovery for a critical government portal?
✔ Model Answer
High Availability: Active-Active or Active-Passive clustering; load balancers (NGINX/HAProxy); database replication (master-slave, master-master); auto-scaling; health checks. DR Strategy: Define RTO (Recovery Time Objective) and RPO (Recovery Point Objective). Active-Passive DC failover; regular backup testing; geo-redundant data centres (NIC operates SDCs). NIC approach: NIC-SDC at primary + DR site; MeghRaj cloud redundancy; 99.9%+ SLA; regular VAPT; BCP (Business Continuity Plan) drills.
I21
Explain Ethernet CSMA/CD and how it handles collisions.
✔ Model Answer
CSMA/CD (Carrier Sense Multiple Access with Collision Detection): 1. Carrier Sense: Listen before transmit. 2. Multiple Access: Multiple stations share medium. 3. Collision Detection: If two transmit simultaneously, collision detected; jam signal sent. 4. Backoff: Binary exponential backoff — wait random time (0 to 2ᵏ-1 slots, k = attempt number). CSMA/CD used in half-duplex 10/100 Mbps Ethernet. Modern full-duplex switched Ethernet eliminates collisions entirely (no CD needed).
I22
What is the role of AI and Machine Learning in e-Governance? Give examples.
✔ Model Answer
AI/ML transforms e-Governance by improving efficiency, personalization, and decision-making. Examples: Chatbots: citizen query resolution (UMANG, MyGov). NLP: document processing, RTI automation, grievance categorization. Computer Vision: facial recognition (UIDAI), satellite image analysis for agriculture. Predictive Analytics: crime prediction (police), disease outbreak forecasting. Fraud Detection: GST/income tax evasion. NIC AI: NIC has developed AI frameworks under Digital India for government departments. NITI Aayog’s National AI Strategy guides adoption.
I23
Explain the concept of concurrency control in databases and the two-phase locking protocol.
✔ Model Answer
Concurrency control ensures correct results when multiple transactions execute simultaneously. Problems: dirty read, lost update, non-repeatable read, phantom read. 2PL: Growing phase — acquire locks; Shrinking phase — release locks; can only release after obtaining all needed locks. Guarantees serializability but may cause deadlocks. Strict 2PL: Holds all exclusive locks until commit (prevents dirty reads). Other methods: Timestamp ordering, MVCC (used in PostgreSQL — readers don’t block writers).
I24
How would you optimize a slow database query? Walk through your process.
✔ Model Answer
1. EXPLAIN/ANALYZE: Check query execution plan for full table scans. 2. Indexing: Add indexes on WHERE/JOIN/ORDER BY columns; avoid over-indexing. 3. Query rewrite: Avoid SELECT *, N+1 queries, unnecessary subqueries; use JOINs correctly. 4. Partitioning: Horizontal/vertical partitioning for large tables. 5. Caching: Query cache, Redis/Memcached for repeated queries. 6. Normalization/Denormalization: Denormalize for read-heavy queries. 7. Connection pooling: Reduce connection overhead. 8. Hardware: SSD, more RAM for buffer pool.
I25
What is the Personal Data Protection Bill/DPDP Act in India and how does it affect software systems?
✔ Model Answer
The Digital Personal Data Protection Act 2023 (DPDP) governs processing of digital personal data in India. Key provisions: Consent: Explicit, informed consent required. Data Principals: Rights — access, correction, erasure, grievance redress. Data Fiduciaries: Obligations — purpose limitation, data minimization, security safeguards, breach notification (72 hrs to DPBI). Significant Fiduciaries: Additional obligations (DPIA, audits). Cross-border data transfers regulated. Impact on systems: Consent management modules, data retention policies, audit trails, encryption at rest/transit, privacy by design.
I26
Explain cache coherence and cache replacement policies (LRU, LFU, FIFO).
✔ Model Answer
Cache Coherence: In multiprocessor systems, ensures all CPUs see consistent data. Protocols: MSI, MESI (Modified-Exclusive-Shared-Invalid). LRU (Least Recently Used): Evict the page not accessed for the longest time. Best approximates optimal but needs usage tracking. LFU (Least Frequently Used): Evict least accessed. Suffers from “cache pollution” for historical high-frequency items. FIFO: Evict oldest loaded page. Simple but can suffer Belady’s anomaly. Optimal: Evict page not needed for longest time in future (theoretical baseline).
I27
What is Zero Trust Architecture and why is it preferred for modern government networks?
✔ Model Answer
Zero Trust: “Never trust, always verify.” No implicit trust based on network location. Principles: 1. Verify identity (MFA, strong authentication). 2. Least-privilege access. 3. Assume breach — microsegmentation, encrypt all traffic. 4. Continuous monitoring and validation. vs. Perimeter Model: Traditional “castle-moat” fails against insider threats and lateral movement. ZTA addresses work-from-home, cloud, BYOD. Government relevance: sensitive data, nation-state threats, distributed workforce, supply chain attacks. NIST SP 800-207 defines ZTA framework.
I28
Why did you choose to apply to NIC? How do your skills align with NIC’s mission?
✔ Model Answer
Structure your answer: Motivation: NIC’s unique position at the intersection of technology and public service — developing systems used by hundreds of millions of citizens (CoWIN, GST, eSanjeevani). Impact at scale rarely achievable in private sector. Skill alignment: Match your expertise (e.g., distributed systems → NIC’s large-scale infrastructure; cybersecurity → NIC-CERT needs; cloud → MeghRaj expansion). Long-term vision: Contribute to Digital India, help bridge the digital divide, work on national critical infrastructure. Be specific about NIC projects you admire and how you’d contribute.
I29
Describe a situation where you resolved a critical technical issue under pressure.
✔ Model Answer (STAR Framework)
Situation: Describe a production outage or critical bug. Task: Your specific responsibility. Action: Systematic diagnosis (logs → metrics → traces); communicated with stakeholders; implemented fix; tested; deployed with rollback plan. Result: Quantify — “Resolved in 2 hours, restored service for X users, implemented monitoring to prevent recurrence.” Key traits to highlight: calm under pressure, structured debugging, team coordination, post-mortem culture, proactive prevention. Don’t exaggerate; authenticity matters.
I30
What emerging technologies should NIC adopt over the next 5 years to enhance e-Governance?
✔ Model Answer
Key technologies: 1. AI/GenAI: Intelligent chatbots (multilingual), automated document processing, predictive analytics. 2. Edge Computing: Low-latency processing at district/village level. 3. Quantum-safe Cryptography: Post-quantum algorithms (NIST PQC standards) before quantum computers break RSA. 4. 5G + IoT: Smart cities, precision agriculture, remote health monitoring. 5. Blockchain: Land records, academic certificates (tamper-proof). 6. Multi-cloud strategy: Avoid vendor lock-in; optimize cost/performance. 7. Zero Trust + SASE: Modern security for distributed government workforce.