Class 12th Computer Science MCQ | Question Answer

Class 12th Computer Science MCQ

Class 12th Computer Science MCQ

Class 12th Computer Science Notes For Board Exam | Computer Science Notes For Board Exam | Class 12 Computer Science Objective Answer | Computer Science class 12 Sumita Arora Solutions | 12th computer science one mark questions and answers | Chapter wise.

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++) MCQs

1 . In C++ every statement end with

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

2. Base class is

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

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

  • Operator overloading
  • Inheritance
  • Namespace
  • Reflection
Correct Answer
Reflection

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

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

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

  • iostream
  • istream
  • ostream
  • ifstream
Correct Answer
ostream

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

  • Multiple
  • Multilevel
  • Distributive
  • Hierarchical
Correct 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
Correct Answer
public

8. main is a/an

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

9. A set of arithmetic operators are.

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

10. A set of logical operators are.

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

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

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

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

  • Object
  • Encapsulation
  • Inheritance
  • Constructor
Correct Answer
Encapsulation

13. eof is an acronym of

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

14. C++ language has been developed by

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

15. Which operator has the lowest precedence?

  • Size
  • Urinary
  • Assignment
  • Comma
Correct Answer
Assignment

16. The ternary operator operates on how many operands?

  • 1
  • 2
  • 3
  • 4
Correct Answer
3

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

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

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

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

19. The individual elements in an array are called

  • encrypted
  • Decrypted
  • Subscripted
  • Identifier
Correct Answer
Subscripted

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

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

21. while loop is a …. controlled loop.

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

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

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

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

  • int
  • string
  • double
  • class
Correct Answer
class

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

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

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

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

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

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

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

  • operator
  • object
  • function
  • macro
Correct Answer
function

28. Which operator has the lowest precedence?

  • size
  • Unary
  • Assignment
  • Comma
Correct 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
Correct Answer
Data Encapsulation

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

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

Computer Science (Data Structure) MCQs

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

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

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

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

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

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

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

  • Sorting
  • Merging
  • Inserting
  • Traversal
Correct Answer
Traversal

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

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

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

  • 0
  • 1
  • 2
  • 3
Correct Answer
0

7. Quicksort is faster than

  • Selection sort
  • Insertion sort
  • Bubble sort
  • All of these
Correct 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
Correct Answer
Circular linked list

9. Disk piled up one above the other represent a

  • Stacks
  • Queues
  • Linked list
  • Array
Correct Answer
Stacks

10. Major operation performed on Data Structures are

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

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

  • Sorting
  • searching
  • Inserting
  • Traversing
Correct Answer
Sorting

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

  • Insertion
  • Sorting
  • Deletion
  • Traversing
Correct Answer
Traversing

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

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

14. LIFO means

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

15. FIFO means

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

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

  • Arrays
  • Pointers
  • Records
  • None
Correct Answer
None

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

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

18. Queue is work as.

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

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

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

20. Stack is work as.

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

21. Deleting from an empty list is known as.

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

22. A line in a grocery store represents a

  • Stacks
  • Linked list
  • Queues
  • Array
Correct Answer
Queues

23. In a queue, insertion is done at.

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

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

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

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

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

26. Beginning address of an array is called

  • Base Address
  • Top Address
  • Both (a) & (b)
  • None of the above
Correct 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
Correct 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
Correct Answer
A B C+ * D – EF */

Computer Science (Database) MCQs

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

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

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

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

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

4. A row in a relation is called

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

5. The duplication of data is known as.

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

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

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

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

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

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

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

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

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

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

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

11. Which of the following is a database element?

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

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

  • COMMIT
  • DELETE
  • UPDATE
  • INSERT
Correct Answer
COMMIT

13. SQL means.

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

14. DDL means.

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

15. DML means.

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

16. RDBMS means

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

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

  • Degree
  • Attribute
  • Cardinality
  • None of the above
Correct 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)
Correct Answer
Both (b) and (c)

Computer Science (BOOLEAN ALGEBRA) MCQs

1. How long is an IPv6 address?

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

2. Virus, Worms and Trojan horse are examples of

  • Adware
  • Malware
  • Spyware
  • All of these
Correct 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
Correct Answer
FTP

4. Web Browser is/are –

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

5. MAN refers to

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

6. Co-axial cables are made of

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

7. SMTP means

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

8. GIAS means

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

9. Home page is in the form of

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

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

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

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

  • NFS
  • ARPANET
  • NFSNET
  • ARCNET
Correct Answer
ARPANET

12. An interconnected collection of autonomous computers.

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

13. ……… is a network of networks.

  • Intranet
  • Webpage
  • Internet
  • Browser
Correct Answer
Intranet

14. The data transmission rate is expected in……

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

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

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

16. An Internet utility used for remote login is.

  • Telnet
  • Cookies
  • Firewall
  • Crackers
Correct Answer
Telnet

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

  • NCP
  • ISDN
  • LCP
  • HDLC
Correct Answer
NCP

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

  • IP
  • TCP
  • UDP
  • ARP
Correct 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
Correct Answer
name@website.info
▼ Important Links ▼
☞ Class 12th Physics Objective Questions Answer
☞ Class 12th Chemistry Objective Questions Answer

1 Comment

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

Leave a Comment

error: Content is protected !!