This is the Class 12 CBSE Final Term Computer Science Question Bank. The students’ challenges are met through a set of questions and answers that cut across all topics. The questions are divided into sections including multiple choice, very short answer, short answer and long answer questions so as to enhance the revision. Detailed answers are interspersed in any patient section that can be disclosed. Use this question bank for revising the concepts, practicing important questions or preparing for the final examination.
Note: These questions are based on the latest syllabus updates and include previous year questions for reference. Ensure to review the solved examples provided to grasp complex topics with ease.
Section A
- Question: Which of the following is not a valid variable name in Python? Justify the reason for it not being a valid name.
- (i) 5Radius
- (ii) Radius_
- (iii) _Radius
- (iv) Radius
- Question: Which of the following are keywords in Python?
- (i) break
- (ii) check
- (iii) range
- (iv) while
- Question: Name the Python Library modules which need to be imported to invoke the following functions:
- (i) cos()
- (ii) randint()
- Question: Rewrite the following code in Python after removing all syntax errors. Underline each correction done in the code.
input('Enter a word', W) if W = 'Hello' print('Ok') else: print('Not Ok')
- Question: Find and write the output of the following Python code:
def ChangeVal(M, N): for i in range(N): if M[i] % 5 == 0: M[i] //= 5 if M[i] % 3 == 0: M[i] //= 3 L = [25, 8, 75, 12] ChangeVal(L, 4) for i in L: print(i, end='#')
- Question: Which protocol out of the following is used to send and receive emails over a computer network?
- (a) PPP
- (b) HTTP
- (c) FTP
- (d) SMTP
- Question: Find and write the output of the following Python code:
def Call(P=40, Q=20): P = P + Q Q = P - Q print(P, '@', Q) return P R = 200 S = 100 R = Call(R, S) print(R, '@', S) S = Call(S) print(R, '@', S)
- Question: What possible output(s) are expected to be displayed on the screen at the time of execution of the program from the following code? Also specify the minimum and maximum values that can be assigned to the variable End.
import random Colours = ["VIOLET", "INDIGO", "BLUE", "GREEN", "YELLOW", "ORANGE", "RED"] End = randrange(2) + 3 Begin = randrange(End) + 1 for i in range(Begin, End): print(Colours[i], end="&")
Section B
- Question: Write the names of the immutable data objects from the following:
- (i) List
- (ii) Tuple
- (iii) String
- (iv) Dictionary
- Question: Write a Python statement to declare a Dictionary named ClassRoll with Keys as 1, 2, 3 and corresponding values as ‘Reena’, ‘Rakesh’, ‘Zareen’ respectively.
- Question: Which of the options out of (i) to (iv) is the correct data type for the variable Vowels as defined in the following Python statement?
Vowels = ('A', 'E', 'I', 'O', 'U')
- (i) List
- (ii) Dictionary
- (iii) Tuple
- (iv) Array
- Question: Write the output of the following Python code:
for i in range(2, 7, 2): print(i * '$')
- Question: Write the output of the following Python code:
def Update(X=10): X += 15 print('X = ', X) X = 20 Update() print('X = ', X)
- Question: Differentiate between w and r file modes used in Python. Illustrate the difference using suitable examples.
Section C
- Question: Which SQL command is used to add a new attribute in a table?
- Question: Which SQL aggregate function is used to count all records of a table?
- Question: Which clause is used with a SELECT command in SQL to display the records in ascending order of an attribute?
- Question: Write the full form of the following abbreviations:
- (i) DDL
- (ii) DML
- Question: Observe the following tables, EMPLOYEES and DEPARTMENT, carefully and answer the questions that follow:
ENO ENAME DOJ DNO E1 NUSRAT 2001-11-21 D3 E2 KABIR 2005-10-25 D1 DNO DNAME D1 ACCOUNTS D2 HR D3 ADMIN
Section D
- Question: An organization purchases new computers every year and dumps the old ones into the local dumping yard. Write the name of the most appropriate category of waste that the organization is creating every year.
- Question: Data which has no restriction of usage and is freely available to everyone under Intellectual Property Rights is categorized as:
- Question: What is a Unique ID? Write the name of the Unique Identification provided by the Government of India for Indian Citizens.
- Question: Consider the following scenario and answer the questions that follow:”A student is expected to write a research paper on a topic. The student had a friend who took a similar class five years ago. The student asks his older friend for a copy of his paper and then submits the entire paper as his own research work.”
Section E
- Question: Computers connected by a network across different cities is an example of _________.
- Question: _________ is a network tool used to test the download and upload broadband speed.
- Question: A ________ is a networking device that connects computers in a network by using packet switching to receive, and forward data to the destination.
- Question: _________ is a network tool used to determine the path packets taken from one IP address to another.
- Question: Write the full form of the following abbreviations:
- POP
- VoIP
- NFC
- FTP
Disclaimer
The question bank provided on this website is meant to be a supplementary resource for final term exam preparation. While we strive to offer accurate and relevant content, students should not rely solely on these answers. It is essential to conduct further research and consult teachers, school authorities, or subject experts to ensure thorough understanding and preparation. The solutions here are based on general interpretations and may not reflect the exact responses expected by examination boards. We are not responsible for any discrepancies or outcomes in exams resulting from the use of this material. By using this resource, you acknowledge that your academic success depends on comprehensive preparation, including active engagement with school materials and guidance from educators.