Self Studies

CBSE Class 12 Computer Science Exam 2024 : Important MCQs with Answers For Last Minute Revision

CBSE 12th exams are going on and your Computer Science Paper is on 2nd April 2024. You have only a few days left for the Computer Science exam

This article is for you for CBSE Class 12 Computer Science Multiple Choice Questions are answer-type questions that students have to answer in the final.

These questions are created by the CBSE Computer Science syllabus for 2023–2024, previous year question papers, and sample papers. Through practicing these MCQs, students can not only evaluate their level of preparation but can also develop an efficient time management strategy for the final exam day.

In this, every important question has been sorted and collected, which is very important for your paper, so that the student can score good marks in less time. Answers to all the questions are given together.

CBSE Class 12 Computer Science Important MCQs 2024

1. What error occurs when you execute the following Python code snippet ?

apple = mango

(a) SyntaxError
(b) NameError
(c) ValueError
(d) TypeError

Ans. (b) NameError

2. Which of the following can be used as valid variable identifier(s) in Python ?

(a) total
(b) 7Salute
(c) Que$tion
(d) global

Ans. (b) 7Salute

3. Which of the following forces an expression to be converted into specific type ?

(a) Implicit type casting
(b) Mutable type casting
(c) Immutable type casting
(d) Explicit type casting

Ans. (d) Explicit type casting

4. If l=[11,22,33,44], then output of print(len(l)) will be

(a) 4
(b) 3
(c) 8
(d) 6

Ans. (a) 4

5. Which point can be considered as difference between string and list ?

(a) Length
(b) Mutability
(c) Indexing and Slicing
(d) Accessing individual elements

Ans. (b) Mutability

6. In python function, the function calling another function is known as ___________ and the function being called is known _____________ .

(a) main, keyword
(b) caller, called
(c) called, caller
(d) executer, execute

Ans. (b) caller, called

7. pow( ) function belongs to which library ?

(a) math
(b) string
(c) random
(d) maths

Ans. (a) math

8. Identify the module to which the following function load () belong to ?

(a) math
(b) random
(c) pickle
(d) sys

Ans. (c) pickle

9. Which of the following is a valid function name ?

(a) Start_game()
(b) start game()
(c) start-game()
(d) All of the above

Ans. (a) Start_game()

10. The variable declared inside the function is called a variable

(a) global
(b) local
(c) external
(d) none of the above

Ans. (b) local

11. To read the entire remaining contents of the file as a string from a file object myfile, we use

(a). myfile.read(2)
(b) myfile.read()
(c) myfile.readline()
(d) myfile.readlines()

Ans. (b) myfile.read()

12. Which function of a file object can be used to fetch the current cursor positioninterms of number of bytes from beginning of file ?

(a) seek( )
(b) bytes( )
(c) tell( )
(d) fetch( )

Ans. (c) tell( )

13. For the following python code, what will be the datatype of variables x, y, z giventhat the code runs without any error ?

f = open(‘story.txt’)
x = f.read(1)
y = f.readline()
z = f.readlines()

(a) string, list, list
(b) None, list, list
(c) string, string, list
(d) string, string, string

Ans. (c) string, string, list

 

14. Rahul is trying to write a tuple t = (10,20,30,40,50) on a binary file notebook.bin. Consider the following code written by him.

import pickle #statement 1
t = (10,20,30,40,50) #statement 2
myfile = open("notebook.bin",'w') #statement 3
pickle.dump(t, myfile) #statement 4
myfile.close()

Which of the following statement contains an error ?

(a) Statement 1
(b) Statement 2
(c) Statement 3
(d) Statement 4

Ans. (c) Statement 3

15. In which file, no delimiters are used for line and no translations occur ?

(a) Text file
(b) Binary file
(c) csv file
(d) None of the above

Ans. (b) Binary file 

16. Which of the following function is used to read data from a binary file ?

(a) write
(b) load
(c) dump
(d) scan

Ans. (b) load

17. Choose the file mode used to write data into binary file.

(a) rb
(b) wb
(c) r+
(d) w+

Ans. (b) wb

18. The default delimiter for a CSV file is :

(a) Semi colon
(b) Colon
(c) Comma
(d) Hyphen

Ans. (c) Comma

19. Which function is used to open a csv file ?

(a) Open()
(b) csv.open()
(c) writer()
(d) csv.writer()

Ans. (b) csv.open()

20. Which among the following is not a function of csv module ?

(a) reader()
(b) read()
(c) writer()
(d) writerows()

Ans. (b) read()

21. The opening function of a csv file is similar to the opening of:

(a) Binary file
(b) Text File
(c) Both of them
(d) None of them

Ans. (b) Text File

22. Which mode opens the file for exclusive creation, which fails in the case where file already exists

(a) a
(b) w
(c) x
(d) r

Ans. (c) x

23. Which list method can be used to perform Pop operation in a stack implemented by list ?

(a) pop()
(b) pop(1)
(c) remove()
(d) pop(0)
Ans:a

24. Consider the following operation performed on a stack of size 3, What will be theoutput ?

(* top position)
Puah(10)
Push(20)
Push(30)
Pop()
Push(40)
Push(50)

(a) overflow
(b) underflow
(c) 10 20 30 40 50*
(d) 10 20 40 50*

Ans. (a) overflow

25. Choose the correct output for the following stack operation

(* top position)
Push(5)
Push(8)
Pop()
Push(2)
Push(5)
Pop()
Push(1)

(a) 8 5 2 5 1*
(b) 8 5 5 2 1*
(c) 2 5 5 1*
(d) 5 2 1*

Ans. (d) 5 2 1*

26. Which list method can be used to perform Push operation in a stack implementedby list ?

(a) append()
(b) extend()
(c) push()
(d) insert()

Ans. (a) append()

27. Which of the following is not a unit of data transfer rate ?

(a) Abps
(b) Bps
(c) Kbps
(d) Gbps

Ans. (a) Abps

28. The ____________ is the difference between upper and lower frequencies of acommunication medium.

(a) Bandwidth
(b) Data rate
(c) Latency
(d) communication speed

Ans. (a) Bandwidth

29. Which of the following is/are true regarding packet switching ?

1. The packets of data are sent simultaneously through different paths.

2. The free communication channel is utilized properly.

3. Protocols are used for the reliable receipt of data at the receiver end.

4. Sequence numbers are assigned to the data packets.

(a) Only 1
(b) Both 1 & 4
(c) Both 2 & 4
(d) All of the above.

Ans. (d) All of the above.

30. Selecting a communication path among multiple available paths is termed as:

(a) Transmission
(b) Reception
(c) Switching
(d) multiplexing

Ans. (c) Switching

31. What are the three common types of computer networks ?

(a) ROM, MAN, LAN
(b) RAM, WAN, LAN
(c) MAN, LAN, WAN
(d) None of the above

Ans. (c) MAN, LAN, WAN

32. Mr. John is a small businessman who runs Hardware. He has been experiencingproblems with his small accounting department, which he depends on to provide salesreports. Mr. John wants to share information between his 7 computer stations andhave one central printing area. What type of network would you recommend to Mr. John ?

(a) MAN
(b) LAN
(c) WAN
(d) SAN

Ans. (b) LAN

33. What is the acronym MAN stand for ?

(a) Magnetic Access Network
(b) Metropolitan Area Network
(c) Multi-Area Network
(d) Multi-Access net

Ans. (b) Metropolitan Area Network

34. What’s a web browser ?

(a) A kind of spider
(b) A computer that store www files
(c) A person who likes to look at websites
(d) A software program that allows you to access sites on the World Wide Web

Ans. (d) A software program that allows you to access sites on the World Wide Web

35. What is not true in respect of DBMS ?

(a) Database enforces standards
(b) Database increases redundancy
(c) Database facilitates sharing of data
(d) Database helps to maintain integrity

Ans. (b) Database increases redundancy

36. Degree refers to total ____________ .

(a) number of rows in a table
(b) number of columns in a table
(c) number of data items in a table
(d) none of the above

Ans. (b) number of columns in a table

37. Repetition of data is called ____________ .

(a) Data redundancy
(b) Data Description
(c) Data inconsistency
(d) None of the above

Ans. (a) Data redundancy

38. A relational database consists of a collection of ____________ . 

(a) Fields
(b) Records
(c) Keys
(d) Tables

Ans. (d)Tables

39. Which of the following is a disadvantage of file processing system ?

(a) Data redundancy
(b) Data isolation
(c) Data inconsistency
(d) All of the above

Ans. (d) All of the above

40. Which one of the following attribute can be taken as a primary key ?

(a) Name
(b) Street
(c) Id
(d) Department

Ans. (c) Id

41. An attribute in a relation is a foreign key if it is the ____________ key in any other relation.

(a) Candidate
(b) Primary
(c) Super
(d) Sub

Ans. (b) Primary

42. Which of the following attributes can be considered as a choice for the primary key ?

(a) Name
(b) Street
(c) RollNo
(d) Subject

Ans. (c) RollNo

CBSE Class 12 Study Materials

CBSE Class 12 Syllabus 2023-24 CBSE Class 12 Previous Year Papers
NCERT Books For Class 12 Books NCERT Class 12 Solutions
CBSE Class 12 Full Study Material CBSE Class 12 Sample Paper 2023-24

👉 CBSE Class 12 Answer Key 2024 Links All Subject

The question papers for the respective day-wise exams are available at the links below:

CBSE Class 12 Question Paper & Answer Key 2024
CBSE Board Class 12 Mathematics Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Board Class 12 Physics Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Class 12 Geography Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Class 12 Chemistry Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Class 12 Exam Analysis 2024 : English Core & Elective Paper Analysis, Review & Question Paper with Answer Key
CBSE Class 12 Exam Analysis 2024 : Hindi Core & Elective Analysis, Review & Question Paper with Answer Key
CBSE Board Class 12 Physical Education Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Board Class 12 Psychology Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Board Class 12 Economics Answer Key 2024 and Question Papers, Download PDF All SETs
CBSE Board Class 12 Biology Answer Key 2024 and Question Papers, Download PDF All SETs

 

Self Studies Home Quiz Quiz Self Studies Short News Self Studies Web Story
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now