Revison Test 2
Revison Test 2
COMPUTER SCIENCE(083)
Class: XII Date: 25.10.2024
Time allowed: 3 Hours Maximum Marks: 70
General Instructions:
● This question paper contains 37 questions.
● All questions are compulsory. However, internal choices have been provided in some
questions. Attempt only one of the choices in such questions
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
● Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
● Section C consists of 3 questions (29 to 31). Each question carries 3 Marks.
● Section D consists of 4 questions (32 to 35). Each question carries 4 Marks.
● Section E consists of 2 questions (36 to 37). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
● In case of MCQ, text of the correct answer should also be written.
(D)All of these
9. Which transmission media is capable of having a much higher bandwidth (data capacity) ?
(A)Star(B)Bus(C)None(D)Tree
11. Which topology requires a multipoint connection on a single cable?
(A)Star (B)Bus(C)None(D)Tree
12. Which of the following devices can be used at the centre of a star topology?
(A)Router(B)Repeater(C)Modem(D)Hub
13. A combination of bus and star topologies is called a ............... topology.
16. The _______ is a small network created by linking many personal devices.
18. The bleeding of a signal from one wire to another in a twisted pair cable, is known as _________.
19. Assertion. A server is a computer but not every computer is a server.
Reason. A computer having the capabilities to serve the requests of other network nodes is a server.
SECTION-C ( 3 X 3 = 9 MARKS)
29. 1.A list contains following record of a customer: [Customer_name, Phone_number, City] Write the
following user defined functions to perform given operations on the stack named ‘status’:
(i) Push_element() - To Push an object containing name and Phone number of customers who live in Goa to
the stack
(ii) Pop_element() - To Pop the objects from the stack and display them. Also, display “Stack Empty” when
there are no elements in the stack.
For example: If the lists of customer details are:
[“Gurdas”, “99999999999”,”Goa”]
[“Julee”, “8888888888”,”Mumbai”]
[“Murugan”,”77777777777”,”Cochin”]
[“Ashmit”, “1010101010”,”Goa”]
The stack should contain
[“Ashmit”,”1010101010”]
[“Gurdas”,”9999999999”]
The output should be:
[“Ashmit”,”1010101010”]
[“Gurdas”,”9999999999”]
Stack Empty
30.Write a function in Python, Push(SItem) where , SItem is a dictionary containing the details of stationary
items– {Sname:price}. The function should push the names of those items in the stack who have price
greater than 75. Also display the count of elements pushed into the stack. For example: If the dictionary
contains the following data:
Ditem={"Pen":106,"Pencil":59,"Notebook":80,"Eraser":25}
The stack should contain
Notebook
Pen
The output should be:
The count of elements in the stack is 2
31.A list, NList contains following record as list elements:
[City, Country, distance from Delhi]
Each of these records are nested together to form a nested list. Write the following user defined functions in
Python to perform the specified operations on the stack named travel.
(i) Push_element(NList): It takes the nested list as an argument and pushes a list object containing name of
the city and country, which are not in India and distance is less than 3500 km from Delhi.
(ii) Pop_element(): It pops the objects from the stack and displays them. Also, the function should display
“Stack Empty” when there are no elements in the stack.
For example: If the nested list contains the following data:
NList=[["New York", "U.S.A.", 11734],
["Naypyidaw", "Myanmar", 3219],
["Dubai", "UAE", 2194],
["London", "England", 6693],
["Gangtok", "India", 1580],
["Columbo", "Sri Lanka", 3405]] T
he stack should contain:
['Naypyidaw', 'Myanmar'],
['Dubai', 'UAE'],
['Columbo', 'Sri Lanka']
The output should be:
['Columbo', 'Sri Lanka']
['Dubai', 'UAE']
['Naypyidaw', 'Myanmar']
Stack Empty
SECTION-D ( 4 X 4 = 16 MARKS)
32.A) List one advantage and one disadvantage of star topology. OR B) Expand the term SMTP. What is the
use of SMTP?
33.A) You have a stack named BooksStack that contains records of books. Each book record is represented
as a list containing book_title, author_name, and publication_year. Write the following user-defined
functions in Python to perform the specified operations on the stack BooksStack:
(I) push_book(BooksStack, new_book): This function takes the stack BooksStack and a new book record
new_book as arguments and pushes the new book record onto the stack.
(II) pop_book(BooksStack): This function pops the topmost book record from the stack and returns it. If the
stack is already empty, the function should display "Underflow".
(III) peep(BookStack): This function displays the topmost element of the stack without deleting it. If the
stack is empty, the function should display 'None'.
34. Write the definition of a user-defined function `push_even(N)` which accepts a list of integers in a
parameter `N` and pushes all those integers which are even from the list `N` into a Stack named
`EvenNumbers`. Write function pop_even() to pop the topmost number from the stack and returns it. If the
stack is already empty, the function should display "Empty". Write function Disp_even() to display all
element of the stack without deleting them. If the stack is empty, the function should display 'None'.
For example: If the integers input into the list `VALUES` are:
[10, 5, 8, 3, 12]
Then the stack `EvenNumbers` should store:
[10, 8, 12]
35. What are different types of networks based on roles of computers ?
SECTION E (2 X 5 = 10 Marks)
36.MakeInIndia Corporation, an Uttarakhand based IT training company, is planning to set up training
centres in various cities in next 2 years. Their first campus is coming up in Kashipur district. At Kashipur
campus, they are planning to have 3 different blocks for App development, Web designing and Movie
editing. Each block has number of computers, which are required to be connected in a network for
communication, data and resource sharing. As a network consultant of this company, you have to suggest
the best network related solutions for them for issues/problems raised in question nos. (i) to (v), keeping in
mind the distances between various blocks/locations and other given parameters.
(i) Suggest the most appropriate block/location to house the SERVER in the Kashipur campus (out of the 3
blocks) to get the best and effective connectivity. Justify your answer.
(ii) Suggest a device/software to be installed in the Kashipur Campus to take care of data security.
(iii) Suggest the best wired medium and draw the cable layout (Block to Block) to economically connect
various blocks within the Kashipur Campus.
(iv) Suggest the placement of the following devices with appropriate reasons:
a. Switch / Hub b. Repeater
(v) Suggest a protocol that shall be needed to provide Video Conferencing solution between Kashipur
Campus and Mussoorie Campus.
37.Meticulous EduServe is an educational organization. It is planning to setup its India campus at Chennai
with its head office at Delhi. The Chennai campus has 4 main buildings – ADMIN,
ENGINEERING,BUSINESS and MEDIA
a) Suggest and draw the cable layout to efficiently connect various blocks of buildings within the CHENNAI
campus for connecting the digital devices.
b) Which network device will be used to connect computers in each block to form a local area network?
c) Which block, in Chennai Campus should be made the server? Justify your answer.
d) Which fast and very effective wireless transmission medium should preferably be used to connect the
head office at DELHI with the campus in CHENNAI?
e) Is there a requirement of a repeater in the given cable layout? Why/ Why not?