The complete UGC NET November 2021 question paper for Computer Science & Applications, covering Paper 1 (General Aptitude) and Paper 2 (Computer Science & Applications). Every question below is shown with its options and the correct answer, and a detailed explanation you can unlock by signing in. All 150 questions are free to practise.
| Exam | UGC NET November 2021 |
|---|---|
| Papers | Paper 1 (General Aptitude) and Paper 2 (Computer Science & Applications) |
| Exam date(s) | November 26, 2021 |
| Shift(s) | Shift 2 |
| Paper 1 questions | 50 questions · 60 minutes · 100 marks |
| Paper 2 questions | 100 questions · 120 minutes · 200 marks |
| Total | 150 questions |
| Marking scheme | +2 per correct answer · No negative marking |
UGC NET November 2021 · Computer Science & Applications sitting
UGC NET November 2021
50 questions with the answer key and explanations.
What is the difference between the average semester fees of BCA and average semester fees of MCA during 2016-2020?
Study the table of semester fees for four courses during 2016-2020.
| Year | BCA | MCA | MTech | MPhil |
|---|---|---|---|---|
| 2016 | 25,000 | 52,000 | 60,200 | 30,000 |
| 2017 | 26,500 | 53,500 | 61,400 | 32,000 |
| 2018 | 27,200 | 54,200 | 62,500 | 32,600 |
| 2019 | 27,600 | 55,700 | 62,900 | 33,400 |
| 2020 | 28,000 | 56,800 | 63,700 | 33,900 |
Answer: (C) 27,580
Explanation
Which course has the highest percentage fee increase from 2019 to 2020?
Study the table of semester fees for four courses during 2016-2020.
| Year | BCA | MCA | MTech | MPhil |
|---|---|---|---|---|
| 2016 | 25,000 | 52,000 | 60,200 | 30,000 |
| 2017 | 26,500 | 53,500 | 61,400 | 32,000 |
| 2018 | 27,200 | 54,200 | 62,500 | 32,600 |
| 2019 | 27,600 | 55,700 | 62,900 | 33,400 |
| 2020 | 28,000 | 56,800 | 63,700 | 33,900 |
Answer: (B) MCA
Explanation
Which course has the lowest percentage fee increase from 2017 to 2018?
Study the table of semester fees for four courses during 2016-2020.
| Year | BCA | MCA | MTech | MPhil |
|---|---|---|---|---|
| 2016 | 25,000 | 52,000 | 60,200 | 30,000 |
| 2017 | 26,500 | 53,500 | 61,400 | 32,000 |
| 2018 | 27,200 | 54,200 | 62,500 | 32,600 |
| 2019 | 27,600 | 55,700 | 62,900 | 33,400 |
| 2020 | 28,000 | 56,800 | 63,700 | 33,900 |
Answer: (B) MCA
Explanation
Find out the difference between total semester fees (for all courses) of 2018 and 2019.
Study the table of semester fees for four courses during 2016-2020.
| Year | BCA | MCA | MTech | MPhil |
|---|---|---|---|---|
| 2016 | 25,000 | 52,000 | 60,200 | 30,000 |
| 2017 | 26,500 | 53,500 | 61,400 | 32,000 |
| 2018 | 27,200 | 54,200 | 62,500 | 32,600 |
| 2019 | 27,600 | 55,700 | 62,900 | 33,400 |
| 2020 | 28,000 | 56,800 | 63,700 | 33,900 |
Answer: (D) 3,100
Explanation
Find out the average of difference of fees of MCA and MTech for 2016-2020.
Study the table of semester fees for four courses during 2016-2020.
| Year | BCA | MCA | MTech | MPhil |
|---|---|---|---|---|
| 2016 | 25,000 | 52,000 | 60,200 | 30,000 |
| 2017 | 26,500 | 53,500 | 61,400 | 32,000 |
| 2018 | 27,200 | 54,200 | 62,500 | 32,600 |
| 2019 | 27,600 | 55,700 | 62,900 | 33,400 |
| 2020 | 28,000 | 56,800 | 63,700 | 33,900 |
Answer: (A) 7,700
Explanation
The web portal of SWAYAM Prabha is maintained by:
Answer: (D) INFLIBNET Centre
Explanation
The National Repository of Open Educational Resources is managed by:
Answer: (C) Central Institute of Educational Technology, NCERT
Explanation
Given below are two statements.
Statement I: The ability to form and use symbols (words, gestures, signs, images, and so on) is accomplished in the preoperational period.
Statement II: According to Piaget, preoperational children do not have a tendency to be egocentric. In light of the above statements, choose the most appropriate answer.
Answer: (C) Statement I is correct but Statement II is incorrect
Explanation
SWAYAM platform was developed by:
A. MHRD (now Ministry of Education), Government of India
B. Google
C. Microsoft
D. IIT, Delhi
E. Adobe Inc. Choose the correct answer from the options given below.
Answer: (A) A and B only
Explanation
Match List I with List II.
| List I | List II |
|---|---|
| A. Coursera | I. Anant Agarwal |
| B. Udacity | II. Salman Khan |
| C. edX | III. Andrew Ng, Daphne Koller |
| D. Khan Academy | IV. Sebastian Thrun |
Answer: (B) A-III, B-IV, C-I, D-II
Explanation
If a researcher has to test a hypothesis whether the difference between the means of two groups is significant, she/he will use:
Answer: (D) Student's t-test
Explanation
Which of the following are the stages of meta analysis?
A. Understand the literature
B. Conduct new studies to fill the gap
C. Develop inclusion and exclusion criteria of the study
D. Locating primary studies
E. Identify secondary data Choose the correct answer from the options given below.
Answer: (C) A, C and D only
Explanation
Given below are two statements.
Statement I: Parametric statistics are more powerful than non-parametric statistics.
Statement II: Parametric statistics are assumption-free statistics. In light of the above statements, choose the correct answer.
Answer: (C) Statement I is true but Statement II is false
Explanation
Which of the following methods is commonly used in anthropological research?
Answer: (D) Ethnographic method
Explanation
Given below are two statements.
Statement I: Exploratory studies mainly aim at developing hypotheses or questions for further research.
Statement II: The goal of formal study is to test the hypotheses or answer the questions posed. In light of the above statements, choose the correct answer.
Answer: (A) Both Statement I and Statement II are true
Explanation
In communication, entropy refers to:
Answer: (B) Unpredictable message
Explanation
Keeping quiet because of fear of punishment in communication is an _________ barrier.
Answer: (D) Individual
Explanation
A general code of conduct circulated among the employees of an institution is an example of:
Answer: (A) Downward communication
Explanation
What is a blog?
Answer: (C) Personal website in the form of a journal
Explanation
Assertion (A): Teachers should accept students as they are and with whatever cognitive level they have.
Reason (R): Moralizing, being judgemental, and exposing ignorance are barriers to successful communication. In light of the above statements, choose the correct answer.
Answer: (A) Both A and R are true and R is the correct explanation of A
Explanation
Which one of the following fractions is the largest?
Answer: (D) 67/80
Explanation
Find the next two terms in the series. A, D, H, M, ___, ___
Answer: (C) S, Z
Explanation
The ages of Swati and Manisha are in the ratio of 5:6 and the sum of their ages is 55 years. What will be the ratio of their ages after 5 years?
Answer: (A) 6:7
Explanation
Given below are two statements.
Statement I: A vehicle's speed of 30.6 km/hr is the same as 5.8 m/s.
Statement II: The speed of a bus is 72 km/hr. The distance covered by the bus in 10 seconds is 100 metre. In light of the above statements, choose the correct answer.
Answer: (B) Both Statement I and Statement II are false
Explanation
The average of ten numbers is 11. If each number is multiplied by 7, then the average of the new set of numbers is:
Answer: (C) 77
Explanation
Which of the following statements correctly apply to deductive arguments?
A. Deductive arguments are either valid or invalid.
B. There must be a necessary relation between the premises and the conclusion.
C. Adding new premises improves the validity.
D. False premises may lead to a true conclusion. Choose the correct answer from the options given below.
Answer: (B) A, B and D only
Explanation
Identify the fallacy committed in the argument: Since no tragic actors are idiots and some comedians are not idiots, so some comedians are not tragic actors.
Answer: (D) Fallacy of Exclusive Premises
Explanation
"No one has been able to prove the existence of extrasensory perception. We must therefore conclude that extrasensory perception is a myth." Which of the following fallacies is committed in this argument?
Answer: (A) Appeal to ignorance
Explanation
Which one of the following statements is true with reference to Sāmānyatodṛṣṭā inference?
Answer: (C) The middle term is related to the major term neither as a cause nor as an effect
Explanation
Given below are two statements.
Statement I: According to Nyāya, universals are eternal entities which are distinct from, but inhere in many individuals.
Statement II: The universal is the basis of the notion of sameness that we have with regard to all the individuals of a certain class. In light of the above statements, choose the correct answer.
Answer: (A) Both Statement I and Statement II are true
Explanation
Which one of the following is a type of malware embedded in a program on a computer that will set off a malicious function when certain conditions are met?
Answer: (D) Logic Bomb
Explanation
Which memory is used as part of the processor?
Answer: (C) Registers
Explanation
Given below are two statements.
Statement I: The MAC address identifies which device is connected at a given IP address.
Statement II: MAC addresses are unique to each device. In light of the above statements, choose the correct answer.
Answer: (A) Both Statement I and Statement II are true
Explanation
Following are some statements regarding most of the web browsers. Choose the correct statements.
A. They have a home page.
B. They do not have the ability to store users' favourite pages.
C. They have hyperlinks to allow users to navigate.
D. They do not keep a history of websites visited by the users. Choose the correct answer from the options given below.
Answer: (A) A and C only
Explanation
Match the memory types in List I with their underlying technology in List II.
| List I | List II |
|---|---|
| A. Dynamic Random Access Memory (DRAM) | I. Flip-flops |
| B. Static Random Access Memory (SRAM) | II. Floating gate transistors and capacitors |
| C. Programmable Read Only Memory (PROM) | III. Transistors and capacitors |
| D. Erasable Programmable Read Only Memory (EPROM) | IV. Matrix of fuses |
Answer: (A) A-III, B-I, C-IV, D-II
Explanation
Which one of the following Millennium Development Goals is about ensuring Environmental Sustainability?
Answer: (D) Goal-7
Explanation
The air pollutant NOx is a combination of:
Answer: (C) Nitrogen dioxide and Nitric oxide
Explanation
Assertion (A): Schistosomiasis is a polluted water-borne disease.
Reason (R): Schistosomiasis is mainly caused due to the presence of sulphate in water. In light of the above statements, choose the correct answer.
Answer: (C) A is true but R is false
Explanation
Article 48A of the Indian Constitution directs the states to ensure the protection and improvement of:
Answer: (B) Environment
Explanation
Which of the following states has maximum wind power potential in India as per MNRE's latest report?
Answer: (D) Gujarat
Explanation
NSQF will be aligned with International Standard Classification of Occupations maintained by:
Answer: (A) ILO
Explanation
SARTHAQ is:
Answer: (B) Implementation plan for NEP-2020
Explanation
Given below are two statements.
Statement I: The National Knowledge Commission recommended opening 500 universities to enable India to attain a Gross Enrolment Ratio of at least 20% by 2015.
Statement II: The need to establish an Independent Regulatory Authority for Higher Education (IRAHE) was recommended by the National Knowledge Commission. In light of the above statements, choose the most appropriate answer.
Answer: (D) Statement I is incorrect but Statement II is correct
Explanation
Which of the following statement(s) do NOT hold true with respect to Vocational Education as per NEP-2020?
A. B.Voc degrees introduced in 2013 will be discontinued.
B. Lok Vidya courses will replace existing vocational courses.
C. Focus areas for vocational education will be chosen on skills gap analysis without mapping local opportunities.
D. National Committee for Integration of Vocational Education will be constituted.
E. Vocational education will be integrated into all schools and higher education institutions in a phased manner over the next decade. Choose the correct answer from the options given below.
Answer: (A) A, B and C only
Explanation
Match the historical learning centres in List I with their associated traditions or fields in List II.
| List I | List II |
|---|---|
| A. Taxila | I. Tantrik teachings |
| B. Ujjain | II. Dvaita school of thought |
| C. Vikramshila | III. Medicine |
| D. Manyakheta | IV. Astronomy |
Answer: (C) A-III, B-IV, C-I, D-II
Explanation
What is the focus of this text?
Assessment is central to almost all forms of education around the world, and in recent years, a wider variety of assessment has tended to be used. One such form is peer and self-assessment. Self-assessment is the ability to critically assess one's own work. Peer assessment is making judgments about, or commenting upon, each other's work. Both have strengths and weaknesses. With careful initiation and moderation, they can be effective. However, the author argues that in the high-stakes environments of most educational settings, these methods are inappropriate because marking is unreliable.
Peer and self-assessment have become increasingly common, particularly in further and higher education. They can reduce teachers' marking loads and enhance group work and students' critical-thinking skills. If marking criteria are discussed and agreed at the start, students' marks tend to be similar to teachers' marks. With suitable initial training, work marked by a student may not differ from work marked by a teacher.
Answer: (D) Peer and Self-assessment
Explanation
What benefits accrue from self-assessment and peer-assessment of students?
Assessment is central to almost all forms of education around the world, and in recent years, a wider variety of assessment has tended to be used. One such form is peer and self-assessment. Self-assessment is the ability to critically assess one's own work. Peer assessment is making judgments about, or commenting upon, each other's work. Both have strengths and weaknesses. With careful initiation and moderation, they can be effective. However, the author argues that in the high-stakes environments of most educational settings, these methods are inappropriate because marking is unreliable.
Peer and self-assessment have become increasingly common, particularly in further and higher education. They can reduce teachers' marking loads and enhance group work and students' critical-thinking skills. If marking criteria are discussed and agreed at the start, students' marks tend to be similar to teachers' marks. With suitable initial training, work marked by a student may not differ from work marked by a teacher.
Answer: (B) Enhancement of group work and critical thinking of students
Explanation
What argument does the author seek to make?
Assessment is central to almost all forms of education around the world, and in recent years, a wider variety of assessment has tended to be used. One such form is peer and self-assessment. Self-assessment is the ability to critically assess one's own work. Peer assessment is making judgments about, or commenting upon, each other's work. Both have strengths and weaknesses. With careful initiation and moderation, they can be effective. However, the author argues that in the high-stakes environments of most educational settings, these methods are inappropriate because marking is unreliable.
Peer and self-assessment have become increasingly common, particularly in further and higher education. They can reduce teachers' marking loads and enhance group work and students' critical-thinking skills. If marking criteria are discussed and agreed at the start, students' marks tend to be similar to teachers' marks. With suitable initial training, work marked by a student may not differ from work marked by a teacher.
Accepted answers: (A) Self-assessment and peer-assessment are innovative assessment practices, (B) Assessment is central to education, (C) Peer and self-assessments are inappropriate in high-stakes examinations, (D) Peer assessment is common in higher education
Explanation
Which one of the following captures the meaning of "Assessment is central to almost all forms of education"?
Assessment is central to almost all forms of education around the world, and in recent years, a wider variety of assessment has tended to be used. One such form is peer and self-assessment. Self-assessment is the ability to critically assess one's own work. Peer assessment is making judgments about, or commenting upon, each other's work. Both have strengths and weaknesses. With careful initiation and moderation, they can be effective. However, the author argues that in the high-stakes environments of most educational settings, these methods are inappropriate because marking is unreliable.
Peer and self-assessment have become increasingly common, particularly in further and higher education. They can reduce teachers' marking loads and enhance group work and students' critical-thinking skills. If marking criteria are discussed and agreed at the start, students' marks tend to be similar to teachers' marks. With suitable initial training, work marked by a student may not differ from work marked by a teacher.
Answer: (A) Assessment is pivotal to education in all forms
Explanation
"Students' marking does not differ significantly from teachers", means:
Assessment is central to almost all forms of education around the world, and in recent years, a wider variety of assessment has tended to be used. One such form is peer and self-assessment. Self-assessment is the ability to critically assess one's own work. Peer assessment is making judgments about, or commenting upon, each other's work. Both have strengths and weaknesses. With careful initiation and moderation, they can be effective. However, the author argues that in the high-stakes environments of most educational settings, these methods are inappropriate because marking is unreliable.
Peer and self-assessment have become increasingly common, particularly in further and higher education. They can reduce teachers' marking loads and enhance group work and students' critical-thinking skills. If marking criteria are discussed and agreed at the start, students' marks tend to be similar to teachers' marks. With suitable initial training, work marked by a student may not differ from work marked by a teacher.
Answer: (C) Marks that are almost similar
Explanation
100 questions with the answer key and explanations.
It is always important and useful to include an 'alt' attribute on an 'img' tag in HTML. Which of the reasons given below is/are correct?
A. Users who cannot see the image due to vision impairment can be given a textual description that a screen reader speaks aloud.
B. If the image fails to load (slow connection, broken path, etc.), the alt text is displayed instead.
C. It gives SEO (Search Engine Optimization) benefits.
Choose the correct answer from the options given below:
Answer: (D) A, B, and C
Explanation
What does the following function f() in C return?
int f(unsigned int N) {
unsigned int counter = 0;
while (N > 0) {
counter += N & 1;
N = N >> 1;
}
return counter == 1;
}
Answer: (B) 1 if N is a power of 2, otherwise 0
Explanation
Consider the following recursive function F() in Java that takes an integer and returns a String:
public static String F(int N) {
if (N <= 0) return "-";
return F(N - 3) + N + F(N - 2) + N;
}
What is the value of F(5)?
Answer: (D) -2-25-3-1-135
Explanation
Match List-I (Programming Terms) with List-II (Meaning).
| List-I | List-II |
|---|---|
| A. JNDI | I. Runtime support for running a Java program |
| B. RMI | II. The API in support of naming and directory services |
| C. JDK | III. The methods and runtime support for calling remote methods |
| D. JRE | IV. The compiler and class libraries to develop Java applications |
Answer: (A) A-II, B-III, C-IV, D-I
Explanation
Match List-I (Programming Paradigms) with List-II (Characteristics).
| List-I | List-II |
|---|---|
| A. Imperative | I. Declarative, clausal representation, theorem proving |
| B. Object-oriented | II. Side-effect-free, declarative, expression evaluation |
| C. Logic | III. Imperative, abstract data type |
| D. Functional | IV. Command-based, procedural |
Answer: (A) A-IV, B-III, C-I, D-II
Explanation
You have eight black-and-white images taken with a 1-megapixel camera and one 8-colour image taken with an 8-megapixel camera. How much disk space in total is needed to store these images?
Answer: (B) 4 MB
Explanation
The midpoint (Bresenham) algorithm for rasterizing lines is optimized relative to the DDA algorithm in that:
A. It avoids round-off operations.
B. It is incremental.
C. It uses only integer arithmetic.
D. All straight lines can be displayed as exactly straight.
Choose the correct answer from the options given below:
Answer: (D) A, B, and C only
Explanation
Find the transformation matrix M that maps the square with vertices (1,1), (-1,1), (-1,-1), (1,-1) to the parallelogram with corresponding vertices (2,1), (0,1), (-2,-1), (0,-1).
Answer: (A) [[1, 1, 0], [0, 1, 0], [0, 0, 1]]
Explanation
A Bezier curve P(t) is defined by four control points in the xy-plane: P0 = (-2, 0), P1 = (-2, 4), P2 = (2, 4), P3 = (2, 0). Which statements are correct?
A. P(t) has degree 3.
B. P(1/2) = (0, 3).
C. P(t) may extend outside the convex hull of its control points.
Choose the correct answer from the options given below:
Answer: (A) A and B only
Explanation
Statement I: The maximum number of sides a triangle can have after being clipped to a rectangular viewport is 6.
Statement II: In 3D graphics, the perspective transformation is nonlinear in z.
In light of the above statements, choose the correct answer from the options given below:
Answer: (D) Statement I is false but Statement II is true
Explanation
In software testing, beta testing is the testing performed by ______.
Answer: (B) potential customers at their own locations
Explanation
In the MVC architectural pattern, the View component is responsible for:
Answer: (A) User interface
Explanation
In software engineering, what kind of notation do formal methods predominantly use?
Answer: (C) mathematical
Explanation
If every requirement stated in the Software Requirement Specification (SRS) has only one interpretation, then the SRS is said to be:
Answer: (C) unambiguous
Explanation
A system has 99.99% uptime and a mean-time-between-failure (MTBF) of 1 day. How quickly must the system repair itself to meet this availability goal?
Answer: (A) ~9 seconds
Explanation
In Software Configuration Management (SCM), which kinds of files should be committed to the source control repository?
A. Code files
B. Documentation files
C. Output files
D. Automatically generated files that are required for the system to be used
Choose the correct answer from the options given below:
Answer: (A) A and B only
Explanation
Match List-I (Software Process Model) with List-II (Description).
| List-I | List-II |
|---|---|
| A. Waterfall Model | I. Software can be developed incrementally |
| B. Evolutionary Model | II. Requirement compromises are inevitable |
| C. Component-based Software Engineering | III. Explicit recognition of risk |
| D. Spiral Development | IV. Inflexible partitioning of the project into stages |
Answer: (D) A-IV, B-I, C-II, D-III
Explanation
Identify the correct order (lower to higher) of the five levels of the Capability Maturity Model used to measure the maturity of an organisation's software process.
A. Defined
B. Optimizing
C. Initial
D. Managed
E. Repeatable
Choose the correct answer from the options given below:
Answer: (D) C, E, A, D, B
Explanation
Statement I: The Cleanroom software process model incorporates the statistical quality certification of code increments as they accumulate into a system.
Statement II: Cleanroom software engineering follows the classic analysis, design, code, test and debug cycle, focusing on defect removal rather than defect prevention.
In light of the above statements, choose the correct answer from the options given below:
Answer: (C) Statement I is true but Statement II is false
Explanation
Assertion (A): Software developers do not do exhaustive software testing in practice.
Reason (R): Even for small inputs, exhaustive testing is too computationally intensive (takes too long) to run all the tests.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both A and R are true and R is the correct explanation of A
Explanation
Which of the following pairs are logically equivalent?
A. not p -> (q -> r) and q -> (p OR r)
B. (p -> q) -> r and p -> (q -> r)
C. (p -> q) -> (r -> s) and (p -> r) -> (q -> s)
Choose the correct answer from the options given below:
Answer: (A) A only
Explanation
Which statements about the floor and ceiling functions are correct?
Statement I: floor(2x) = floor(x) + floor(x + 1/2) for every real number x.
Statement II: ceil(x + y) = ceil(x) + ceil(y) for all real numbers x and y.
Choose the correct answer from the options given below:
Answer: (C) Statement I is true but Statement II is false
Explanation
How many ways are there to assign 5 different jobs to 4 different employees if every employee is assigned at least one job?
Answer: (C) 240
Explanation
A warehouse stores products in bins identified by aisle, location within the aisle, and shelf. There are 50 aisles, 85 locations per aisle, and 5 shelves. What is the least number of products the company can have so that at least two products must be stored in the same bin?
Answer: (D) 21251
Explanation
A person climbing stairs can take either one stair or two stairs at a time. In how many ways can this person climb a flight of eight stairs?
Answer: (D) 34
Explanation
For which value of n is the wheel graph Wn regular?
Answer: (C) 4
Explanation
Which of the labelled graphs is/are planar?

Three undirected graphs labelled A, B and C.
Answer: (C) A only
Explanation
Match List-I (Identity) with List-II (Name).
| List-I | List-II |
|---|---|
| A. x + x = x | I. Identity Law |
| B. x + 0 = x | II. Absorption Law |
| C. x + 1 = 1 | III. Idempotent Law |
| D. x + xy = x | IV. Domination Law |
Answer: (C) A-III, B-I, C-IV, D-II
Explanation
Let (X, *) be a semigroup such that for every a and b in X, if a is not equal to b then a * b is not equal to b * a. Which of the following equalities hold?
A. a * a = a for every a in X.
B. a * b * a = a for every a, b in X.
C. a * b * c = a * c for every a, b, c in X.
Choose the correct answer from the options given below:
Answer: (D) A, B and C
Explanation
Consider the linear program: maximize Z = 6x + 5y subject to 2x - 3y <= 5, x + 3y <= 11, 4x + y <= 15, x >= 0, y >= 0. The optimal value of Z is:
Answer: (C) 31.72
Explanation
Which of the following languages are NOT regular?
A. L = { (01)^n 0^k : n > k, k >= 0 }
B. L = { c^n b^k a^(n+k) : n >= 0, k >= 0 }
C. L = { 0^n 1^k : n is not equal to k }
Choose the correct answer from the options given below:
Answer: (D) A, B and C
Explanation
Any string of terminals generated by the following context-free grammar (S is the start symbol):
S -> XY
X -> 0X | 1X | 0
Y -> Y0 | Y1 | 0
Answer: (D) has at least two 0's
Explanation
Let L1 = { 0^n 1^n 0^m : n >= 1, m >= 1 }, L2 = { 0^n 1^m 0^m : n >= 1, m >= 1 }, L3 = { 0^n 1^n 0^n : n >= 1 }. Which statements are correct?
A. L3 = L1 intersect L2
B. L1 and L2 are context-free languages but L3 is not.
C. L1 and L2 are not context-free but L3 is.
D. L1 is a subset of L3.
Choose the correct answer from the options given below:
Answer: (A) A and B only
Explanation
Statement I: The family of context-free languages is closed under homomorphism.
Statement II: The family of context-free languages is closed under reversal.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both Statement I and Statement II are true
Explanation
What is the minimum number of states in the finite automaton equivalent to the transition diagram shown?

State transition diagram of a finite automaton over input alphabet {0, 1} with start state a and accepting state c.
Answer: (C) 5
Explanation
Find a regular expression for the language accepted by the automaton shown.

A three-state finite automaton over {a, b} whose leftmost state is both the start state and the only accepting state.
Answer: (B) (a + b)ab(ab + bb + aa*(a + b)ab)*
Explanation
What language is accepted by the pushdown automaton M = ({q0, q1, q2}, {a, b}, {a, b, z}, delta, q0, z, {q2}) with the following transitions?
delta(q0, a, a) = {(q0, aa)} delta(q0, b, a) = {(q0, ba)}
delta(q0, a, b) = {(q0, ab)} delta(q0, b, b) = {(q0, bb)}
delta(q0, a, z) = {(q0, az)} delta(q0, b, z) = {(q0, bz)}
delta(q0, lambda, a) = {(q1, a)} delta(q0, lambda, b) = {(q1, b)}
delta(q1, a, a) = {(q1, lambda)} delta(q1, b, b) = {(q1, lambda)}
delta(q1, lambda, z) = {(q2, z)}
Answer: (D) L = { w w^R : w in {a, b}+ }
Explanation
Match List-I (Production Rules) with List-II (Grammar type).
| List-I | List-II |
|---|---|
| A. S -> XY; X -> 0; Y -> 1 | I. Greibach Normal Form |
| B. S -> aS | bSS | c | II. Context sensitive Grammar |
| C. S -> AB; A -> 0A | 1A | 0; B -> 0A | III. Chomsky Normal Form |
| D. S -> aAbc; Ab -> bA; Ac -> Bbcc; bB -> Bb; aB -> aa | aaA | IV. S-Grammar |
Answer: (C) A-III, B-IV, C-I, D-II
Explanation
Which of the following concepts can be used to identify loops?
A. Depth-first ordering
B. Dominators
C. Reducible graphs
Choose the correct answer from the options given below:
Answer: (D) A, B and C
Explanation
Statement I: LL(1) and LR are examples of bottom-up parsers.
Statement II: Recursive descent parser and SLR are examples of top-down parsers.
In light of the above statements, choose the correct answer from the options given below:
Answer: (B) Both Statement I and Statement II are false
Explanation
The postfix form of the infix expression ( A + B ) * ( C * D - E ) * F / G is:
Answer: (C) AB + CD*E - FG /
Explanation
A double-ended queue is to be implemented using only stacks (push and pop). What is the time complexity of AddFront() and AddRear(), where m is the stack size and n is the number of elements?
Answer: (B) O(1) and O(n)
Explanation
Two balanced binary search trees hold m and n elements respectively. They can be merged into one balanced binary search tree in ______ time.
Answer: (B) O(m + n)
Explanation
A data structure must store a set of integers so that each of the following runs in O(log n) time: delete the smallest element, and insert an element only if it is not already present. Which structure can be used?
Answer: (B) A balanced binary search tree can be used but not a heap
Explanation
Consider the graph shown. Which of the following vertex sequences are valid depth-first traversals of this graph?
I. a b e g h f
II. a b f e h g
III. a b f h g e
IV. a f g h b e

An undirected graph on vertices a, b, e, f, g and h.
Answer: (D) I, III, and IV only
Explanation
Statement I: In an undirected graph, the number of vertices of odd degree is even.
Statement II: In an undirected graph, the sum of the degrees of all vertices is even.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both Statement I and Statement II are true
Explanation
Give the increasing order of asymptotic growth of the functions f1, f2, f3, f4:
A. f1(n) = 2^n
B. f2(n) = n^(3/2)
C. f3(n) = n log n
D. f4(n) = n^(log n)
Choose the correct answer from the options given below:
Answer: (A) C, B, D, A
Explanation
The order of a leaf node in a B+ tree is the maximum number of (value, data-record-pointer) pairs it can hold. Given block size 1 KB (1024 bytes), data-record pointer 7 bytes, value field 9 bytes, and block pointer 6 bytes, what is the order of the leaf node?
Answer: (A) 63
Explanation
A hash function h(key) = key mod 7 with linear probing is used to insert the keys 44, 45, 79, 55, 91, 18, 63 into a table indexed 0 to 6. What is the final location of key 18?
Answer: (C) 5
Explanation
Match List-I (Standard graph algorithm) with List-II (Time complexity), where n and m are the numbers of vertices and edges.
| List-I | List-II |
|---|---|
| A. Bellman-Ford algorithm | I. O(m log n) |
| B. Kruskal algorithm | II. O(n^3) |
| C. Floyd-Warshall algorithm | III. O(n*m) |
| D. Topological sorting | IV. O(n + m) |
Answer: (A) A-III, B-I, C-II, D-IV
Explanation
Which type of agent deals with 'happy' and 'unhappy' states?
Answer: (A) Utility-based agent
Explanation
Statement I: Breadth-first search is optimal when all step costs are equal, whereas uniform-cost search is optimal for any step cost.
Statement II: When all step costs are the same, uniform-cost search expands more nodes at depth d than breadth-first search.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both Statement I and Statement II are true
Explanation
For the game tree shown, compute the value backed up to the root using the alpha-beta pruning algorithm.

A three-ply game tree: root A is a MAX node, B and C are MIN nodes, D to G are MAX nodes with leaf values 3, 5, 6, 9, 1, 2, 0, -1 from left to right.
Answer: (B) 5
Explanation
Which of the following statements is/are FALSE?
A. Greedy best-first search is not optimal but is often efficient.
B. A* is complete and optimal provided h(n) is admissible or consistent.
C. Recursive best-first search is efficient in time complexity but poor in space complexity.
D. h(n) = 0 is an admissible heuristic for the 8-puzzle.
Choose the correct answer from the options given below:
Answer: (C) C only
Explanation
'There is a country that borders both India and Pakistan.' Using Country(x) for 'x is a country' and Borders(x, y) for 'x and y share a border', which logical expression states this correctly?
Answer: (A) exists c: Country(c) AND Borders(c, India) AND Borders(c, Pakistan)
Explanation
From the joint distribution, the marginal probability P(cavity) is ______.
Consider a domain with three Boolean variables Toothache, Cavity and Catch. The full joint distribution is the 2 x 2 x 2 table below.
| Row | toothache, catch | toothache, not-catch | not-toothache, catch | not-toothache, not-catch |
|---|---|---|---|---|
| cavity | 0.108 | 0.012 | 0.072 | 0.008 |
| not-cavity | 0.016 | 0.064 | 0.144 | 0.576 |
Answer: (A) 0.200
Explanation
From the joint distribution, P(cavity | toothache) is ______.
Consider a domain with three Boolean variables Toothache, Cavity and Catch. The full joint distribution is the 2 x 2 x 2 table below.
| Row | toothache, catch | toothache, not-catch | not-toothache, catch | not-toothache, not-catch |
|---|---|---|---|---|
| cavity | 0.108 | 0.012 | 0.072 | 0.008 |
| not-cavity | 0.016 | 0.064 | 0.144 | 0.576 |
Answer: (B) 0.600
Explanation
From the joint distribution, P(toothache | cavity) is ______.
Consider a domain with three Boolean variables Toothache, Cavity and Catch. The full joint distribution is the 2 x 2 x 2 table below.
| Row | toothache, catch | toothache, not-catch | not-toothache, catch | not-toothache, not-catch |
|---|---|---|---|---|
| cavity | 0.108 | 0.012 | 0.072 | 0.008 |
| not-cavity | 0.016 | 0.064 | 0.144 | 0.576 |
Answer: (B) 0.600
Explanation
From the joint distribution, P(cavity OR toothache) is ______.
Consider a domain with three Boolean variables Toothache, Cavity and Catch. The full joint distribution is the 2 x 2 x 2 table below.
| Row | toothache, catch | toothache, not-catch | not-toothache, catch | not-toothache, not-catch |
|---|---|---|---|---|
| cavity | 0.108 | 0.012 | 0.072 | 0.008 |
| not-cavity | 0.016 | 0.064 | 0.144 | 0.576 |
Answer: (C) 0.280
Explanation
From the joint distribution, P(Cavity | toothache OR catch) is ______.
Consider a domain with three Boolean variables Toothache, Cavity and Catch. The full joint distribution is the 2 x 2 x 2 table below.
| Row | toothache, catch | toothache, not-catch | not-toothache, catch | not-toothache, not-catch |
|---|---|---|---|---|
| cavity | 0.108 | 0.012 | 0.072 | 0.008 |
| not-cavity | 0.016 | 0.064 | 0.144 | 0.576 |
Answer: (D) 0.4615
Explanation
Which DBMS component ensures that concurrent execution of multiple operations on the database results in a consistent database state?
Answer: (D) Transaction processing system
Explanation
Statement I: A relational database schema represents the logical design of the database.
Statement II: The current snapshot of a relation only provides the degree of the relation.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Statement I is TRUE but Statement II is FALSE
Explanation
A fixed-length record file is ordered on the key field and occupies B disk blocks to store R records. What is the average number of block accesses to find a record using binary search?
Answer: (D) log2(B)
Explanation
Given STUDENT(Rollno, Name, courseno) and COURSE(courseno, coursename, capacity), with coursename unique. Which of the queries below find the total number of students enrolled in each course together with its coursename?
-- Query A
SELECT coursename, count(*) 'total' FROM STUDENT NATURAL JOIN COURSE GROUP BY coursename;
-- Query B
SELECT C.coursename, count(*) 'total' FROM STUDENT S, COURSE C WHERE S.courseno = C.courseno GROUP BY coursename;
-- Query C
SELECT coursename, count(*) 'total' FROM COURSE C WHERE courseno IN (SELECT courseno FROM STUDENT);
Choose the correct answer from the options given below:
Answer: (A) A and B only
Explanation
STUDENT and COURSE each have 3 attributes; COURSE has 3 records and STUDENT has 5 records. The relational-algebra query R = STUDENT x COURSE is executed. Match List-I with List-II for R.
| List-I | List-II |
|---|---|
| A. Degree of table R | I. 15 |
| B. Cardinality of table R | II. NIL |
| C. Foreign key of relation STUDENT | III. 6 |
| D. Foreign key of relation COURSE | IV. Courseno |
Answer: (A) A-III, B-I, C-IV, D-II
Explanation
A B-tree indexes a database file. Search-key field = 10 bytes, block size = 1024 bytes, record pointer = 9 bytes, block pointer = 8 bytes. Let K be the order of an internal node and L the order of a leaf node. Then (K, L) = ______.
Answer: (A) (57, 53)
Explanation
Given R(x, y, z, w) with functional dependencies F = { x -> y, z -> w } and all attributes atomic.
A. R is in First Normal Form.
B. R is in Second Normal Form.
C. The primary key of R is xz.
Choose the correct answer from the options given below:
Answer: (C) A and C only
Explanation
A part is either manufactured in-house, purchased from an external supplier, or both. A batchnumber is kept for manufactured parts and a supplier name for purchased parts. Which constraints must be modelled for this class/subclass structure?
Answer: (A) Total specialization and overlapping constraints
Explanation
A transaction in the ACTIVE state during concurrent execution transitions next to which state?
A. FAILED
B. TERMINATED
C. PARTIALLY COMMITTED
D. COMMITTED
E. ACTIVE
Choose the correct answer from the options given below:
Answer: (B) Either A or C only
Explanation
Which language is used to create a database schema?
Answer: (B) DDL
Explanation
Memory access time is p nanoseconds and an extra q nanoseconds are needed to handle a page fault. If a page fault occurs once every 100 instructions, what is the effective memory access time?
Answer: (A) p + q/100
Explanation
In a file-allocation system three schemes are used:
A. Contiguous allocation
B. Indexed allocation
C. Linked allocation
Which scheme(s) do NOT suffer from external fragmentation?
Choose the correct answer from the options given below:
Answer: (B) B and C only
Explanation
Three statements about the interrupt-handling mechanism:
A. The interrupt handler routine is not stored at a fixed address in memory.
B. CPU hardware has a dedicated wire called the interrupt-request line used for handling interrupts.
C. The interrupt vector contains the memory addresses of the specialized interrupt handlers.
Choose the correct answer from the options given below:
Answer: (B) Both B and C are TRUE only
Explanation
Match List-I (System Calls) with List-II (Description).
| List-I | List-II |
|---|---|
| A. fork() | I. Sends a signal from one process to a particular process |
| B. exec() | II. Indicates termination of the current process |
| C. kill() | III. Loads the specified program into memory |
| D. exit() | IV. Creates a child process |
Answer: (B) A-IV, B-III, C-I, D-II
Explanation
Three processes are scheduled using preemptive shortest-job-first (shortest remaining time first) scheduling. What is the average waiting time?
| Process | Arrival Time | Burst Time |
|---|---|---|
| P1 | 0 | 8 |
| P2 | 1 | 4 |
| P3 | 2 | 9 |
Answer: (C) 4.66
Explanation
The number of bits reserved for the frame offset is:
Consider a machine with 16 GB main memory and a 32-bit virtual address space, with a page size of 4 KB. Frame size equals page size for this machine.
Answer: (A) 12
Explanation
The number of pages in the given virtual address space is:
Consider a machine with 16 GB main memory and a 32-bit virtual address space, with a page size of 4 KB. Frame size equals page size for this machine.
Answer: (B) 2^20
Explanation
The minimum number of bits needed for a physical address is:
Consider a machine with 16 GB main memory and a 32-bit virtual address space, with a page size of 4 KB. Frame size equals page size for this machine.
Answer: (B) 34
Explanation
The size of the page table for this virtual address space, given a page-table entry of 2 bytes, is:
Consider a machine with 16 GB main memory and a 32-bit virtual address space, with a page size of 4 KB. Frame size equals page size for this machine.
Answer: (A) 2 MB
Explanation
If a process of size 34 KB runs on this machine, the internal fragmentation for the process is:
Consider a machine with 16 GB main memory and a 32-bit virtual address space, with a page size of 4 KB. Frame size equals page size for this machine.
Answer: (D) 2 KB
Explanation
Match List-I with List-II.
| List-I | List-II |
|---|---|
| A. Odd Function | I. NAND Gate |
| B. Universal Gate | II. XOR Gate |
| C. 2421 Code | III. Amplification |
| D. Buffer | IV. Self-complementing |
Answer: (B) A-II, B-I, C-IV, D-III
Explanation
The octal equivalent of the hexadecimal number (D.C) in base 16 is:
Answer: (A) (15.6) in base 8
Explanation
A digital computer has a common-bus system for 8 registers of 16 bits each. How many multiplexers are needed to build the common bus, and what size must each multiplexer be?
Answer: (A) 16, 8 x 1
Explanation
Which of the following is NOT an example of a pseudo-instruction (assembler directive)?
Answer: (D) HLT
Explanation
The reverse Polish (postfix) notation of the infix expression [A * {B + C * (D + E)}] / {F * (G + H)} is:
Answer: (A) ABCDE+*+FGH+/
Explanation
Arrange the following in increasing order of complexity:
A. I/O Module
B. I/O Processor
C. I/O Channel
D. DMA
Choose the correct answer from the options given below:
Answer: (D) A, D, C, B
Explanation
The characteristics of combinational circuits are:
A. Output at any time is a function of the inputs at that time.
B. They contain memory elements.
C. They have no feedback paths.
D. A clock triggers the circuit to obtain outputs.
Choose the correct answer from the options given below:
Answer: (C) A and C only
Explanation
The cache-coherence problem can be solved by:
A. having multiport memory
B. allowing only non-shared data to be stored in cache
C. using a snoopy cache controller
D. using memory interleaving
Choose the correct answer from the options given below:
Answer: (B) B and C only
Explanation
Statement I: CISC computers have a large number of addressing modes.
Statement II: In RISC machines, memory access is limited to load and store instructions.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both Statement I and Statement II are true
Explanation
Which of the following statements is true?
Answer: (B) Program control instructions are used to alter the sequential flow of the program
Explanation
Match List-I with List-II.
| List-I | List-II |
|---|---|
| A. Data Link Layer | I. True end-to-end layer |
| B. Network Layer | II. Token Management |
| C. Transport Layer | III. Produce billing information |
| D. Session Layer | IV. Piggybacking |
Answer: (A) A-IV, B-III, C-I, D-II
Explanation
Statement I: Telnet, FTP and HTTP are application-layer protocols.
Statement II: The Iridium project was planned to launch 66 low-orbit satellites.
In light of the above statements, choose the correct answer from the options given below:
Answer: (A) Both Statement I and Statement II are true
Explanation
Which of the following statements is FALSE?
Answer: (B) Packet switching results in less variation in the delay than circuit switching
Explanation
In Ethernet using Manchester coding, the bit rate is ______.
Answer: (A) Half the baud rate
Explanation
A Class B address is subnetted using a 6-bit subnet number. What is the maximum number of subnets and the maximum number of hosts per subnet?
Answer: (D) 62 subnets and 1022 hosts
Explanation
In electronic mail, which protocol allows the transfer of multimedia content?
Answer: (D) MIME
Explanation
A message is sent using public-key cryptography. Which statement is true?
Answer: (A) The sender encrypts using the receiver's public key
Explanation
Which of the following statements are true?
A. Frequency-division multiplexing can be handled by digital circuits.
B. Time-division multiplexing can be handled by analog circuits.
C. Wavelength-division multiplexing is used with optical fibre to combine signals.
D. Frequency-division multiplexing can be applied when the bandwidth of a link is greater than the combined bandwidth of the signals to be transmitted.
Choose the correct answer from the options given below:
Answer: (B) C and D only
Explanation
Which of the following statements are true?
A. X.25 is a connection-oriented network.
B. X.25 does not support switched virtual circuits.
C. Frame relay service provides acknowledgements.
D. Frame relay service provides detection of transmission errors.
Choose the correct answer from the options given below:
Answer: (A) A and D only
Explanation
Let G(x) be the generator polynomial used for CRC checking. The condition that G(x) must satisfy to catch all errors consisting of an odd number of inverted bits is:
Answer: (A) (x + 1) is a factor of G(x)
Explanation
Paper 1 had 50 questions and Paper 2 (Computer Science & Applications) had 100 questions, for 150 in total across 3 hours.
No. Each correct answer earns 2 marks and there is no penalty for a wrong answer, so leaving a question blank is never better than attempting it.
Answers follow the official NTA answer key for this session. If you spot a discrepancy, use the report option inside the practice test and we will review it.
Yes. Every paper on this page has an "Attempt this paper" button that opens the same questions in the timed test interface, with instant scoring and weak-area analysis afterwards.
Want the full mock experience?
Attempt Paper 1 + Paper 2 (Computer Science & Applications) together in a single timed session.
Practice Paper 1 from other subjects
Every subject's exam sitting has its own Paper 1 (General Aptitude) set — more real PYQs to solve.