ReactNativeBlobUtilTmp 8o65lfxshormrw66f7er
ReactNativeBlobUtilTmp 8o65lfxshormrw66f7er
JANUARY 2024
Assessment Objectives:
To understand the structure, functions and characteristics of computer systems.
To represent numbers in different radices.
To understand about the digital society and the etiquettes.
To develop basic computational thinking.
To evaluate the fundamentals about the looping, conditional statements and their
structure in Python.
To apply computational thinking and solve both console and application programs.
To apply reasoning and logic to write python programs on Tuples, Strings and Lists.
To access and traverse the elements sequentially.
To develop the capacity for thinking creatively, innovatively, analytically, logically and critically.
To apply reasoning and logic to write Python programs on areas, unit conversion and other
Mathematical problems.
Thi
s
Page 1 of 8
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 Q34 against part b only.
8. All programming questions are to be answered using Python Language only.
SECTION A
1. State True or False 1
“Variable declaration is implicit in Python.”
2. __________means that only the authorized users get access to sensitive and confidential 1
data.
a) Confidentiality
b) Identity
c) Authentication
d) Encryption
3. 4 bits makes _________ 1
a) 1 Byte
b) 1 KB
c) 1 MB
d) 1 Nibble
4. The system software that converts high level language program to low level language is 1
known as _________
a) Operating System
b) Language Processor
c) Utilities
d) DTP Software
5. The output of two – input AND gate is high when 1
a) both inputs are low
b) both inputs are high
c) any one input is high
d) both b and c
6. Prutha is trying to convert a string literal ‘3’ into integer. But she is confused. Which 1
function out of the following is used to do so? Help her to do the right choice for her work.
a) integer
b) number
c) int
d) num
7. Which of the following is valid identifier? 1
a) None
b) #None
c) 0_None
d) none
90= stu_marks
print(Students Score stu_marks)
a, b=10, 30
a, b, a = b, b + 3, a – 5
print( a, b)
15. What will the output of the following code fragment when the input is 7 and 5? 1
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct
choice as
(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
17. Assertion(A): In python program variable a and A both have different 1
significance.
Reason(R): Python is case sensitive language.
18. Assertions(A): With three variables X, Y, and Z, there will be 3 columns and 23, i.e. 8 rows
in total in truth table.
Reason(R): Truth Table represents all possible combinations of values with operator that
yields the result in True or False. It has been arranged in the form of a table with all
3
possible input values.
SECTION B
19. Rao has written a code to input a number and check whether it is prime or not. His code 2
is having errors. Rewrite the correct code and underline the corrections made.
SECTION C
26. What is the purpose of the encoding scheme? Encode the word ‘DREAM’ using ASCII 1+2
and convert the encoded value into a binary value.
OR
SECTION C
s="welcome2cs"
n = len(s)
m=""
for i in range(0, n):
if (s[i] >= 'a' and s[i] <= 'm'):
m = m +s[i].upper()
elif (s[i] >= 'n' and s[i] <= 'z'):
m = m +s[i-1]
elif (s[i].isupper()):
m = m + s[i].lower()
else:
m = m +'&'
print(m)
b) WAP to create a tuple t=(10,20,40,50,60). Add number 30 at index 2 and display the
updated tuple.
32. Consider the following string Address: 5
Address = “KVS 18, Institutional Area, Shaheed Jeet Singh Marg, ND - 16 (India)”
What will be the output of following string operations?
5
a. print(Address.lower())
b. print(Address.count('a'))
c. print(Address.split(','))
d. print(Address.find('18'))
e. print(Address.replace('ND','New Delhi'))
33. Consider the following list and predict the output for the given code: 5
L=[12,15,10,3,4,5]
L.pop()
L.append(30)
print(L)
L.remove(4)
print(L)
L.extend([22,20])
print(L)
L.sort()
print(L)
L.clear()
print(len(L))
OR
You are given a list of integers . Write a program to create another list from the existing list
such that all multiple of 5 present in first list are added in another list.
Also Display length of new list.
e.g if L1=[2,3,5,6,7,8,10,15,56]
new list would be
L2=[5,10,15]
Length of the new list is 3
SECTION E
34. a)Write a program to read a positive integer from user and display “fizz” if the umber is 4
multiple of 3 ,display “buzz” if number is multiple of 5 and display
fizzbuzz” if number is multiple of 5 and 3. Display nothing otherwise.
b) Repeatedly ask user to enter a number , if the number is multiple of 5 print “bye” else
keep on asking number.
Or
b) Read a number from user and print first 10 multiples of the number. Each multiple should
come in separate line.
35. Do as mentioned: 4
a. Differentiate between break and continue with examples.
b. Convert the following while loop into for loop:
a=3
while a < 100:
if a%2 ==0:
6
print(a+2, end = “,”)
else:
print(a*2, sep = “$”)
a=a+3
7
8