100+ Text File MCQ Question Bank For Class 12

Text File MCQ Question Bank For Class 12   1. Which of the following command is used to open a file “c:\temp.txt” in read-mode only? a) infile = open(“c:\temp.txt”, “r”) b) infile = open(“c:\\temp.txt”, “r”)  c) infile = open(file = “c:\temp.txt”, “r+”) d) infile = open(file = “c:\\temp.txt”, “r+”)   2. Which of the following … Read more

CSV File MCQ Question Bank For Class 12

CSV File MCQ Question Bank For Class 12   1. To open a file c:\scores.csv for reading, we use _______ command. a) infile = open(“c:\scores.csv”, “r”) b) infile = open(“c:\\scores.csv”, “r”) c) infile = open(file = “c:\scores.csv”, “r”) d) infile = open(file = “c:\\scores.csv”, “r”)     2. State True/False : (i) The csv files … Read more

(Solved)Information Technology (402) Term 1 Sample Paper for class 10 2021-22

Information Technology (402) Term 1 Sample Paper for class 10 2021-22 INFORMATION TECHNOLOGY (SUBJECT CODE 402) CLASS X (SESSION 2021-2022) SAMPLE QUESTION PAPER FOR TERM -1 Max. Time Allowed: 60 Minutes (1 Hrs.) Max. Marks: 25 General Instructions: 1. Please read the instructions carefully 2. This Question Paper is divided into 03 sections, viz., Section … Read more

MCQs on String and function for class 11

MCQs on String and function for class 11 STRING AND BUILT IN FUNCTION   Q.1 What is the output of the following code ? example = “snow world” example[3] = ‘s’ print (example) (a) snow (b) snow world (c) Error ✓ (d) snos world   Consider the string str=”Green Revolution” choose the correct statements in … Read more

MCQ on for loop in Python class 11

MCQ on for loop in Python class 11 and 12 Computer Science/ IP Iterative (loop) Statements Q.1 The for loop in Python is an _____________ a) Entry Controlled Loop b) Exit Controlled Loop c) Both of the above d) None of the above   Q.2 break in Python is used ______________ a) To restart a … Read more

MCQs on Flow of control, conditional statements

MCQs on Flow of control, conditional statements Topic: OUTPUT,ERRORS,FLOW OF CONTROL,CONDITIONAL STATEMENTS Q.1 Which one of the following is a valid Python if statement : a) if a>=2 :  b) if (a >= 2) c) if (a => 22) d) if a >= 22   Q.2 Which of following is not a decision-making statement. a) … Read more

MCQs on Boolean Algebra for class 11

MCQs on Boolean Algebra for class 11 Topic: BOOLEAN ALGEBRA, NUMBER SYSTEM, ENCODING SCHEME Q.1 Boolean Algebra is also called a) Switching algebra  b) Arithmetic algebra c) Linear algebra d) Algebra   Q.2 DE Morgan’s law states that a) (AB)’ = A’ + B’ b) (A + B)’ = A’ * B c) A’ + … Read more

Copywrite © 2020-2026, CBSE Python,
All Rights Reserved