Physics Wallah
banner

UGC NET Computer Science Unit 3 & 4 PYQs with Answers

UGC NET Computer Science Unit 3 & 4 PYQs help candidates understand important concepts from Computer Organisation & Architecture and Programming & Data Structures. Regular practice helps improve conceptual clarity, problem-solving skills, and familiarity with frequently asked concepts and question patterns in the exam.

authorImageAarti .22 Jun, 2026

UGC NET Computer Science Unit 3 and Unit 4 are among the most important sections of the syllabus, covering Computer Organisation & Architecture and Programming & Data Structures. These units frequently include conceptual, numerical, and problem-solving questions in the examination. 

Practising Previous Year Questions (PYQs) helps candidates understand recurring topics, identify high-weightage areas, and improve their problem-solving speed and accuracy. By regularly solving UGC NET Computer Science Unit 3 & 4 PYQs, aspirants can strengthen their fundamentals, improve accuracy, and gain confidence for the exam.

UGC NET Computer Science Unit 3 & 4 PYQs

UGC NET Computer Science Unit 3 & 4 Previous Year Questions (PYQs) are an effective tool for understanding the exam pattern and focusing on important concepts. PYQs from these units test both theoretical knowledge and practical problem-solving abilities.

  1. Match List-I with List-II.

  List-I   List-II
A. Timestamp protocol I. As long as the transaction is already running, it will try to obtain the required lock in the first part
B. Strict two-phase locking protocol II. Indicates final lock of the schedule.
C. Two-phase locking III. Ensures freedom from deadlock.
D. Lock point in two-phase locking protocol IV. Ensures cascade-less rollback.

Choose the correct answer from the options given below:

  • A) A-III, B-IV, C-II, D-I

  • B) A-III, B-IV, C-I, D-II

  • C) A-IV, B-III, C-II, D-I

  • D) A-IV, B-II, C-I, D-III

Answer: A) A-III, B-IV, C-II, D-I
Explanation: Timestamp protocol ensures freedom from deadlock β†’ III; Strict 2PL ensures cascadeless rollback β†’ IV; Two-phase locking's lock point indicates the final lock β†’ II; Lock point definition matches the "already running" description β†’ I.

  1. Match List-I with List-II.

  List-I   List-II
A. BCNF iff I. every JD is implied by the candidate keys
B. 5NF iff II. all underlying domains contain scalar values only
C. 1NF iff III. every MVD is implied by the candidate keys
D. 4NF iff IV. every FD is implied by the candidate keys
  • A) A-III, B-II, C-I, D-IV

  • B) A-IV, B-I, C-II, D-III

  • C) A-II, B-III, C-IV, D-I

  • D) A-IV, B-I, C-III, D-II

Answer: B) A-IV, B-I, C-II, D-III
Explanation: BCNF β†’ every FD implied by candidate keys; 5NF β†’ every JD implied by candidate keys; 1NF β†’ all domains contain scalar values only; 4NF β†’ every MVD implied by candidate keys.

  1. Find the number of tuples by applying the operation XβŸ• X.S = Y.S^Y

  • A) 1

  • B) 3

  • C) 4

  • D) 6

Answer: C) 4
Explanation: The left outer join XβŸ•Y on X.S = Y.S keeps all tuples from X and matches with Y where S values match. J, B, R match in both tables (3 matches), and T has no match in Y but is still retained with NULLs β€” giving 4 total tuples.

  1. Identify the incorrect statement(s).

  • A) A candidate key is minimal set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.

  • B) A candidate key for which no proper subset is also a candidate key is called a super key.

  • C) A super key is a set of one or more attributes that, taken collectively, allows us to uniquely identify any entity in the entity set.

  • D) A super key for which no proper subset is also a super key is called a candidate key.

Answer: B) A candidate key for which no proper subset is also a candidate key is called a super key.
Explanation: Statement B is incorrect because it has the definition reversed β€” it is actually a super key for which no proper subset is also a super key that is called a candidate key, not the other way around.

  1. Given the following STUDENT-COURSE scheme: STUDENT (Rollno, Name, Courseno) COURSE (Courseno, Coursename, Capacity), where Rollno is the primary key of relation STUDENT and Courseno is the primary key of relation COURSE. Attribute Coursename of COURSE takes unique values only. The number of records in COURSE and STUDENT tables are 3 and 5 respectively. Following relational algebra query is executed: R = STUDENT X COURSE
    Match List-I with List-II in context to the above problem statement.

  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
  • A) A-III, B-I, C-IV, D-II

  • B) A-I, B-III, C-IV, D-II

  • C) A-I, B-III, C-IV, D-II

  • D) A-I, B-III, C-II, D-IV

Answer: B) A-I, B-III, C-IV, D-II
Explanation: Degree of R = 3+3 = 6 attributes β†’ III; Cardinality = 5Γ—3 = 15 tuples β†’ I; Foreign key of STUDENT is Courseno β†’ IV; COURSE has no foreign key β†’ NIL β†’ II.

  1. The following table has two attributes Employee_id and Manager_id, where Employee_id is a primary key and manager_id is a foreign key referencing Employee_id with an on-delete cascade:

Employee_id Manager_id
20 40
25 40
30 35
35 20
40 45
45 25

On deleting the tuple (20, 40), the set of other tuples that must be deleted to maintain the referential integrity of the table is:

  • A) (30, 35) only

  • B) (30, 35) and (35, 20) only

  • C) (35, 20) only

  • D) (40, 45) and (25, 40) only

Answer: C) (35, 20) only
Explanation: Deleting Employee_id = 20 causes cascade delete on tuples where Manager_id = 20, which is (35, 20). Deleting Employee_id = 35 then cascades to tuples where Manager_id = 35, which is (30, 35). So the full set deleted is (35, 20) and (30, 35) β†’ Answer: B) (30, 35) and (35, 20) only.

  1. Which of the following key constraints is required for functioning of foreign key in the context of relational databases?

  • A) Unique key

  • B) Primary key

  • C) Candidate key

  • D) Check key

Answer: B) Primary key
Explanation: A foreign key must reference a primary key in the parent table, as the primary key constraint ensures uniqueness and non-nullability, which are both required for the referential integrity enforced by foreign keys.

 

UGC NET Computer Science Unit 3 & 4 PYQs FAQs

What topics are covered in UGC NET Computer Science Unit 3?

Unit 3 covers Computer Organization and Architecture, including Processor Architecture, Memory Organization, Instruction Pipelines, Addressing Modes, Input-Output Systems, and Memory Hierarchy.

What topics are included in UGC NET Computer Science Unit 4?

Unit 4 focuses on Programming and Data Structures, including Algorithms, Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, Searching, Sorting, and Recursion.

Why are Unit 3 & 4 PYQs important for UGC NET Computer Science?

PYQs help candidates understand recurring concepts, identify important topics, improve problem-solving skills, and become familiar with the exam pattern.

Which topics are frequently asked from Unit 3?

Memory Hierarchy, Cache Memory, Instruction Formats, CPU Organization, Addressing Modes, and Pipelining are among the most frequently tested topics.
banner
banner
Popup Close ImagePopup Open Image
Talk to a counsellorHave doubts? Our support team will be happy to assist you!
Popup Image
avatar

Get Free Counselling Today

and Clear up all your Doubts

Talk to Our Counsellor just by filling out the form.
Student Name
Phone Number
IN
+91
OTP
Join 15 Million students on the app today!
Point IconLive & recorded classes available at ease
Point IconDashboard for progress tracking
Point IconLakhs of practice questions
Download ButtonDownload Button
Banner Image
Banner Image
Free Learning Resources
Know about Physics Wallah
Physics Wallah is an Indian edtech platform that provides accessible & comprehensive learning experiences to students from Class 6th to postgraduate level. We also provide extensive NCERT solutions, sample paper, NEET, JEE Mains, BITSAT previous year papers & more such resources to students. Physics Wallah also caters to over 3.5 million registered students and over 78 lakh+ Youtube subscribers with 4.8 rating on its app.
We Stand Out because
We provide students with intensive courses with India’s qualified & experienced faculties & mentors. PW strives to make the learning experience comprehensive and accessible for students of all sections of society. We believe in empowering every single student who couldn't dream of a good career in engineering and medical field earlier.
Our Key Focus Areas
Physics Wallah's main focus is to make the learning experience as economical as possible for all students. With our affordable courses like Lakshya, Udaan and Arjuna and many others, we have been able to provide a platform for lakhs of aspirants. From providing Chemistry, Maths, Physics formula to giving e-books of eminent authors like RD Sharma, RS Aggarwal and Lakhmir Singh, PW focuses on every single student's need for preparation.
What Makes Us Different
Physics Wallah strives to develop a comprehensive pedagogical structure for students, where they get a state-of-the-art learning experience with study material and resources. Apart from catering students preparing for JEE Mains and NEET, PW also provides study material for each state board like Uttar Pradesh, Bihar, and others

Copyright Β© 2026 Physicswallah Limited All rights reserved.