0% found this document useful (0 votes)
4 views32 pages

Computer

The document contains a series of multiple-choice questions (MCQs) related to HTML and Calc, providing correct answers along with brief explanations. It covers fundamental concepts such as HTML tags, attributes, and the structure of HTML documents, as well as features and functions of Calc software. Each question is followed by the correct answer and a short solution for clarity.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views32 pages

Computer

The document contains a series of multiple-choice questions (MCQs) related to HTML and Calc, providing correct answers along with brief explanations. It covers fundamental concepts such as HTML tags, attributes, and the structure of HTML documents, as well as features and functions of Calc software. Each question is followed by the correct answer and a short solution for clarity.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COMPUTER

HTML.
correct answer + short solution.

HTML – MCQs

Q1.

What does HTML stand for?


a) Hyper Text Making Language
b) Hyper Text Markup Language
c) High Transfer Markup Language
d) Hyperlink and Text Marking Language

Answer: b) Hyper Text Markup Language


HTML is a markup language, not a programming language.

Q2.

Which tag is used to define the start of an HTML document?


a) <body>
b) <html>
c) <head>
d) <title>

Answer: b) <html>
Every HTML file begins with <html> and ends with </html>.

Q3.

Which tag contains information like title and metadata?


a) <head>
b) <body>
c) <title>
d) <meta>

Answer: a) <head>
The <head> section stores title, meta info, links, scripts etc.

1
Q4.

The visible content of a web page is written inside:


a) <head>
b) <html>
c) <body>
d) <title>

Answer: c) <body>
All user-visible elements like text, images, links appear inside <body>.

Q5.

Which tag is used to create a line break?


a) <br>
b) <p>
c) <hr>
d) <lb>

Answer: a) <br>
The <br> tag creates a line break without starting a new paragraph.

Q6.

Which tag is used for the largest heading in HTML?


a) <h6>
b) <h1>
c) <heading>
d) <hl>

Answer: b) <h1>
HTML headings go from <h1> (largest) to <h6> (smallest).

Q7.

Which attribute is used to display text when the image is not loaded?
a) title

2
b) value
c) alt
d) name

Answer: c) alt
The alt attribute provides alternative text for images.

Q8.

Which of the following is NOT an HTML tag?


a) <p>
b) <b>
c) <table>
d) <break>

Answer: d) <break>
The correct tag is <br> for line breaks, not <break>.

Q9.

HTML documents are saved with which file extension?


a) .doc
b) .html or .htm
c) .txt
d) .css

Answer: b) .html or .htm


HTML files always end with .html or .htm.

Q10.

Which tag inserts a horizontal line across the page?


a) <line>
b) <br>
c) <hr>
d) <border>

3
Answer: c) <hr>
The <hr> tag creates a thematic horizontal rule/line.

Q11.

HTML is a __________ language.


a) Programming
b) Markup
c) Scripting
d) Machine

Answer: b) Markup
HTML marks up content using tags—it is not a programming language.

Q12.

Which tag is used to add a hyperlink?


a) <link>
b) <href>
c) <a>
d) <hyper>

Answer: c) <a>
The <a> tag defines a hyperlink using the href attribute.

Q13.

Which tag is used to add a paragraph in HTML?


a) <para>
b) <p>
c) <pg>
d) <pr>

Answer: b) <p>
Paragraphs are always enclosed in <p> ... </p>.

4
Q14.

Which of these is NOT a web browser?


a) Google Chrome
b) Mozilla Firefox
c) Microsoft Word
d) Safari

Answer: c) Microsoft Word


MS Word is a word processor, not a browser.

Q15.

What is the correct structure of a basic HTML document?


a) <html><title><body></title></body></html>
b) <html><head><body></head></body></html>
c) <html><head></head><body></body></html>
d) <html><body><head></head></body></html>

Answer: c) <html><head></head><body></body></html>
The proper structure: HTML → HEAD → BODY.

Q16.

Which tag is used to define the title of a web page shown in the browser tab?
a) <header>
b) <title>
c) <head>
d) <h1>

Answer: b) <title>
The <title> tag inside <head> defines the title of the page (shown on browser tab).

Q17.

Where is the <title> tag placed?


a) Inside <body>
b) Inside <html> but outside <head>

5
c) Inside <head>
d) Inside <footer>

Answer: c) Inside <head>


Title must always be placed inside the <head> section.

Q18.

Which tag is used to add extra information (metadata) to a webpage?


a) <head>
b) <meta>
c) <info>
d) <data>

Answer: b) <meta>
<meta> provides metadata such as description, keywords, author, etc.

Q19.

Which tag is used to link an external CSS file in HTML?


a) <style>
b) <script>
c) <link>
d) <css>

Answer: c) <link>
The <link> tag connects an external stylesheet (CSS) to HTML.

Q20.

Which section contains the actual content of the webpage?


a) <head>
b) <body>
c) <title>
d) <meta>

Answer: b) <body>
All text, images, links, videos visible to the user appear inside <body>.

6
Q21.

What is the correct order of tags in an HTML page?


a) <html> → <body> → <head>
b) <html> → <head> → <body>
c) <head> → <body> → <html>
d) <body> → <head> → <html>

Answer: b) <html> → <head> → <body>


The standard structure is <html>, then <head>, then <body>.

Q22.

Which tag is used to display text on the browser’s title bar?


a) <h1>
b) <meta>
c) <title>
d) <caption>

Answer: c) <title>
The <title> tag text shows up on the browser title/tab.

Q23.

Which tag is used to add JavaScript code in HTML?


a) <js>
b) <script>
c) <javascript>
d) <code>

Answer: b) <script>
JavaScript is always written inside <script> tags (head or body).

Q24.

Which of the following is NOT placed inside <head>?


a) <title>

7
b) <meta>
c) <link>
d) <p>

Answer: d) <p>
Paragraphs <p> always go inside <body>, not <head>.

Q25.

Which attribute of <body> is used to change background color?


a) bgcolor
b) color
c) background
d) text

Answer: a) bgcolor
Example: <body bgcolor="yellow"> sets the background color.

Q26.

Which attribute of <body> changes the color of the page text?


a) color
b) text
c) font
d) bgcolor

Answer: b) text
Example: <body text="blue"> makes text blue.

Q27.

Which attribute of <body> sets the color of hyperlinks?


a) link
b) href
c) a-color
d) hyperlink

8
Answer: a) link
Example: <body link="red"> sets link color to red.

Q28.

Which attribute of <body> sets the color of visited links?


a) vlink
b) alink
c) visited
d) afterlink

Answer: a) vlink
Example: <body vlink="purple"> sets visited links purple.

Q29.

Which attribute of <body> sets the color of an active (clicked) link?


a) link
b) alink
c) vlink
d) activecolor

Answer: b) alink
Example: <body alink="green"> sets active link color green.

Q30.

Which tag is used to display text in the browser window but NOT shown on the page itself?
a) <meta>
b) <title>
c) <body>
d) <script>

Answer: b) <title>
<title> appears in browser title/tab, not inside the page.

9
Calc.
correct answer + short solution.

Q31.

Calc is a __________ software.


a) Word processing
b) Spreadsheet
c) Presentation
d) Database

Answer: b) Spreadsheet
Calc is a spreadsheet program (like MS Excel) used for data handling and calculations.

Q32.

Calc is a part of which software suite?


a) Microsoft Office
b) Adobe Suite
c) LibreOffice
d) Google Docs

Answer: c) LibreOffice
Calc belongs to the LibreOffice suite, similar to Excel in MS Office.

Q33.

A Calc file is called a __________.


a) Workbook
b) Document
c) Worksheet
d) Database

Answer: a) Workbook
A Calc file containing multiple sheets is called a workbook.

Q34.

10
The intersection of a row and column in Calc is called:
a) Box
b) Cell
c) Field
d) Grid

Answer: b) Cell
Each cell is formed at the intersection of a row and column (like B3).

Q35.

By default, Calc names its first worksheet as:


a) Sheet1
b) Page1
c) Work1
d) File1

Answer: a) Sheet1
Default sheet names are Sheet1, Sheet2, etc.

Q36.

Rows in Calc are labeled as:


a) Numbers (1, 2, 3, …)
b) Letters (A, B, C, …)
c) Roman Numbers (I, II, III, …)
d) Symbols

Answer: a) Numbers (1, 2, 3, …)


Rows are numbered sequentially.

Q37.

Columns in Calc are labeled as:


a) Numbers
b) Letters (A, B, C, …)
c) Words
d) Roman Numerals

11
Answer: b) Letters (A, B, C, …)
Columns use alphabetic labels like A, B, C… Z, then AA, AB, etc.

Q38.

The active cell in Calc is identified by:


a) Blue text
b) A thick border
c) A red background
d) A tick mark

Answer: b) A thick border


The active cell is highlighted with a bold border.

Q39.

What is the default file extension of Calc?


a) .docx
b) .ods
c) .xlsx
d) .odt

Answer: b) .ods
Calc saves files in the OpenDocument Spreadsheet format (.ods).

Q40.

Which shortcut is used to save a file in Calc?


a) Ctrl + C
b) Ctrl + S
c) Ctrl + O
d) Ctrl + P

Answer: b) Ctrl + S
Standard save shortcut works in Calc as well.

12
Q41.

Which shortcut opens a new spreadsheet in Calc?


a) Ctrl + O
b) Ctrl + N
c) Ctrl + Shift + N
d) Alt + N

Answer: b) Ctrl + N
Creates a new workbook instantly.

Q42.

Which key combination is used to copy selected data in Calc?


a) Ctrl + V
b) Ctrl + C
c) Ctrl + X
d) Ctrl + Z

Answer: b) Ctrl + C
Ctrl + C copies data to the clipboard.

Q43.

Which of the following is NOT a valid Calc file extension?


a) .ods
b) .xlsx
c) .odt
d) .csv

Answer: c) .odt
.odt is for text documents, not spreadsheets.

Q44.

Which function key is used to edit the contents of a cell in Calc?


a) F1
b) F2

13
c) F3
d) F4

Answer: b) F2
F2 allows editing directly inside the active cell.

Q45.

What is the maximum number of sheets you can insert in a Calc workbook?
a) 50
b) 100
c) 1000
d) No fixed limit

Answer: d) No fixed limit


Users can add sheets as needed, limited only by system memory.

Q46.

Which key is used to delete the contents of a selected cell in Calc?


a) Backspace
b) Delete
c) Ctrl + D
d) Esc

Answer: b) Delete
The Delete key clears cell content but keeps formatting.

Q47.

Which option allows you to undo the last action in Calc?


a) Ctrl + R
b) Ctrl + Y
c) Ctrl + Z
d) Ctrl + U

Answer: c) Ctrl + Z
Ctrl + Z is the universal shortcut for Undo.

14
Q48.

Which option allows you to redo an action in Calc?


a) Ctrl + Y
b) Ctrl + R
c) Ctrl + X
d) Ctrl + Shift + Z

Answer: a) Ctrl + Y
Ctrl + Y repeats the last undone action.

Q49.

To insert a new row in Calc, you use:


a) Insert → Row
b) Insert → Column
c) Format → Row
d) Tools → Row

Answer: a) Insert → Row


Rows can be inserted from the Insert menu.

Q50.

To insert a new column in Calc, you use:


a) Format → Column
b) Insert → Column
c) Tools → Column
d) Data → Column

Answer: b) Insert → Column


Columns are added via Insert → Column.

Q51.

Which menu option allows you to delete rows or columns in Calc?


a) Tools

15
b) Insert
c) Edit
d) Format

Answer: c) Edit
Edit menu provides Delete option for rows/columns.

Q52.

Which toolbar button is used to make text bold in Calc?


a) B
b) I
c) U
d) BI

Answer: a) B
The Bold button (B) makes text bold.

Q53.

Which shortcut key is used for Italic formatting in Calc?


a) Ctrl + B
b) Ctrl + I
c) Ctrl + U
d) Ctrl + T

Answer: b) Ctrl + I
Ctrl + I italicizes the text.

Q54.

Which shortcut key is used for Underline formatting in Calc?


a) Ctrl + L
b) Ctrl + I
c) Ctrl + B
d) Ctrl + U

16
Answer: d) Ctrl + U
Ctrl + U underlines text.

Q55.

What does the “Merge Cells” option do in Calc?


a) Splits one cell into many
b) Joins multiple cells into one
c) Copies content into all cells
d) Deletes the selected cells

Answer: b) Joins multiple cells into one


Merging combines selected cells into a single large cell.

Q56.

Which option allows you to align text to the center in a cell?


a) Format → Align → Center
b) Insert → Center
c) Tools → Align → Middle
d) Edit → Alignment

Answer: a) Format → Align → Center


Center alignment is applied from Format → Align menu.

Q57.

Which menu option is used to change the font size in Calc?


a) Data
b) Format
c) Insert
d) Tools

Answer: b) Format
Font style, size, and formatting are managed under Format.

17
Q58.

Which feature is used to apply a border around a cell or group of cells?


a) Format → Border
b) Insert → Border
c) Tools → Outline
d) Edit → Border

Answer: a) Format → Border


Borders can be added using Format → Cells → Border.

Q59.

Which feature is used to quickly copy formatting from one cell to another?
a) Paste Special
b) Format Painter
c) AutoFill
d) Cell Style

Answer: b) Format Painter


Format Painter copies formatting style from one cell to others.

Q60.

Which option allows you to change the background color of a cell?


a) Insert → Color
b) Format → Cells → Background
c) Data → Background
d) Tools → Color Fill

Answer: b) Format → Cells → Background


Background color is set from Format → Cells.

Q61.

Which symbol is used before writing a function in Calc?


a) #
b) @

18
c) =
d) $

Answer: c) =
All formulas and functions in Calc begin with =.

Q62.

Which function is used to find the sum of a range of cells?


a) =ADD()
b) =TOTAL()
c) =SUM()
d) =PLUS()

Answer: c) =SUM()
Example: =SUM(A1:A5) adds the values in A1 through A5.

Q63.

Which function is used to find the average of numbers?


a) =MEAN()
b) =AVG()
c) =AVERAGE()
d) =MID()

Answer: c) =AVERAGE()
Example: =AVERAGE(B1:B5) calculates the mean.

Q64.

Which function returns the largest value in a range?


a) =MIN()
b) =MAX()
c) =LARGE()
d) =HIGH()

Answer: b) =MAX()
MAX returns the highest number from a group.

19
Q65.

Which function returns the smallest value in a range?


a) =LOW()
b) =SMALL()
c) =MIN()
d) =TINY()

Answer: c) =MIN()
MIN gives the lowest value from a group.

Q66.

Which function is used to count only numeric values in a range?


a) =COUNT()
b) =COUNTA()
c) =COUNTNUM()
d) =NUMCOUNT()

Answer: a) =COUNT()
COUNT counts only numbers.

Q67.

Which function counts both numbers and text values?


a) =COUNT()
b) =COUNTA()
c) =COUNTALL()
d) =TEXTCOUNT()

Answer: b) =COUNTA()
COUNTA counts all non-empty cells, including text.

Q68.

Which function is used to calculate the square root of a number?


a) =ROOT()

20
b) =SQRT()
c) =POWER()
d) =SQUARE()

Answer: b) =SQRT()
Example: =SQRT(25) gives 5.

Q69.

Which function is used to raise a number to a power in Calc?


a) =POWER()
b) =POW()
c) =RAISE()
d) =EXP()

Answer: a) =POWER()
Example: =POWER(2,3) = 2³ = 8.

Q70.

Which function returns the current system date?


a) =TIME()
b) =NOW()
c) =DATE()
d) =TODAY()

Answer: d) =TODAY()
=TODAY() displays today’s date.

Q71.

Which function returns both current date and time?


a) =NOW()
b) =DATE()
c) =CURRENT()
d) =DATETIME()

21
Answer: a) =NOW()
=NOW() shows both system date and time.

Q72.

Which function is used to round a number to the nearest integer?


a) =ROUND()
b) =INT()
c) =NEAR()
d) =TRUNC()

Answer: a) =ROUND()
ROUND can round values up or down depending on decimal.

Q73.

Which function removes the decimal part of a number (rounds down)?


a) =ROUND()
b) =TRUNC()
c) =INT()
d) =CUT()

Answer: b) =TRUNC()
TRUNC(5.9) gives 5.

Q74.

Which function is used to calculate the length of text in a cell?


a) =LEN()
b) =TEXTLEN()
c) =LENGTH()
d) =COUNT()

Answer: a) =LEN()
Example: =LEN("HELLO") = 5.

22
Q75.

Which function is used to join two or more strings together?


a) =MERGE()
b) =JOIN()
c) =CONCATENATE()
d) =COMBINE()

Answer: c) =CONCATENATE()
=CONCATENATE("Good"," Morning") = "Good Morning".

Perfect Now we move to Chapter 9 – Problem and Problem Solving.


I’ll continue numbering from Q91 onward.

Q76.

What is the first step in problem-solving?


a) Testing
b) Implementation
c) Problem Identification
d) Documentation

Answer: c) Problem Identification


We must first clearly identify and understand the problem.

Q77.

Which of the following is not a step of problem-solving?


a) Problem Definition
b) Algorithm Design
c) Guessing the Output
d) Testing and Debugging

Answer: c) Guessing the Output


Problem-solving follows systematic steps, not guessing.

Q78.

23
A step-by-step method to solve a problem is called:
a) Flowchart
b) Algorithm
c) Program
d) Syntax

Answer: b) Algorithm
An algorithm is a sequence of steps to solve a problem.

Q79.

Which diagram is often used to represent an algorithm visually?


a) Bar Graph
b) Flowchart
c) Pie Chart
d) Histogram

Answer: b) Flowchart
Flowcharts use symbols to represent steps in problem-solving.

Q80.

In a flowchart, the decision is represented by which shape?


a) Circle
b) Rectangle
c) Diamond
d) Oval

Answer: c) Diamond
Diamond shape is used for decision-making in flowcharts.

Q81.

Which shape in a flowchart is used for input/output?


a) Parallelogram
b) Rectangle
c) Circle
d) Triangle

24
Answer: a) Parallelogram
Parallelogram = input/output.

Q82.

Which shape is used for processing steps in a flowchart?


a) Oval
b) Rectangle
c) Diamond
d) Square

Answer: b) Rectangle
Rectangle = process step.

Q83.

Which flowchart symbol is used for start and end?


a) Rectangle
b) Oval
c) Diamond
d) Parallelogram

Answer: b) Oval
Oval indicates start or end points.

Q84.

Which is the final step of problem-solving?


a) Algorithm Design
b) Problem Definition
c) Implementation
d) Documentation

Answer: d) Documentation
Documentation ensures clarity for future use.

25
Q85.

The process of finding and removing errors in a program is called:


a) Debugging
b) Testing
c) Compiling
d) Execution

Answer: a) Debugging
Debugging = removing errors.

Q86.

Which of the following is a characteristic of a good algorithm?


a) Ambiguity
b) Infinite steps
c) Unclear results
d) Finiteness

Answer: d) Finiteness
A good algorithm must end after finite steps.

Q87.

Which is not a characteristic of a good algorithm?


a) Definiteness
b) Efficiency
c) Infinite loop
d) Finiteness

Answer: c) Infinite loop


An infinite loop means the algorithm is not valid.

Q88.

Which method is often used before writing an algorithm?


a) Pseudocode
b) Syntax Coding

26
c) Compiling
d) Execution

Answer: a) Pseudocode
Pseudocode uses plain English-like statements.

Q89.

Which is more user-friendly for beginners to represent problem-solving steps?


a) Algorithm
b) Flowchart
c) Source Code
d) Binary Code

Answer: b) Flowchart
Flowcharts give a visual idea, easier for beginners.

Q90.

Which step comes immediately after algorithm design?


a) Flowchart Creation
b) Program Coding
c) Debugging
d) Documentation

Answer: b) Program Coding


After designing an algorithm, coding is done.

C Language

C Language – MCQs

Q91.

Who is the developer of C language?


a) James Gosling
b) Bjarne Stroustrup

27
c) Dennis Ritchie
d) Ken Thompson

Answer: c) Dennis Ritchie


C was developed at Bell Labs in the early 1970s.

Q92.

In which year was the C language developed?


a) 1965
b) 1972
c) 1980
d) 1991

Answer: b) 1972
C was developed in 1972 at Bell Labs.

Q93.

C language is often called:


a) Machine-level language
b) Assembly-level language
c) High-level language
d) Middle-level language

Answer: d) Middle-level language


C combines features of both high and low-level languages.

Q94.

Which of the following is the file extension for a C program?


a) .cpp
b) .class
c) .c
d) .java

Answer: c) .c
All C program files are saved with .c extension.

28
Q95.

Which symbol is used to end every statement in C?


a) , (comma)
b) ; (semicolon)
c) : (colon)
d) . (dot)

Answer: b) ; (semicolon)
Every statement in C must end with a semicolon.

Q96.

Which is the correct syntax of the main function in C?


a) main() { }
b) void main() { }
c) int main() { }
d) All of the above

Answer: d) All of the above


Different compilers accept different versions of main.

Q97.

Which function is used to display output in C?


a) input()
b) cout<<
c) printf()
d) println()

Answer: c) printf()
printf() is used for output in C.

Q98.

Which function is used to take input from the user in C?


a) scanf()

29
b) cin>>
c) input()
d) gets()

Answer: a) scanf()
scanf() is used for formatted input in C.

Q99.

What does the #include directive in C mean?


a) It includes header files
b) It includes source code
c) It includes comments
d) It includes functions automatically

Answer: a) It includes header files


Example: #include<stdio.h> includes standard I/O header.

Q100.

Which symbol is used to indicate preprocessor directives in C?


a) $
b) %
c) #
d) @

Answer: c) #
All preprocessor directives start with #.

Q101.

Which is the first function that executes in a C program?


a) start()
b) begin()
c) main()
d) program()

30
Answer: c) main()
Execution of every C program starts from main().

Q102.

What does stdio.h stand for?


a) Standard Device Input Output
b) Standard Input Output Header
c) Standard Data Input Output
d) Standard I/O Handling

Answer: b) Standard Input Output Header


It is the header file for input and output functions.

Q103.

C language is mostly used for:


a) Web Designing
b) System Programming
c) Mobile Apps
d) Machine Learning

Answer: b) System Programming


C is widely used for system software, OS, and embedded systems.

Q104.

Which type of language is C?


a) Object-Oriented
b) Procedural
c) Functional
d) Scripting

Answer: b) Procedural
C follows step-by-step (procedure-oriented) programming.

31
Q105.

Which of the following is not a feature of C?


a) Portability
b) Low-level access
c) Object-oriented features
d) Fast execution

Answer: c) Object-oriented features


C is procedural, not object-oriented (C++ added OOP).

32

You might also like