Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

12th Computer science PA-1 qp

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

ADHARSH VIDHYALAYA PUBLIC SCHOOL-ANTHIYUR

Class: XII (2023-24)


Computer Science (083)
PERIODIC ASSESSMENT -01
Maximum Marks: 70 Time Allowed: 3 hours Date: 09-June-2023
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q35 against part c only.
8. All programming questions are to be answered using Python Language only.

SECTION A
1. State True or False – ‘Tuple is one of the data-types of python having data in key- 1
value pair.”
2. Which of the following is not a valid python operator? 1
a) %
b) in
c) #
d) **
3. State True or False “Python has a set of keywords that can also be used to declare 1
variables.”
4. What will be the output of the following python expression? 1
print(2**3**2)
a) 64
b) 256
c) 512
d) 32
5. Which of the following is not a keyword? 1
a) eval
b) nonlocal
c) assert
d) pass
6. What will be the output of the following python dictionary operation? 1
data = {‘A’:2000, ‘B’:2500, ‘C’:3000, ‘A’:4000}
print(data)
a) {‘A’:2000, ‘B’:2500, ‘C’:3000, ‘A’:4000}
b) {‘A’:2000, ‘B’:2500, ‘C’:3000}
c) {‘A’:4000, ‘B’:2500, ‘C’:3000}
d) It will generate an error
7. What will be the output of the following python dictionary operation? 1
data = {‘A’:2000, ‘B’:2500, ‘C’:3000, ‘A’:4000}
print(data)
a) {‘A’:2000, ‘B’:2500, ‘C’:3000, ‘A’:4000}
b) {‘A’:2000, ‘B’:2500, ‘C’:3000}
c) {‘A’:4000, ‘B’:2500, ‘C’:3000}
d) It will generate an error
8. Which of the following operations on a string will generate an error? 1
a) “PYTHON”*2
b) “PYTHON” + “10”
c) “PYTHON” + 10
d) “PYTHON” + “PYTHON”
9. What will be the output of following expression in python? 1
print ( round (100.0 / 4 + (3 + 2.55) , 1 ) )
a) 30.0
b) 30.5
c) 30.6
d) 30.1
_______________is a network of physical objects embedded with electronics,
10 1
software, sensors and network connectivity.
11 _______________describes the maximum data transfer rate of a network or Internet 1
connection.
12 Name The transmission media best suitable for connecting to hilly areas. 1
13 Rearrange the following terms in increasing order of data transfer rates. 1
Gbps, Mbps, tbps, Kbps, bps
14 What will be the data type of p, if p=(15)? 1
a) int
b) tuple
c) list
d) set
15 “A dictionary key must be of a data type that is mutable”. (True/False) 1
16 Out of the following, which is the fastest wired and wireless medium of 1
transmission?
Infrared, coaxial cable, optical fibre, microwave, Ethernet cable
17. Consider this statement: 1
subject=’Computer’ + ‘ ’ + ‘Science 083’
Assertion(A): The output of statement is – “Computer Science 083”
Reason(R): The ‘+’ operator works as concatenate operator with strings and join the
given strings

(A) Both A and R are true and R is the correct explanation for A
(B) Both A and R are true and R is not the correct explanation for A
(C) A is True but R is False
(D) A is false but R is True

18. Riya is in India and she is interested in communicating with her friend in Canada. 1
She wants to show one of her paintings to him and also wants to explain how it was
prepared without physically going to Canada. Which protocol out of the following
will be ideal for the same?
(i) POP3 (ii) SMTP (iii) VoIP (iv) HTTP
SECTION B
19. What is VoIP? 2
20. Write two points of difference between Circuit Switching and Packet Switching. 2
OR
Write two points of difference between XML and HTML.
21. (a) Given is a Python string declaration: 1
Test="@@NCERT Examination 2022-2023@@"
Write the output of: print(Test[::-3])

(b) Write the output of the code given below: 1


dct = {"name": "Aman", "age": 26}
dct['age'] = 27 my_dict['address'] = "Delhi" print(dct.items())
22. Write the output of the following code and the difference between a*3 and (a,a,a)? 2
a=(1,2,3)
print(a*3)
print(a,a,a)
23. (a) Write the full forms of the following: 2
(i) SMTP (ii) TCP
(b) What is the use of Microwave frequency?
24. Define how a function can be declared in python program with its structure 2
OR
Explain about Different types of arguments with its Syntax
25. Differentiate between coaxial cable and Fiber optical 2

SECTION C
26 Differentiate between client side scripting and server side scripting 3
OR
Write a python program to find out the square of series 10,20,30
27 Write a python program to create list and perform addition of any 3 list with
(integer and string) elements. 3
28 i) Give two advantages and two disadvantages of star topology 3
ii) Define the following terms: switch and router
29 What is pack switching technique , explain with diagram 3
30 Describe any 2 network devices which has intelligence? 3

SECTION D
31 Sam has written a code to input a number and check whether it is even or odd 3+2
number. His code is having errors. Rewrite the correct code and underline the
corrections made.
Def checkNumber(N):
status = N%2
return
#main-code
num=int( input(“ Enter a number to check :"))
k=checkNumber(num)
if k = 0:
print(“This is EVEN number”)
else
print(“This is ODD number”)
32 5
Explain about the guided and un guided media in networks with help of diagram.
33 Write the python program to find out whether the person is eligible to apply vote 5
ID and driving license with if else statement.

SECTION E
34 Sameer has written a python function to compute the reverse of a number. He has 4
however committed a few errors in his code. Rewrite the code after removing errors
also underline the corrections made.
define reverse(num):
rev = 0
While num > 0:
rem == num %10
rev = rev*10 + rem
num = num/10
return rev
print(reverse(1234))

35 Write a python program to calculate the arithmetic (add,sub,mul,div) operation 4


with user-function and nested if else concept.

===================================================================================

***ALL THE BEST***

You might also like