Computer Science McQs with Answers
Here are 100 multiple choice questions with answers in the field of computer science:
1. Which of the following is not a characteristic of object-oriented programming?
a) Inheritance
b) Encapsulation
c) Modularity
d) Sequential execution
Answer: d) Sequential execution
2. What is a function in programming?
a) A block of code that performs a specific task
b) A type of data
c) A program that runs in the background
d) A loop that executes a set of instructions repeatedly
Answer: a) A block of code that performs a specific task
3. What is the purpose of a compiler?
a) To translate a high-level programming language into machine code
b) To execute instructions and process data
c) To store data and programs
d) To display information on a screen
Answer: a) To translate a high-level programming language into machine code
4. What is a loop in programming?
a) A block of code that is executed repeatedly until a certain condition is met
b) A type of data
c) A program that runs in the background
d) A function that performs a specific task
Answer: a) A block of code that is executed repeatedly until a certain condition is met
5. What is an algorithm?
a) A set of instructions for solving a problem
b) A type of data
c) A program that runs in the background
d) A loop that executes a set of instructions repeatedly
Answer: a) A set of instructions for solving a problem
6. What is a database?
a) A collection of related data organized in a specific way
b) A set of programs that control the operation of a computer
c) A type of computer storage
d) A programming language
Answer: a) A collection of related data organized in a specific way
7. What is a computer virus?
a) A small piece of software that can replicate itself and spread from one computer to another
b) A program that runs in the background
c) A type of data
d) A loop that executes a set of instructions repeatedly
Answer: a) A small piece of software that can replicate itself and spread from one computer to another
8. What is a firewall?
a) A security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules
b) A program that runs in the background
c) A type of data
d) A loop that executes a set of instructions repeatedly
Answer: a) A security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules
9. What is a cookie?
a) A small text file stored on a user's computer by a web server, containing information about the user's web browsing activity
b) A program that runs in the background
c) A type of data
d) A loop that executes a set of instructions repeatedly
Answer: a) A small text file stored on a user's computer by a web server, containing information about the user's web browsing activity
10.What is a search engine?
a) A program that searches a database of internet sites, such as Google, to find information requested by a user
b) A program that runs in the background
c) A type of data
d) A loop that executes a set of instructions repeatedly
Answer: a) A program that searches a database of internet sites, such as Google, to find information requested by a user
11.What is a computer?
a) An electronic device that stores, retrieves, and processes data
b) A device that converts analog signals into digital signals
c) A device that converts digital signals into analog signals
d) A device that amplifies electrical signals
Answer: a) An electronic device that stores, retrieves, and processes data
12.What is the function of the CPU (Central Processing Unit)?
a) To store data and programs
b) To execute instructions and process data
c) To transmit data over a network
d) To display information on a screen
Answer: b) To execute instructions and process data
13.What is an operating system?
a) A collection of hardware components
b) A set of programs that control the operation of a computer
c) A type of computer storage
d) A programming language
Answer: b) A set of programs that control the operation of a computer
14.What is the function of RAM (Random Access Memory)?
a) To store data and programs temporarily while the computer is running
b) To store data and programs permanently
c) To execute instructions and process data
d) To transmit data over a network
Answer: a) To store data and programs temporarily while the computer is running
15.What is an algorithm?
a) A series of instructions for solving a problem
b) A type of data structure
c) A programming language
d) A computer hardware component
Answer: a) A series of instructions for solving a problem
16.What is a compiler?
a) A program that translates high-level programming languages into machine code
b) A program that translates machine code into high-level programming languages
c) A program that executes machine code
d) A program that executes high-level programming languages
Answer: a) A program that translates high-level programming languages into machine code
17.What is a syntax error?
a) An error in the logic of a program
b) An error in the spelling or grammar of a program
c) An error in the input data of a program
d) An error in the output of a program
Answer: b) An error in the spelling or grammar of a program
18.What is a variable?
a) A named location in memory where a value can be stored
b) A fixed value in a program
c) A data types
d) A looping construct
Answer: a) A named location in memory where a value can be stored
19.What is a loop?
a) A sequence of instructions that is executed repeatedly until a certain condition is met
b) A decision-making construct
c) A data types
d) A named location in memory
Answer: a) A sequence of instructions that is executed repeatedly until a certain condition is met
20.What is a function in programming?
a) A block of code that performs a specific task
b) A type of data
c) A program that runs in the background
d) A loop that executes a set of instructions repeatedly
Answer: a) A block of code that performs a specific task
21.What is a class in object-oriented programming?
a) A template for creating objects
b) A data types
c) A looping construct
d) A named location in memory
Answer: a) A template for creating objects
22.What is Microsoft Word?
a) A spreadsheet program
b) A presentation program
c) A database program
d) A word processing program
Answer: d) A word processing program
23.How can you create a new document in Microsoft Word?
a) Click the "New Document" button in the toolbar
b) Click the "File" menu and select "New"
c) Press the "Ctrl" + "N" keys
d) All of the above
Answer: d) All of the above
24.How can you change the font size of selected text in Microsoft Word?
a) Use the "Font Size" drop-down menu in the toolbar
b) Use the "Format" menu and select "Font"
c) Press the "Ctrl" + "Shift" + ">" keys to increase the font size or the "Ctrl" + "Shift" + "<" keys to decrease the font size
d) All of the above
Answer: d) All of the above
25.How can you save a copy of a document under a new name in Microsoft Word?
a) Click the "Save As" button in the toolbar
b) Click the "File" menu and select "Save As"
c) Press the "Ctrl" + "Shift" + "S" keys
d) All of the above
Answer: d) All of the above
26.How can you insert a hyperlink into a document in Microsoft Word?
a) Use the "Insert" menu and select "Hyperlink"
b) Right-click on the text and select "Hyperlink" from the context menu
c) Press the "Ctrl" + "K" keys
d) All of the above
Answer: d) All of the above
27.How can you change the page orientation of a document in Microsoft Word?
a) Use the "Page Layout" menu and select "Orientation"
b) Click the "Page Orientation" button in the toolbar
c) Press the "Ctrl" + "Alt" + "O" keys
d) All of the above
Answer: d) All of the above
28.How can you insert a page break in a document in Microsoft Word?
a) Use the "Insert" menu and select "Page Break"
b) Click the "Page Break" button in the toolbar
c) Press the "Ctrl" + "Enter" keys
d) All of the above
Answer: d) All of the above
29.How can you delete a page in a document in Microsoft Word?
a) Use the "Edit" menu and select "Delete"
b) Press the "Delete" key
c) Right-click on the page and select "Delete" from the context menu
d) All of the above
Answer: d) All of the above
30.How can you add a header or footer to a document in Microsoft Word?
a) Use the "Insert" menu and select "Header" or "Footer"
b) Click the "Header" or "Footer" button in the toolbar
c) Press the "Ctrl" + "Alt" + "H" or "Ctrl" + "Alt" + "F" keys
d) All of the above
Answer: d) All of the above
31.What is Microsoft Excel?
a) A word processing program
b) A presentation program
c) A database program
d) A spreadsheet program
Answer: d) A spreadsheet program
32.How can you create a new workbook in Microsoft Excel?
a) Click the "New Workbook" button in the toolbar
b) Click the "File" menu and select "New"
c) Press the "Ctrl" + "N" keys
d) All of the above
Answer: d) All of the above
33.How can you enter data into a cell in Microsoft Excel?
a) Double-click on the cell and type the data
b) Select the cell and type the data in the formula bar
c) Right-click on the cell and select "Edit Cell" from the context menu
d) All of the above
Answer: d) All of the above
34.How can you save a copy of a workbook under a new name in Microsoft Excel?
a) Click the "Save As" button in the toolbar
b) Click the "File" menu and select "Save As"
c) Press the "Ctrl" + "Shift" + "S" keys
d) All of the above
Answer: d) All of the above
35.How can you insert a row in a worksheet in Microsoft Excel?
a) Right-click on the row number and select "Insert" from the context menu
b) Use the "Insert" menu and select "Insert Rows"
c) Press the "Ctrl" + "Shift" + "+" keys
d) All of the above
Answer: d) All of the above
36.How can you delete a row in a worksheet in Microsoft Excel?
a) Right-click on the row number and select "Delete" from the context menu
b) Use the "Edit" menu and select "Delete"
c) Press the "Ctrl" + "-" keys
d) All of the above
Answer: d) All of the above
37.How can you add a formula to a cell in Microsoft Excel?
a) Type the formula in the cell and press "Enter"
b) Type the formula in the formula bar and press "Enter"
c) Use the "Formulas" menu to insert a formula
d) All of the above
Answer: d) All of the above
38.How can you add a chart to a worksheet in Microsoft Excel?
a) Use the "Insert" menu and select "Chart"
b) Click the "Chart" button in the toolbar
c) Press the "Ctrl" + "Alt" + "C" keys
d) All of the above
Answer: d) All of the above
39.How can you add a filter to a table in Microsoft Excel?
a) Use the "Data" menu and select "Filter"
b) Click the "Filter" button in the toolbar
c) Press the "Ctrl" + "Shift" + "L" keys
d) All of the above
Answer: d) All of the above
40.How can you sort data in a table in Microsoft Excel?
a) Use the "Data" menu and select "Sort"
b) Click the "Sort" button in the toolbar
c) Press the "Ctrl" + "Alt" + "S" keys
d) All of the above
41.What is a database?
a) A collection of related data organized in a structured way
b) A set of programs that control the operation of a computer
c) A type of computer storage
d) A programming language
Answer: a) A collection of related data organized in a structured way
42.What is the purpose of a database management system (DBMS)?
a) To create and manage databases
b) To store data
c) To transmit data over a network
d) To display information on a screen
Answer: a) To create and manage databases
43.What is a primary key in a database?
a) A unique identifier for each record in a table
b) A field that stores data about the primary purpose of a table
c) A field that stores data about the secondary purpose of a table
d) A field that stores data about the relationships between tables
Answer: a) A unique identifier for each record in a table
44.What is a foreign key in a database?
a) A unique identifier for each record in a table
b) A field that stores data about the primary purpose of a table
c) A field that stores data about the secondary purpose of a table
d) A field that stores data about the relationships between tables
Answer: d) A field that stores data about the relationships between tables
45.What is a query in a database?
a) A command used to retrieve data from a database
b) A command used to update data in a database
c) A command used to delete data from a database
d) All of the above
Answer: a) A command used to retrieve data from a database
46.What is a join in a database?
a) A way to combine data from multiple tables based on a common field
b) A way to divide a table into smaller tables
c) A way to add a new field to a table
d) A way to delete a field from a table
Answer: a) A way to combine data from multiple tables based on a common field
47.What is a transaction in a database?
a) A group of database operations that are executed as a single unit
b) A way to lock a record in a database to prevent other users from accessing it
c) A way to backup a database
d) A way to restore a database
Answer: a) A group of database operations that are executed as a single unit
48.What is normalization in a database?
a) A process for organizing data in a database to minimize redundancy and dependency
b) A process for organizing data in a database to maximize redundancy and dependency
c) A process for organizing data in a database to optimize performance
d) A process for organizing data in a database to optimize security
Answer: a) A process for organizing data in a database to minimize redundancy and dependency
49.What is an index in a database?
a) A data structure that allows for faster search and access of records in a table
b) A data structure that allows for slower search and access of records in a table
c) A data structure that allows for more secure storage of records in a table
d) A data structure that allows for more flexible storage of records in a table
Answer: a) A data structure that allows for faster search and access of records in a table
50.What is a database management system (DBMS)?
a) A set of programs that enable users to create, maintain, and access a database
b) A type of computer storage
c) A programming language
d) A collection of related data organized in a structured way
Answer: a) A set of programs that enable users to create, maintain, and access a database
1: 1 Byte =_____?
Ans: 8 bits
2: BIOS stands for____?
Ans: Basic Input Output system
3: Father of “C” programming language?
Ans: Dennis Ritchie
4: The instructions that tell a computer how to carry out the processing tasks are referred to as computer_____?
Ans: Programs
5: An area of a computer that temporarily holds data waiting to be processed is_____?
Ans: Memory
6: _____ is the key to close a selected drop -down list; cancel a command and close a dialog box.
Ans: ESC
7: _____is the key we use to run the selected command?
Ans: ENTER
8: ______Is the functional key to display save-as box?
Ans: F12
9: Data becomes ______ when it is presented in a format that people can understand and use.
Ans: Information
10: The term _____ designates equipment that might be added to a computer system to enhance its functionality.
Ans: Peripheral Device
11: MS Word provide how many views of a document?
Ans: 5
12: A type of utility program In Windows used to manage files and folders?
Ans: File manager
13: Changing the font, style, color or alignment of the text is called?
Ans: Document formatting
14: By default, in which view MS word document opens?
Ans: Print layout view
15: What is PPT in MS Office?
Ans: PPT is MS power point file extension
16: Which is word processing software?
Ans: MS Word
17: A single page program developed by using a presentation program like MS Power Point is called?
Ans: Slide
18: What is the extension of MS word file?
Ans: DOCX
19: Multiple series of slides in PPT is called?
Ans: Slide deck
20: Largest network of computers around the world that communicate and share data and information and other sources is called?
Ans: Internet
21: Which of the following unit is responsible for converting the data received from the user into a computer understandable format?
Ans: Input Unit