In this article, I will provide MCQ Computer Science Class 12 Quiz for the board exam. Attend the quiz and check your knowledge. Every quiz contains enough questions to assess your knowledge topic-wise. Here we go!
As you have seen MCQs are a very important part of the Computer Science Class 12 Sample paper.
MCQ Computer Science Class 12 Quiz 1
This MCQ Computer Science Class 12 Quiz consists of questions from the Python Revision tour and Functions only.
There are 20 Questions taken from these topics and you have 40 minutes to attempt them. So you have 2 minutes to attend to each question. After 40 minutes quiz gets over automatically.
Every question has 4 options for answers and only one answer is correct.
We are taking your name and email ID to prepare your result. When you complete the quiz you will get your result immediately after it. Your passing mark for this quiz is 7/20.
Enjoy the quiz now!
Computer Science Class 12 Python revision tour MCQ
Python file handling MCQ quiz Computer Science Class 12 – Part 1
347
Created on January 10, 2023 By tutorialaicsip
File Handling MCQs CS Class 12
1 / 20
In the statement f=open("info.txt","r"), f is ___________
2 / 20
Mona is learning the python data file handling concept. His friend asked her a question regarding the operations on a file. Which of the following operation is not performed on files in python?
3 / 20
Which of the following statement is correct for opening a file data.txt?
i) f=open("data.txt")
ii) f.open("data.txt")
iii) open(f="data.txt")
iv) file.open("data.txt")
4 / 20
The files which represent the actual content such as image, audio, video, etc and not in human-readable form are known as _______
5 / 20
Which statement is correct about files in Python?
6 / 20
There are mainly two files. They are
7 / 20
Which python module contains different functions for various handling files?
8 / 20
Archana's teacher asked her about python file modes. Which of the following is not supported file mode in Python?
9 / 20
Every line in a text file is separated by a special character. Which of the following character it is?
10 / 20
Assertion(A): Even a single bit change can corrupt the file and make it unreadable to the supporting application.
Reasoning(R): Binary files are stored in a computer in a sequence of bytes.
11 / 20
Krupa wants to open the file in read-write mode. Select the appropriate file mode for her.
12 / 20
Which of the following characters are used to separate the values in a text file?
13 / 20
Which of the following is the correct statement for closing a file?
14 / 20
Which of the following statement is/are correct about text files?
15 / 20
Kunjan is trying to add content to a text file every time he runs the program. But when he is running the program the file content is overwritten every time. How he can resolve this issue? Select a statement to help him.
16 / 20
Which of the following is valid extension for text file?
17 / 20
A ___________ is named location on secondary storage media where data are permanently stored for later access.
18 / 20
Users can also use another character as EOL characters in text files except '\n'.
19 / 20
Which of the following file mode is read-only mode?
20 / 20
Prtyaksh is a class XII student. His teacher asks him to select the correct statement which creates a text file "info.txt" and if file doesn't exist, the statement will create a file. Help him by selecting a correct option.
Your score is
The average score is 61%
Restart quiz
Python file handling MCQ quiz Computer Science Class 12 – Part 2
206
Created on January 10, 2023 By tutorialaicsip
File Handling CS Class XII Part 2
2 / 20
Dev has declared a variable as follows:
n=int(input("Enter Number:"))
f=open("marks.txt","w")
Select the appropriate option to write this number into the text file marks.txt.
6 / 20
If info.txt contains the following content:
"India is one land that all men desire to see."
What will be the output of the code given below
f=open("info.txt")
print(f.read(-4))
11 / 20
Reorder the steps to write data into csv file:
1) open csv file using open () function
2) write rows using writer_object.writerow()
3) declare writer_object
4) Close the file
20 / 20
Smit has asked to write a program to print all the words from the text file. He wrote the following code but forgot one statement given as fill in the blank.
f=open("news.txt","r")
data=___________
w=data.split()
Your score is
The average score is 59%
Restart quiz
Important MCQs for Data Structure Stack Class 12 Computer Science
154
Created on January 19, 2023 By tutorialaicsip
Stack Class 12
1 / 25
1. Which statement(s) is/are correct for sequence data types in python?
i) It represents a collection of elements of either the same or different types
ii) It makes a group of data
iii) Every element of the sequence has its own identity
iv) Different operation like reversal, slicing, counting of elements can be applied on sequence
2 / 25
2. Select appropriate applications of the stack from the following:
i) Reverse String
ii) Undo redo commands in a text editor
iii) Arithmetic Expressions in Program
iv) Call History in cell phone
6 / 25
6. Consider the following partial code for the function to check whether the stack is underflow or not. Select the appropriate option to fill in the blanks.
i) len(stk)==0
ii) stk==[]
iii) stk==Empty
11 / 25
11. Consider the following stack opetaions:
i) Stack is Empty
ii) 15 is Pushed
iii) 20 is Pushed
iv) 20 is popped
v) 13 is pushed
vi) 19 is pushed
vii) 19 is popped
What will be the final values of stack?
13 / 25
13. Rearrange the following algorithm in appropriate order:
i) read the value of top most element from the list
ii) find number of elements in the list
iii) insert/delete elements
iv) check underflow or overflow
21 / 25
21. Which of the following are popular data structure of python?
i) stack
ii) Queue
iii) Strings
iv) Lists
23 / 25
23. Which of the following statement is correct to create an empty stack?
i) stk = []
ii) stk = list()
iii) stk = None
24 / 25
24. Pooja has provided options as follows:
i) Pile of books
ii) Assembly Lines
iii) Browser history
iv) A ticket Line
Identify options which represents stack.
Your score is
The average score is 68%
Restart quiz
Important MCQ questions Computer Networks Class 12 Computer Science – Part 1
224
Created on January 23, 2023 By tutorialaicsip
Important MCQs Computer Networks
Your score is
The average score is 44%
Share with your friends and invite them to test their knowledge.
LinkedIn
Facebook
Important MCQ questions Computer Networks Class 12 Computer Science – Part 2
150
Created on February 13, 2023 By tutorialaicsip
Network Topology
2 / 15
2. Identify the topology:
i) Each device is connected to the other
ii) More secure compared to other topologies
iii) Wiring is too complex
iv) there are many redundant or unutilised connections
15 / 15
15. Which of the following is true about ring topology
Your score is
The average score is 58%
Restart quiz
Follow this link for sample papers.
Sample Papers Computer Science Class 12
Visit this link for more python MCQs.
Like this:Like Loading...
Related
Post navigation
your quiz was awesome it is helping students, keep doing it .. thanx
Thank you for your kind words
Very best channel. And everthinh available on this site. Even our teacher also follow this channel. Keep it up sir. Well arranged content for 9 t0 12 computer.
Thank you for your kind words