Skip to main content

UGC NET Computer Science MCQs 2026: 50 Important Questions with Answers

UNIT 1 — Discrete Structures & Optimization

Q1.

Let p,q,rp,q,r be propositions. Which of the following is logically equivalent to

p(qr)p \rightarrow (q \rightarrow r)

?

A. (pq)r(p\land q)\rightarrow r
B. (pq)r(p\lor q)\rightarrow r
C. p(qr)p\rightarrow(q\land r)
D. (pq)r(p\rightarrow q)\rightarrow r

Answer: A

Explanation:

p(qr)¬p(¬qr)¬(pq)rp\rightarrow(q\rightarrow r) \equiv \neg p\lor(\neg q\lor r) \equiv \neg(p\land q)\lor r

Hence,

(pq)r(p\land q)\rightarrow r

Q2.

A connected undirected graph has exactly four vertices of odd degree. Which statement is necessarily true?

A. It has an Euler circuit
B. It has an Euler path but not an Euler circuit
C. It has neither an Euler path nor an Euler circuit
D. It must be a Hamiltonian graph

Answer: C

Explanation:
An undirected connected graph has an Euler path iff it has exactly 0 or 2 odd-degree vertices. Four odd-degree vertices means neither Euler path nor Euler circuit.


Q3.

A relation RR on a set AA is reflexive, antisymmetric and transitive. Then RR is:

A. Equivalence relation
B. Partial order relation
C. Total order relation
D. Symmetric relation

Answer: B


Q4.

Suppose a graph has chromatic number 3. Which of the following must be true?

A. It contains a triangle
B. It is not bipartite
C. Every vertex has degree at least 3
D. It contains an odd cycle of length 3

Answer: B

Explanation:
A graph is bipartite iff it is 2-colourable. Therefore a graph requiring 3 colours cannot be bipartite.

It need not contain a triangle; an odd cycle such as C5C_5 has chromatic number 3.


Q5.

In a linear programming problem, if the feasible region is non-empty and bounded, then:

A. An optimal solution cannot exist
B. An optimal solution always exists
C. Only an integer solution exists
D. The objective function must be constant

Answer: B


UNIT 2 — Computer System Architecture

Q6.

Consider a 32-bit processor with a cache having 2102^{10} cache lines. Each cache line contains 64 bytes. For a direct-mapped cache, the number of bits required for the index field is:

A. 6
B. 10
C. 16
D. 32

Answer: B

Explanation:
Number of cache lines:

2102^{10}

Therefore index bits = 10.


Q7.

Which memory technology normally requires periodic refreshing?

A. SRAM
B. DRAM
C. ROM
D. Flash memory

Answer: B


Q8.

Which of the following is not a characteristic of RISC architecture?

A. Large register set
B. Simple instructions
C. Fixed-length instructions are common
D. Large number of complex addressing modes

Answer: D


Q9.

A processor uses a 5-stage pipeline. If 100 instructions are executed and there are no stalls, the number of clock cycles required is:

A. 100
B. 104
C. 105
D. 500

Answer: B

For a kk-stage pipeline:

k+n1k+n-1 =5+1001=104=5+100-1=104

Q10.

Which addressing mode is particularly useful for accessing elements of an array?

A. Immediate
B. Register
C. Indexed
D. Implied

Answer: C


UNIT 3 — Programming Languages & Computer Graphics

Q11.

Which parameter-passing mechanism allows the called procedure to modify the caller's actual parameter directly?

A. Call by value
B. Call by reference
C. Call by name
D. Pass by result

Answer: B


Q12.

Consider the following C declaration:

int (*p)[10];

What does p represent?

A. Pointer to an integer
B. Array of 10 integer pointers
C. Pointer to an array of 10 integers
D. Function returning pointer to integer

Answer: C


Q13.

Which parsing technique is a bottom-up parsing technique?

A. Recursive descent
B. LL(1)
C. LR
D. Predictive parsing

Answer: C


Q14.

In computer graphics, homogeneous coordinates are primarily useful for:

A. Eliminating rasterization
B. Representing transformations such as translation using matrix multiplication
C. Increasing colour depth
D. Reducing image resolution

Answer: B


Q15.

Which transformation preserves both distances and angles?

A. Translation
B. Rotation
C. Scaling
D. Shearing

Answer: B

Note: Uniform scaling preserves angles but not distances, while rotation is a rigid transformation.


UNIT 4 — DBMS

Q16.

Consider relation:

R(A,B,C,D)R(A,B,C,D)

with functional dependencies:

AB,BC,CDA\rightarrow B,\quad B\rightarrow C,\quad C\rightarrow D

The candidate key is:

A. A
B. B
C. C
D. D

Answer: A

Because:

A+={A,B,C,D}A^+=\{A,B,C,D\}

Q17.

Which normal form specifically eliminates transitive dependency of non-prime attributes on candidate keys?

A. 1NF
B. 2NF
C. 3NF
D. 4NF

Answer: C


Q18.

Which SQL operation is primarily used to combine rows from two relations based on a matching condition?

A. UNION
B. JOIN
C. INTERSECT
D. DIFFERENCE

Answer: B


Q19.

Which concurrency-control protocol guarantees conflict serializability by imposing an ordering on transactions?

A. Timestamp ordering
B. Two-phase locking
C. Both A and B
D. Deadlock prevention only

Answer: C


Q20.

In a B+ tree:

A. Records are stored only in internal nodes
B. Records/data pointers are generally stored at leaf nodes
C. Leaf nodes cannot be linked
D. Internal nodes always contain complete records

Answer: B


UNIT 5 — System Software & Operating System

Q21.

Which scheduling algorithm can suffer from the convoy effect?

A. Round Robin
B. FCFS
C. SRTF
D. Priority scheduling only

Answer: B


Q22.

Consider three processes:

ProcessArrivalBurst
P108
P214
P322

Under non-preemptive FCFS, the average waiting time is:

A. 3.67
B. 4.33
C. 5.67
D. 6.00

Answer: B

Execution:

P1: 0–8
P2: 8–12
P3: 12–14

Waiting times:

P1 = 0
P2 = 7
P3 = 10

Average=0+7+103=5.67Average=\frac{0+7+10}{3}=5.67

Correction: Therefore the correct answer is C.

This is exactly the kind of calculation where careless reading produces a wrong answer.

Answer: C


Q23.

Which condition is not one of Coffman's necessary conditions for deadlock?

A. Mutual exclusion
B. Hold and wait
C. Circular wait
D. Starvation

Answer: D


Q24.

A page fault occurs when:

A. A page is present in the TLB
B. A referenced page is not currently in main memory
C. The CPU cache misses
D. The process terminates

Answer: B


Q25.

Which page replacement algorithm can exhibit Belady's anomaly?

A. LRU
B. Optimal
C. FIFO
D. MRU

Answer: C


UNIT 6 — Software Engineering

Q26.

Which software development model is most appropriate when requirements are expected to evolve through repeated customer feedback?

A. Pure Waterfall
B. Iterative/Incremental model
C. Big Bang model
D. Code-and-Fix model

Answer: B


Q27.

If a module has high cohesion and low coupling, it generally indicates:

A. Poor modularity
B. Good software design
C. High maintenance cost
D. Strong dependency between modules

Answer: B


Q28.

Which testing technique examines the internal logic and structure of the program?

A. Black-box testing
B. White-box testing
C. Acceptance testing
D. Beta testing

Answer: B


Q29.

A software system has 5 modules. If every module directly communicates with every other module, the number of communication links is:

A. 5
B. 10
C. 15
D. 20

Answer: B

5(51)2=10\frac{5(5-1)}{2}=10

This illustrates why excessive coupling becomes problematic as system size increases.


Q30.

Which metric is directly associated with the number of independent paths in a program's control-flow graph?

A. Function point
B. Cyclomatic complexity
C. Halstead length
D. LOC

Answer: B


UNIT 7 — Computer Networks

Q31.

Which protocol is primarily responsible for reliable, connection-oriented transport?

A. IP
B. UDP
C. TCP
D. ARP

Answer: C


Q32.

A network uses IPv4 address:

192.168.10.0/26192.168.10.0/26

How many usable host addresses are available per subnet?

A. 62
B. 64
C. 126
D. 254

Answer: A

Host bits:

3226=632-26=6

Total addresses:

26=642^6=64

Usable:

642=6264-2=62

Q33.

Which protocol resolves an IPv4 address into a MAC address on a local network?

A. DNS
B. ARP
C. DHCP
D. ICMP

Answer: B


Q34.

Which routing algorithm is associated with the distance-vector approach?

A. Dijkstra
B. Bellman-Ford
C. Prim
D. Kruskal

Answer: B


Q35.

Which statement about UDP is correct?

A. It guarantees ordered delivery
B. It provides congestion control
C. It is connectionless
D. It retransmits lost packets automatically

Answer: C


UNIT 8 — Theory of Computation

Q36.

Which class of languages is accepted by a finite automaton?

A. Context-sensitive languages
B. Context-free languages
C. Regular languages
D. Recursively enumerable languages

Answer: C


Q37.

Which of the following is not closed under regular languages?

A. Union
B. Intersection
C. Complement
D. None of the above

Answer: D

Regular languages are closed under all three.


Q38.

Which machine is equivalent in computational power to a deterministic finite automaton?

A. Pushdown automaton
B. NFA
C. Turing machine
D. Linear bounded automaton

Answer: B


Q39.

The language

L={anbnn0}L=\{a^n b^n\mid n\geq0\}

is:

A. Regular
B. Context-free but not regular
C. Context-sensitive but not context-free
D. Not recursively enumerable

Answer: B


Q40.

Which problem is known to be undecidable?

A. DFA membership
B. CFG membership
C. Turing machine halting problem
D. Regular expression matching

Answer: C


UNIT 9 — Artificial Intelligence

Q41.

Which search algorithm is guaranteed to find an optimal solution when the heuristic is admissible and appropriate conditions hold?

A. DFS
B. Greedy best-first search
C. A*
D. Hill climbing

Answer: C


Q42.

A heuristic h(n)h(n) is admissible if:

A. It always overestimates the true cost
B. It never overestimates the true cost
C. It is always zero
D. It equals the exact cost for every node

Answer: B


Q43.

Which learning paradigm uses labelled training examples?

A. Unsupervised learning
B. Reinforcement learning
C. Supervised learning
D. Self-organizing learning

Answer: C


Q44.

Which activation function is most commonly associated with the vanishing-gradient problem in deep networks?

A. ReLU
B. Sigmoid
C. Linear
D. Step

Answer: B


Q45.

In a minimax game tree, an optimal MAX player attempts to:

A. Minimize its utility
B. Maximize its utility assuming the opponent also plays optimally
C. Randomly select a move
D. Always choose the shallowest node

Answer: B


UNIT 10 — Data Mining, Big Data & Emerging Technologies

Q46.

In association-rule mining, support of XYX\rightarrow Y is:

A. P(YX)P(Y|X)
B. P(XY)P(X\cup Y)
C. P(X)/P(Y)P(X)/P(Y)
D. P(XY)P(X-Y)

Answer: B


Q47.

If:

support(XY)=0.30support(X\cup Y)=0.30

and

support(X)=0.50support(X)=0.50

then the confidence of XYX\rightarrow Y is:

A. 0.15
B. 0.30
C. 0.60
D. 0.80

Answer: C

Confidence=support(XY)support(X)Confidence=\frac{support(X\cup Y)}{support(X)} =0.300.50=0.60












Q48.  

Which characteristic is not traditionally included among the three Vs of Big Data?

A. Volume
B. Velocity
C. Variety
D. Verification

Answer: D


Q49.

Which technique is primarily used to reduce the dimensionality of a dataset while preserving maximum variance?

A. K-means
B. PCA
C. Apriori
D. Naive Bayes

Answer: B

Q50.

Consider the following statements about machine learning:

S1: Increasing model complexity can reduce training error.

S2: Increasing model complexity always reduces test error.

S3: Overfitting occurs when a model captures noise/specificities of training data and performs poorly on unseen data.

Which is correct?

A. S1 only
B. S1 and S2 only
C. S1 and S3 only
D. S1, S2 and S3

Answer: C

S2 is false because increasing complexity can eventually increase generalization/test error

Comments

Popular posts from this blog

Top 5 Safe Chat Apps for Kids with Parental Controls

Now a days kids are growing up with technology at their fingertips. While communication apps help children stay connected with family and friends, safety remains a top concern for parents. Unregulated platforms can expose children to inappropriate content, online predators, and cyberbullying. That’s why choosing a kid-friendly chat app with parental controls is essential. To help parents find the best options, we’ve compiled a list of the top five safest chat apps for kids that offer safe and controlled environment. 1. Messenger Kids (By Meta) Best for: Safe video calls and text messaging with parental supervision Features: Parents approve all contacts No ads or in-app purchases Fun filters, stickers, and games Monitored messaging and activity reports Why It’s Safe: Messenger Kids is designed for children under 13 and requires parental approval for every contact. Parents can monitor chats and control screen time through the Parent Dashboard. Download Messenger Kids 2...

10 Distance Vector and Link-State Routing MCQ

  10 multiple-choice questions  on  Distance Vector and Link-State Routing with explanations, useful for  UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Basic Concept of Distance Vector Routing Q1: In a distance vector routing protocol, how do routers share routing information? A) By flooding the entire network with routing updates B) By periodically exchanging routing tables with their immediate neighbors C) By using a link-state database to determine the shortest path D) By dynamically updating paths based on link failure reports Answer: B) By periodically exchanging routing tables with their immediate neighbors Explanation: In Distance Vector Routing, routers share their routing tables with neighbors at regular intervals, leading to a simple but slow convergence mechanism. Question 2: Example of Distance Vector Routing Protocol Q2: Which of the following is an example of a Distance Vector routing protocol? A) OSPF ...

10 Routing Protocol MCQ

10 multiple-choice questions on Routing protocol s  with explanations, useful for UGC NET, SET, GATE, ISRO, and other competitive exams . Question 1: Purpose of Routing Protocols Q1: What is the primary purpose of a routing protocol? A) To assign IP addresses to devices B) To determine the best path for data packets to reach their destination C) To encrypt data during transmission D) To physically connect different networks Answer: B) To determine the best path for data packets to reach their destination Explanation: Routing protocols help routers determine the most efficient path for data transmission across a network, ensuring fast and reliable communication. Question 2: Classification of Routing Protocols Q2: Routing protocols can be broadly classified into which two main categories? A) TCP and UDP B) Distance Vector and Link-State C) IPv4 and IPv6 D) Static and Dynamic Answer: B) Distance Vector and Link-State Explanation: Routing prot...