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

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

MCQ on Types of Software, Operating system for class 11

MCQ on Types of Software, Operating system for class 11 Q.1 Software Package is a group of programs that solve multiple problems. a) True b) False    Q.2 ____________ refer to renewing or changing components like increasing the main memory, or hard disk capacities, or adding speakers, or modems, etc. a) Grades b) Prosody c) … Read more

MCQ Basic Computer Organisation Class 11

TOPIC: MCQ BASIC COMPUTER ORGANISATION CLASS 11 Q.1 Data in computer terminology mean? (a) Figure (b) Raw facts (c) Both a & b  (d) None of these   Q.2 What is information? (a) Processed Data  (b) Collection of a Program (c) Raw Data (d) Collection of Instructions   Q.3 Full form of ALU (a) Application … Read more

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