Full Syllabus Test No. 3 - HPSC Subjective
Full Syllabus Test No. 3 - HPSC Subjective
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
QUESTION SECTION
Q.3 Explain the structure of an IPv4 address. Describe different classes (A, B,
C, D, E) of IPv4 with suitable examples.
(10 Marks )
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.6 Compare all four SDLC models: Waterfall, Prototype, Spiral, and Agile
based on the following criteria:
-Requirement flexibility
-Customer involvement
-Risk handling
(10 Marks )
Q.7 Prove that every NFA has an equivalent DFA. Explain the conversion
process with an example.
(10 Marks )
Q.8 Prove that regular languages are closed under union, intersection, and
complement.
(10 Marks )
Q.10 (i) Write a python program to print multiplication table till 10 for a
number entered by user.
For example if number entered is 7 then table to be printed is
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
7x1=7
7 x 2 = 14
7 x 3 = 21
….
7 x 10 = 70 (7 Marks)
(ii) What are the different types of Errors in Python. Give examples
(3 Marks)
Q.11 Using linear search determine the position of 8, 1, 99, and 44 in the list:
[1, -2, 32, 8, 17, 19, 42, 13, 0, 44]
Draw a detailed table showing the values of the variables and the decisions
taken in each pass of linear search.
(10 Marks)
Q.12 (i) Write a python program to read a list of 10 numbers -
5,2,4,3,7,1,6,22,18,9 from user and compute the product of odd numbers
from that list.
(7 Marks)
(ii) Explain the difference between variables and literals in python.
(3 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.13 (i) Name the input or output device used to do the following:
a) To output audio
b) To enter textual data
c) To make hard copy of a text file
d) To display the data or information
e) To enter audio-based command
f) To build 3D models
g) To assist a visually-impaired individual in entering data
(7 Marks)
(ii) Identify the category (system, application, programming tool) of the
following software:
a) Compiler
b) Assembler
c) Ubuntu
(3 Marks)
Q. 14 During admission in a course, the names of the students are inserted in
ascending order. Thus, performing the sorting operation at the time of
inserting elements in a list. Identify the type of sorting technique being used
and write a program using a user defined function that is invoked every time
a name is input and stores the name in ascending order of names in the list.
(10 Marks)
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612
Computer Science Academy (“We Cover every BYTE of CS Life”)
Q.15 (i) Prove that the complement of a recursive enumerable language is not
always recursive enumerable.
(5 Marks)
(ii) Using Turing machines, explain the decidability of the language L = {w | w
is a valid mathematical expression}.
(5 Marks)
Q.16 Assume that a main memory with only 4 pages, each of 16 bytes, is
initially empty. The CPU generates the following sequence of virtual
addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88,92
How many page faults does this sequence cause? What are the page numbers
of the pages present in the main memory at the end of the sequence?
(10 MARKS)
Q.17 Convert a T flip-flop into a D flip-flop using logic gates. Draw the
required circuit diagram and derive the expression. Show the conversion
process using a truth table.
(10 Marks)
Q.18 Explain the working of a SR flip-flop with:
- Truth table
- Characteristic table
- Excitation table
- Circuit diagram.
Address: CS Academy, Near Happy Child College of Nursing, Mehlana Road, Sonipat, Haryana
9034109612