Informatics Practices Class 12 Question Bank Chapter wise
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) >>>…
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) >>>…
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…
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…
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…
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…