Computer Science

Class 12 Computer Science File Handling in Python MCQs Set 3

File Handling in Python MCQ's

Python File Handling File Handling in Python MCQ’s Set – 3 Multiple Choice Questions 41. The default file-open mode is ___________. a) read b) write c) append d) None of these 42. Write a command to open a file named “mybio.txt” in write mode? a) fileobject = open (“mybio.txt”, “w”) b) fileobject = open(“mybio.txt”) c)

Class 12 Computer Science File Handling in Python MCQs Set 3 Read More »

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 5

Class 12 Computer Science Python Functions MCQs

Python Functions – Working with Functions MCQ’s Multiple Choice Questions [MCQs] Set – 5 81. _______ refers to using an expression as part of a larger expression or a statement as a part of larger statement. a) Function b) Calling of Function c) Composition d) None of these 82. Find the output: a) 2512 b)

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 5 Read More »

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 4

Class 12 Computer Science Python Functions MCQs

Python Functions – Working with Functions MCQ’s Multiple Choice Questions [MCQs] Set – 4 61. Identify the valid rules for combining all three types of arguments. a) an argument list must first contain positional argument followed by any keyword argument. b) Keyword arguments should be taken from the required arguments. c) Value for one argument

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 4 Read More »

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 3

Class 12 Computer Science Python Functions MCQs

Python Functions – Working with Functions MCQ’s Multiple Choice Questions [MCQs] Set – 3 41. When the function call statement must match the number and order of arguments as defined in the function definition, this is called the ___________ matching. a) Positional Arguments b) Default Arguments c) Keyword Arguments d) None of these 42. Which

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 3 Read More »

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 2

Class 12 Computer Science Python Functions MCQs

Python Functions – Working with Functions MCQ’s Multiple Choice Questions [MCQs] Set – 2 21. ____________ are pre-defined functions and are always available for use. a) Built-in Functions b) Functions defined in module c) User defined functions d) All of these 22. ____________ are pre-defined functions in particular modules and can only be used when

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 2 Read More »

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 1

Class 12 Computer Science Python Functions MCQs

Python Functions – Working with Functions MCQ’s Multiple Choice Questions [MCQs] Set – 1 1. The process of dividing a computer program into separate independent blocks of code or separate sub-problems with different names and specific functionalities is known as _______________. a) modular programming b) structural programming c) object-oriented programming d) parallel programming 2. In

Class 12 Computer Science Python Functions – Working with Functions MCQs Set – 1 Read More »

Class 11 Computer Science Chapter 4 Introduction to Problem Solving NCERT Solution

NCERT Class 11 Computer Science Solution Chapter 4 Introduction to Problem Solving 1. Write pseudocode that reads two numbers and divide one by another and display the quotient. 2. Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the

Class 11 Computer Science Chapter 4 Introduction to Problem Solving NCERT Solution Read More »

Class 11 Computer Science Chapter 5 Getting Started with Python NCERT Solution

Getting started with python solution

NCERT Book Exercise Solution Class 11 Computer Science Chapter 5 – Getting Started with Python 1. Which of the following identifier names are invalid and why? (i) Serial_no. (ii) 1st_Room (iii) Hundred$ (iv) Total Marks (v) Total_Marks (vi) total-Marks (vii) _Percentage (viii) True Answer: – Valid Identifiers are : (v) Total_Marks and (vii) _Percentage Invalids

Class 11 Computer Science Chapter 5 Getting Started with Python NCERT Solution Read More »

Class 12 Computer Science MCQs Python Revision Tour Set – 2

Class 12 Computer Science Python Revision Tour MCQ's

Class 12 Computer Science 083 Python Revision Tour Set 2 Multiple Choice Questions (MCQs) 21. Is Python case-sensitive when dealing with identifiers? a) Yes b) No c) Machine dependent d) None of these 22. Which of the following is an invalid variable? a) name_of_student b) 2_name_of_student c) student_name_2 d) None of these 23. Which of

Class 12 Computer Science MCQs Python Revision Tour Set – 2 Read More »

Class 12 Computer Science MCQs Python Revision Tour Set – 1

Class 12 Computer Science Python Revision Tour MCQ's

Class 12 Computer Science 083 Python Revision Tour Set 1 Multiple Choice Questions [MCQs] 1. Who is the founder (designed by) of Python? a) Charles Babbage b) Guido Van Rossum c) Guido Gosling d) James Gosling 2. Python development is started in which year? a) 1990 b) 1991 c) 1992 d) 1989 3. Python is

Class 12 Computer Science MCQs Python Revision Tour Set – 1 Read More »

Class 12 Computer Science Sorting NCERT Exercise Solution

Class 12 Computer Science NCERT Exercise Solution Sorting 1. Consider a list of 10 elements:numList = [7,11,3,10,17,23,1,4,21,5].Display the partially sorted list after three complete passes of Bubble sort. Answer: If the first element is bigger, it is swapped with the second. Else, no change is done. 2. Identify the number of swaps required for sorting

Class 12 Computer Science Sorting NCERT Exercise Solution Read More »

Class 12 Computer Science Queues NCERT Exercise Solution

ncert_ch4_queue_exercise_solution.png

Queue 1. Fill in the blank. a) ________ is a linear list of elements in which insertion and deletion takes place from different ends. Answer : Queue b) Operations on a queue are performed in ______ order. Answer : FIFO c) Insertion operation in a queue is called _________ and deletion operation in a queue

Class 12 Computer Science Queues NCERT Exercise Solution Read More »

Class 12 Computer Science Stacks NCERT Exercise Solution

ncert_ch3_stack_exercise_solution

NCERT Exercise Solution – Chapter 3 : Stack 1. State TRUE or FALSE for the following cases: a) Stack is a linear data structureAnswer: (a) Trueb) Stack does not follow LIFO rule Answer: (b) Falsec) PUSH operation may result into underflow condition Answer: (c) False. Underflow term is use in case of POP i.e. try

Class 12 Computer Science Stacks NCERT Exercise Solution Read More »

Python Data Types

Python Data Types Data type of a variable tell us about the data contained by variable and allowed associated operations on it. Python has following built-in data types:  a) int (Integer) – Integer represents whole numbers without any fractional part. There are two types of Integers in Python – i.    Integer (signed) – Whole Number, with unlimited size, depends

Python Data Types Read More »

You cannot copy content of this page

Scroll to Top