Informatics Practices Class 12 Question Bank Chapter wise INTRODUCTION TO PYTHON 1. Which of the following is an assignment operator in Python? a) == b) === c) >>> d) =…
Category: Python for Class 12
Python Practice Paper for Class 12
I. MULTIPLE CHOICE QUESTIONS 10X1=10 1. To open a file c:\ss.txt for appending data we use a. file = open(‘c:\\ss.txt’,’a’) b. file = open(r‘c:\ss.txt’,’a’) c. file = open(‘c:\\ss.txt’,’w’) d. both a and…
Python Libraries MCQ Class 12
1. To include the use of functions which are present in the random library, we must use theoption: a)importrandom b)random.h c)import.random d)random.random 2. The output of the following Python code…
Python Revision Tour Worksheet Class 12
Multiple Choice Questions: (20 x 1=20) 1. What will be the output of the following Python code? from math import factorial print (math.factorial (5)) (a) 120 (b) Nothing is printed (c) Error,…
Class 12 Computer Science Worksheets
Worksheet-1 1. What is a string slice? How is it useful? (2) 2. Distinguish between concatenation and Replication in string .Give an example.(3) 3. What are the Characteristics of a dictionary? (2)…