Class 12 Computer Science MCQ Questions

Class 12 Computer Science MCQ Questions

Class 12 Computer Science MCQ Online Test | Computer Science class 12 MCQ Question Bank | MCQ questions for class 12 computer science | Important Questions for Class 12 Computer Science chapter wise pdf | 12th ISC Class 12 Computer Science MCQ Questions.

These questions and answers follow the NCERT pattern, you can prepare for the board examination and competition examination with the help of these Computer Science MCQ Questions & Answers.

Computer Science (C++) MCQ

1 . In C++ every statement end with

  • colon(:)
  • Comma (,)
  • dot (.)
  • Semicolon (;)
Answer
Semicolon (;)

2. Base class is

  • normal class
  • derived class
  • child class
  • all of these
Answer
normal class

3. Which of the following is not a feature of C++.

  • Operator overloading
  • Inheritance
  • Namespace
  • Reflection
Answer
Reflection

4. Which of the following is not a member of the class?

  • Static function
  • Friend function
  • Virtual function
  • Const function
Answer
Const function

5. Which of the following is the correct class of the object cout?

  • iostream
  • istream
  • ostream
  • ifstream
Answer
ostream

6. Which of the following is not a type of inheritance?

  • Multiple
  • Multilevel
  • Distributive
  • Hierarchical
Answer
Distributive

7. In protected inheritance, a public data member of the base class will be treated in a derived class as.

  • public
  • private none of the above
  • protected
  • none of the above
Answer
public

8. main is a/an

  • keyword
  • object
  • function
  • none of the above
Answer
function

9. A set of arithmetic operators are.

  • + , – , * , / , %
  • < , > , >= , <=
  • &&, ||, !
  • none of the above
Answer
+ , – , * , / , %

10. A set of logical operators are.

  • + , – , * , / , %
  • < , > , >= , <=
  • &&, ||, !
  • none of the above
Answer
&&, ||, !

11. Which of the following concepts means determining at runtime what method to invoke.

  • Data hiding
  • Dynamic loading
  • Dynamic typing
  • Dynamic binding
Answer
Dynamic binding

12. is a way of combining data with functions into an object.

  • Object
  • Encapsulation
  • Inheritance
  • Constructor
Answer
Encapsulation

13. eof is an acronym of

  • the ending of line
  • ending of files
  • end of file
  • None of the above
Answer
end of file

14. C++ language has been developed by

  • Dennis Ritchie
  • Ken Thompson
  • Martin Richard
  • Bjarne Stroustrup
Answer
Bjarne Stroustrup

15. Which operator has the lowest precedence?

  • Size
  • Urinary
  • Assignment
  • Comma
Answer
Assignment

16. The ternary operator operates on how many operands?

  • 1
  • 2
  • 3
  • 4
Answer
3

17. An instance of a class is called…….

  • private
  • object
  • public
  • None of the above
Answer
object

18. Which of the following library function below by default aborts the Program.

  • end ( )
  • terminate ( )
  • abort ( )
  • exit ( )
Answer
exit ( )

19. The individual elements in an array are called

  • encrypted
  • Decrypted
  • Subscripted
  • Identifier
Answer
Subscripted

20. The default access level assigned to members of the class is.

  • Private
  • Public
  • Protected
  • None of these
Answer
Private

21. while loop is a …. controlled loop.

  • count
  • exit
  • entry
  • none of the above
Answer
entry

22. The do-while loop is a …….. Controlled loop.

  • count
  • exit
  • entry
  • none of the above
Answer
entry

23. Which of the following is an abstract data type?

  • int
  • string
  • double
  • class
Answer
class

24. For loop is a ….. Controlled loop.

  • count
  • exit
  • entry
  • none of the above
Answer
count

25. Which of the following approach is adopted by C++

  • Bottom-up
  • Top-down
  • Right-left
  • Left-right
Answer
Bottom-up

26. Which of the following is the symbol for AND
operator?

  • ll
  • &&
  • &
  • None of these
Answer
&&

27. cout is a/an ………..

  • operator
  • object
  • function
  • macro
Answer
function

28. Which operator has the lowest precedence?

  • size
  • Unary
  • Assignment
  • Comma
Answer
Assignment

29, In object-oriented programming, by wrapping up Characteristic and behavior into one unit, we achieve.

  • Data Abstraction
  • Data Encapsulation
  • Data hiding
  • All of these
Answer
Data Encapsulation

30. The use of the break statement in a switch statement is.

  • optional
  • compulsory
  • to check an error
  • none of these
Answer
compulsory

Computer Science (Data Structure) MCQ

1. Which of the following sorting algorithms divide-and-conquer type?

  • Bubble sort
  • Insertion sort
  • Quicksort
  • All of the above
Answer
Quicksort

2. Which of the following data structure is a linear data structure?

  • Trees
  • Graphs
  • Arrays
  • None of the above
Answer
Arrays

3. Which data structure allows deleting data elements from front and inserting at the rear?

  • Stacks
  • Queues
  • Deques
  • Binary search tree
Answer
Queues

4. The operation of processing each element in the list is known as

  • Sorting
  • Merging
  • Inserting
  • Traversal
Answer
Traversal

5. Which of the following is not the type of queue?

  • Ordinary queue
  • Single-ended queue
  • Circular queue
  • Priority queue
Answer
Ordinary queue

6. How many nodes does a binomial tree of the order have?

  • 0
  • 1
  • 2
  • 3
Answer
0

7. Quicksort is faster than

  • Selection sort
  • Insertion sort
  • Bubble sort
  • All of these
Answer
All of these

8. Which type of linked does not store NULL in the next field?

  • Singly-linked list
  • Doubly linked list
  • Circular linked list
  • All of these
Answer
Circular linked list

9. Disk piled up one above the other represent a

  • Stacks
  • Queues
  • Linked list
  • Array
Answer
Stacks

10. Major operation performed on Data Structures are

  • Sorting
  • Searching
  • Inserting
  • All the above
Answer
All the above

11. Arranging elements of an array in a specific order is called

  • Sorting
  • searching
  • Inserting
  • Traversing
Answer
Sorting

12. Processing all the elements of an array is called.

  • Insertion
  • Sorting
  • Deletion
  • Traversing
Answer
Traversing

13. Which of the following data structures are indexed structures?

  • Linear arrays
  • Linked list
  • Queue
  • Stack
Answer
Linked list

14. LIFO means

  • Last In First Out
  • Last In Fast Overflow
  • Last In First Overflow
  • None of the above
Answer
Last In First Out

15. FIFO means

  • First In First Out
  • Fast In Fast Out
  • Fast In First Out
  • First In Fast Out
Answer
First In First Out

16. Which of the following data structures cant store the non-homogeneous data elements?

  • Arrays
  • Pointers
  • Records
  • None
Answer
None

17. A stack is a …….. data Structure.

  • Dynamic
  • Linear ‘
  • Non-dynamic
  • None of the above
Answer
Linear ‘

18. Queue is work as.

  • FIFO
  • LIFO
  • Both a and b
  • None of the above
Answer
FIFO

19. Elements can be added or removed at both ends is called

  • Queue
  • Deque
  • Circular Queue
  • All the above
Answer
Deque

20. Stack is work as.

  • FIFO
  • LIFO
  • Both a and b
  • None of the above
Answer
LIFO

21. Deleting from an empty list is known as.

  • Overflow
  • Underflow
  • Both (a) and (b)
  • None of the above
Answer
Underflow

22. A line in a grocery store represents a

  • Stacks
  • Linked list
  • Queues
  • Array
Answer
Queues

23. In a queue, insertion is done at.

  • Rear
  • Front
  • Both (a) and (b)
  • none of the above
Answer
Rear

24. Which data structure allows deleting data elements from front and inserting at the rear?

  • Stacks
  • Deques
  • Queues
  • Binary search tree
Answer
Queues

25. Which of the following data structure is non-linear type?

  • Strings
  • Stacks
  • Lists
  • None of above
Answer
Lists

26. Beginning address of an array is called

  • Base Address
  • Top Address
  • Both (a) & (b)
  • None of the above
Answer
Both (a) & (b)

27. Transform prefix operation /- + A*BCD * EF to an infix form

  • (A + B * C – D) /E * F
  • (A+ B – C / D) * E *F
  • (A + B – C * D) /E * F
  • None of the above
Answer
(A + B * C – D) /E * F

28. Transform infix operation (A+ B * C- D) /E * F to an postfix form

  • A B C+ * D – EF */
  • A B C* + D – EF * /
  • A B C * + D – EF / *
  • None of the above
Answer
A B C+ * D – EF */

Computer Science (Database) MCQ

  1. Key is an ….. in the database system.
  • Attribute
  • Condition
  • Row
  • Variables
Answer
Attribute

2. Ordered by clause is used to ….. the query result.

  • sort
  • index
  • order
  • none of the above
Answer
order

3. A…….. is used to identify a particular record.

  • Index
  • Tuple
  • Key
  • All the above
Answer
Key

4. A row in a relation is called

  • Data
  • Domain
  • Tuple
  • None of the above
Answer
Tuple

5. The duplication of data is known as.

  • Data redundancy
  • Attribute
  • domain
  • None of these
Answer
Data redundancy

6. Set of possible values that an attribute can have……

  • Tuple
  • Value
  • Domain
  • None of the above
Answer
Domain

7. A…….. is an integrated collection of related files.

  • Database
  • Software
  • Record
  • All the above
Answer
Software

8. The number of tuples in a relation is called.

  • Degree
  • Attribute
  • Cardinality
  • None of the above
Answer
Cardinality

9. The following are components of a database except …….

  • user data
  • reports
  • metadata
  • indexes
Answer
user data

10. Which of the following is NOT a type of SQL constraint?

  • PRIMARY KEY
  • FOREIGN KEY
  • ALTERNATE KEY
  • UNIQUE
Answer
ALTERNATE KEY

11. Which of the following is a database element?

  • Data
  • Constraints and Schema
  • Relationships
  • All the above
Answer
All the above

12. Which of the following is not a Data Manipulation Language Statement?

  • COMMIT
  • DELETE
  • UPDATE
  • INSERT
Answer
COMMIT

13. SQL means.

  • Simple Query Language
  • Structured Quarter Language
  • Structured Query Language
  • None of the above
Answer
Structured Query Language

14. DDL means.

  • Data Definition Language
  • Data Dictionary Language
  • Data Description Language
  • None of the above
Answer
Data Description Language

15. DML means.

  • Data Manipulation Language
  • Data Maintained Language
  • Data Multiple Language
  • None of the above
Answer
Data Manipulation Language

16. RDBMS means

  • Relational Database Management System
  • Restricted Database Management System
  • Resolution Database Management System
  • All the above
Answer
Relational Database Management System

17. The number of tuples in a relation is called.

  • Degree
  • Attribute
  • Cardinality
  • None of the above
Answer
Degree

18. A transparent DBMS?

  • Can not hide sensitive information from users
  • Keep its logical structure hidden from users
  • keeps its physical structure hidden from users
  • Both (b) and (c)
Answer
Both (b) and (c)

Computer Science (BOOLEAN ALGEBRA) MCQ

1. How long is an IPv6 address?

  • 32 bits
  • 64 bits
  • 128 bits
  • 128 bits
Answer
128 bits

2. Virus, Worms and Trojan horse are examples of

  • Adware
  • Malware
  • Spyware
  • All of these
Answer
All of these

3. A program that enables users to post messages or articles for other people to read.

  • Gopher
  • FTP
  • Newsgroup
  • Electronic Newspaper
Answer
FTP

4. Web Browser is/are –

  • Google Chrome
  • Internet Explorer
  • Firefox
  • All the above
Answer
All the above

5. MAN refers to

  • Mega Area Network
  • Medium Area Network
  • Mini Area Network
  • Metropolitan Area Network
Answer
Metropolitan Area Network

6. Co-axial cables are made of

  • Board
  • Base
  • Both a) & b)
  • None of the above
Answer
Both a) & B)

7. SMTP means

  • Simple Mail Trapping Protocol
  • Simple Mail Transport Protocol
  • Simple Mail Transpose Protocol
  • Simple Mail Transfer Protocol
Answer
Simple Mail Transport Protocol

8. GIAS means

  • Gateway Internet Access Service
  • Gateway Intranet Access Service
  • Getaway Internet Access Service
  • None of the above
Answer
Gateway Internet Access Service

9. Home page is in the form of

  • Text
  • Hyperlink
  • Hypertext
  • All the above
Answer
Hyperlink

10. A tool that makes the internet easy to work with.

  • Internet
  • Cable
  • Gopher
  • None of the above
Answer
Gopher

11. …….. was the first network based on TCP/IP.

  • NFS
  • ARPANET
  • NFSNET
  • ARCNET
Answer
ARPANET

12. An interconnected collection of autonomous computers.

  • Bridge
  • Router
  • Network
  • None of these
Answer
Network

13. ……… is a network of networks.

  • Intranet
  • Webpage
  • Internet
  • Browser
Answer
Intranet

14. The data transmission rate is expected in……

  • Base
  • Baud
  • Amplitude
  • None of the above
Answer
Baud

15. Which of the following layer is not in the OSI model?

  • Physical Layer
  • Network Layer
  • Internet Layer
  • Transport Layer
Answer
Internet Layer

16. An Internet utility used for remote login is.

  • Telnet
  • Cookies
  • Firewall
  • Crackers
Answer
Telnet

17. What protocol does PPP use to identify the Network layer protocol?

  • NCP
  • ISDN
  • LCP
  • HDLC
Answer
NCP

18. Which protocol does DHCP use at the Transport layer?

  • IP
  • TCP
  • UDP
  • ARP
Answer
UDP

19. Which of the following is the correct format of Email address?

  • www.nameofebsite.com
  • name.website.com
  • name@website@info
  • name@website.info
Answer
name@website.info

1 thought on “Class 12 Computer Science MCQ Questions”

  1. Sir mujhe jac board class 12 (physics, chemistry, maths, computer science & English core) ka subjective questions chahiye

    Reply

Leave a Comment