0% found this document useful (0 votes)
27 views

Class 12 Computer Science MCQ Set

The document contains multiple-choice questions (MCQs) for Class 12 Computer Science covering topics such as database management systems, data communication, web technology, and programming concepts in C. Each set includes questions with multiple options and their corresponding answers. The document serves as a study guide for students preparing for exams in computer science.

Uploaded by

bhahari22
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Class 12 Computer Science MCQ Set

The document contains multiple-choice questions (MCQs) for Class 12 Computer Science covering topics such as database management systems, data communication, web technology, and programming concepts in C. Each set includes questions with multiple options and their corresponding answers. The document serves as a study guide for students preparing for exams in computer science.

Uploaded by

bhahari22
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Class 12 Computer Science MCQ set

Set - 1
1) In which type of database model each node can have only one parent and multiple child?
a) Hierarchical
b) Network
c) Relational
d) Multilevel
2) In which type of transmission media data are transmitted in the form of photons instead of electrons?
a) Twisted pair
b) Co-axial
c) Fibre optics
d) Infrared
3) How many layers are there in OSI (Open System Interconnection) model?
a) 4
b) 5
c) 6
d) 7
4) Which of the following is not the event object of JavaScript?
a) onsubmit
b) onclick
c) onselect
d) onpost
5) What is the Total memory allocated by union?
a) Sum of all
b) Highest among all
c) Lowest among all
d) None of above
6) Which of the following is the correct declaration of pointer variable?
a) int &p;
b) int *p;
c) int p*;
d) int p&;
7) Which of the following is not a file operation mode?
a) r
b) a
c) w+
d) rw
8) Which property of OOP means same function behave differently?
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Abstraction
9) The network of physical devices which are built-in with sensors, hardware and software?
a) AI
b) VR
c) IOT
d) Cloud computing
Solutions of Set - 1
1. a) Hierarchical
2. c) Fibre optics
3. d) 7
4. d) onpost
5. b) Highest among all
6. b) int *p;
7. d) rw
8. c) Polymorphism
9. c) IOT
Set - 2
1) Which of the following is not DBMS?
a) dBase
b) FoxPro
c) Oracle
d) PHP
2) In which type of transmission media sender and receiver may not be in LOS (Line of Sight)?
a) Microwave
b) Radiowave
c) Infrared
d) Optical Fibre
3) Which of the following is not a protocol?
a) FTP
b) SMTP
c) POP
d) UTP
4) Which of the following statement is used to insert image in HTML?
a) <image source = “ “>
b) <img source = “ “>
c) <img src = “ “>
d) <image src = “ “>
5) Which of the following is DML statement?
a) DROP, ALTER, CREATE
b) SELECT, INSERT, UPDATE, DELETE
c) TRUNCATE, PROVOKE
d) None of above
6) How can we access variable insight structure having following statement.
struct employee
{
int id;
char n[10];
};
struct employee e;
a) e.id
b) e_id
c) id.e
d) id_e
7) Which of the following is not the features of OOP?
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Looping
8) Which of the following is not the phase of SDLC?
a) System analysis
b) System design
c) System testing
d) System deploying
9) Which of the following is service model of cloud computing?
a) IaaS
b) PaaS
c) SaaS
d) All of above
Solutions of Set - 2
1. d) PHP
2. b) Radiowave
3. d) UTP
4. c) <img src = “ “>
5. b) SELECT, INSERT, UPDATE, DELETE
6. a) e.id
7. d) Looping
8. d) System deploying
9. d) All of above
Set - 3
1) Which is the smallest data storage hierarchy in database file?
a) Bit
b) Character
c) Field
d) Record
2) In which type of network architecture each node has equal authority?
a) Client-server
b) Peer to Peer
c) Decentralized
d) Centralized
3) In which type of topology does every node are connected to centrally located devices called hub?
a) Bus topology
b) Star topology
c) Ring topology
d) Tree topology
4) Which is the non-primitive (derived) datatype used in JavaScript?
a) String
b) Number
c) Boolean
d) Array
5) Which statement is used in PHP to display any text in the screen?
a) printf(“Hello world”);
b) print “Hello world”;
c) document.write(“Hello world”);
d) echo “Hello world”;
6) What will be the output of the following program?
void main( )
{
char a[10] = “apple” , b[10] = “apple” ;
int c;
c = strcmp (a, b);
printf (“Output: %d”, c);
getch( );
}
a) 0
b) Output: 0
c) Output: 1
d) Output: -1
7) Which of the following is system design tool?
a) Context diagram
b) Data Flow Diagram (DFD)
c) ER diagram (Entity Relationship)
d) All of above
8) The process that allow hiding of data and function?
a) Inheritance
b) Encapsulation
c) Polymorphism
d) Abstraction
9) The mechanism analyzing complex and large set of data to uncover valuable information
a) AI
b) Cloud computing
c) IOT
d) Big data
Solutions of Set - 2
1. a) Bit
2. b) Peer to Peer
3. b) Star topology
4. d) Array
5. d) echo “Hello world”;
6. b) Output: 0
7. d) All of above
8. b) Encapsulation
9. d) Big data
Set 4
1) Which of the statements are used in DDL?
a) CREATE, ALTER and DROP
b) CREATE, INSERT and SELECT
c) INSERT, UPDATE and DELETE
d) DELETE, ALTER and DROP
2) With SQL, how do you select all the records from table named “Persons” where the value of the column “FirstName”
ends with an “a”?
a) SELECT * FROM Persons WHERE FirstName = ‘a’
b) SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
c) SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
d) SELECT * FROM Persons WHERE FirstName = ‘%a%’
3) Which of the following statements is true about a star topology?
a) Each device is connected to a switch or hub
b) Each device is connected to each other
c) Each device is connected to a trunk
d) Each device is connected to a terminal
4) Which of the following is the correct syntax to display “Stay Safe” in an alert box using JavaScript?
a) alert-box(“Stay Safe”);
b) confirm(“Stay Safe”);
c) msgbox“Stay Safe”);
d) alert(“Stay Safe”);
5) What is the use of <A> tag?
a) To insert an image.
b) To create a link
c) To create a hyperlink.
d) To create a list.
6) What is the output of given C program?
void main( )
{
char str1[] = “FIRST” ; char str2[] = “SECOND” ; strcpy(str2,str1);
printf(“%s %s”, str1, str2); printf(“%d”, (str1 != str2));
printf(“%d”, strcmp(str1, str2)); }
a) FIRST FIRST 0 0
b) FIRST FIRST 1 1
c) FIRST FIRST 1 0
d) FIRST FIRST 0 1
7) Where is a class derived in inheritance?
a) Superclass
b) Subclass
c) Subsetclass
d) Relativeclass
8) Which of these is the correct order of the SDLC?
a) Analysis, Design, Coding, Testing, Implementation
b) Analysis, Design, Testing, Implementation, Coding
c) Implementation, Coding, Analysis, Design, Testing
d) Design, Testing, Implementation, Coding, Analysis
9) Why is cloud computing popular nowadays?
a) Cost-sharing and easily accessible
b) As modern technology and costly
c) Accessible and freely available
d) Affordable to all
Set 4 Solution
1. a) CREATE, ALTER and DROP
2. c) SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
3. a) Each device is connected to a switch or hub
4. d) alert(“Stay Safe”);
5. c) To create a hyperlink.
6. c) FIRST FIRST 1 0
7. a) Subclass
8. a) Analysis, Design, Coding, Testing, Implementation
9. a) Cost-sharing and easily accessible

Ch-1 Database Management System (DBMS)


1. A relational database consists of a collection of ....
a. Tables b. Fields c. Records d. Keys
2. A term ____ is used to refer to a row.
a. Attribute b. Tuple c. Field d. Instance
3. The term attribute refers to a ____ of a table.
a. Record b. Column c. Tuple d. Key
4. CREATE TABLE employee(name VARCHAR, ID INTEGER); What type of statement is this?
a. DML b. DDL c. View d. Integrity Constraint
5. In the given query , which of the keyword has to be inserted? INSERT INTO employee _____ (4,Alex,2000);
a. Table b. Values c. Relation d. Field
6. In the ____ normal form, a composite attribute is converted to individual attributes.
a. First b. Second c. Third d. Fourth
7. With SQL, how do you slect all the records from a table named "persons" where the value of the column
"FirstName" ends with an "a"?
a. SELECT * FROM Persons WHERE FirstName='a'
b. SELECT * FROM Persons WHERE FirstName LIKE 'a%'
c. SELECT * FROM Persons WHERE FirstName LIKE '%a'
d. SELECT * FROM Persons WHERE FirstName='%a%'
8. The UPDATE SQL clause can _____
a. update only one row at a time
b. update more than one row at a time
c. delete more than one row at a time
d. delete only one row at a time
9. Which SQL keyword is used to retrieves a maximum value?
a. MOST b. TOP c. MAX d. UPPER
10. Which of the following is not a DDL command?
a. UPDATE b. TRUNCATE c. ALTER d. None of the above
Ch-2 Data Communication & Networking
1) What are the five elements of basic communication system?
a) Data, Sender, Receiver, Medium and Message
b) Message, Sender, Receiver, Rules and Protocols
c) Message, Sender, Receiver, Medium and Protocols
d) Message, Sender , Receiver , Software and Protocols
2) Which of the following are communication modes?
a) Simplex b) Half Duplex c) Full Duplex d) All of above
3) Which of the following is simplex mode of communication system?
a) Newspaper b) Radio c) Keyboard to computer d) All of above
4) Which of the following is example of half duplex mode?
a) Walkie –Talkie b) Radio c) Mobile Phone d) None of above
5) Example of full duplex mode is ______
a) Newspaper b) Radio c) Walkie-Talkie d) Telephone / Mobile
6) What is the maximum length of typical type of LAN?
a) 1KM b) 3 KM c) 10 KM d) 100 KM
7) Cabling structure of a network is called _______
a) Topology b) Arrangements c) Physical Structure d) None
8) Physical Layout of a network is called _______
a) Layout b) Topology c) Structure d) None

Ch-3 Web Technology II


1. Which of the following language is not web scripting language?
a. HTML b. CSS c. JavaScript d. C Language
2. Which of the following statement is not true?
a. HTML is standard language for development webpages
b. HTML helps to embed text, graphics, audio, video and animation on webpage
c. HTML is also used to store database in websites
d. HTML also defines a link to traverse from one page to another
3. An example of client-side scripting language is ....
a. PHP b. JSP c. ASP d. JavaScript
4. JavaScript was originally developed by ......
a. Google b. Microsoft c. Sun microsystem d. Netscape
5. What are the basic three types of data in JavaScript?
a. Numbers, Strings and Boolean
b. Numbers Strings and Bytes
c. Integer, Character and Boolean
d. Numbers, Strings and Array
6. Grater than equal to >= is an example of
a. Assignement b. Comparaison c. Logical d. Conditional
7. Which of the following statement is not a type of looping statement?
a. do while b. for c. switch case d. while
8. Which of the following is not an example of object?
a. Array b. String c. Image d. Number
9. Which of the following statement is not true?
a. PHP is open-source scripting language
b. PHP is client site scripting language
c. PHP can be integrated with database like MYSQL, Oracle, Sybase and MS SQL Server
d. PHP syntax is same as C language
10. What are the two method of form access?
a. get/post b. give/take c. input/output d. get/set
11. In PHP in order to access MYSQL database you will use:
a mysqlconnect() function
b. mysql-connect() function
c. mysql_connect() function
d. sql_connect[) function
12. The .... statement is used to delete a table.
a. DROP TABLE b. DELETE TABLE c. DEL TABLE d. REMOVE TABLE
13. Which Program Copies The Databases From One Server To Another?
a. Mysqlcopydb b. Mysqldbcopy c. Mysqlflushdb d. Mysqldbflush
14. Which among the following have the maximum bytes?
a. varchar b. char c. Both varchar and char d. Text Type
15. The "father" Of MYSQL......
a. Bill Joy b. Michael Widenius c. Bill Gates d. Stephanie Wall

Ch-4 Programming Concept - C II


1. Which of the following are themselves a collection of different data types?
a. string b. structures c. char d. all of above
2. Which of the following cannot be a structure member?
a. Another structure b. Functions c. Array d. None of above
3. Presence of code like "s.t.b=10" indicates ______
a. Synatx Error b. Structure c. double data type d. An ordinary varaible name
4. Which of the following is a correct format for declaration of function?
a. return-type function-name(argument type);
b. return-type function-name(argument type){}
c. return-type (argument type) function-name;
d. all of above
5. Which of the following function declaration is illegal?
a. int 1bhk(int); b. int 1bhk(int a); c. int 2bhk(int *, int []); d. all of above
6. Which among the following is the odd one out?
a. printf b. fprintf c. putchar d. scanf
7. For a typical program, the input is taken using ____
a. scanf b. files c. command-line d. all of above
8. What will fopen will return, if there is any error while openeing a file?
a. nothing b. EOF c. NULL d. Depends on compiler
9. When a C program is started, OS environment is responsible for opeing file and providing pointer for that
file?
a. standrard input b. standard output c. standard error d. all of above
10. What is meant by 'a' in the following C operation? fp=fopen('random.txt","a");
a. attach b. append c. apprehend d. add
Answer key: 12. a
13. b
Chapter 1:
14. d
1. a Chapter 2: Chapter 3 15. b
2. b
1. c 1. d Chapter 4:
3. b
2. d 2. c
4. b 1. b
3. d 3. d
5. b 2. b
4. a 4. d
6. a 3. b
5. d 5. a
7. c 4. a
6. b 6. b
8. b 5. d
7. a 7. c
9. c 6. d
8. b 8. d
10. a 7. a
9. b
8. c
10. a
9. d
11. c
10. b

You might also like