Computer Fundamentals Questions and Answers – Pseudo Code

This set of Computer Fundamentals Multiple Choice Questions & Answers (MCQs) focuses on “Pseudo Code”.

1. Keep the statement language ______________ while writing a pseudo code.
a) Dependent
b) Independent
c) Case sensitive
d) Capitalized
View Answer

Answer: b
Explanation: The statement’s language should be independent. Other rules are to write only one statement per line and end multiline structures.

2. Capitalize initial keyword – This is a rule while writing a pseudo code.
a) True
b) False
View Answer

Answer: a
Explanation: The statement is true. It is an important rule to capitalize the initial keyword while writing a pseudo code.

3. Which of the following is not a keyword?
a) Read
b) Write
c) start
d) endif
View Answer

Answer: c
Explanation: Start is not a Keyword. Other words like read, write, if, else, etc are keywords and convey a special meaning.
advertisement
advertisement

4. ______________ is used to show hierarchy in a pseudo code.
a) Indentation
b) Curly Braces
c) Round Brackets
d) Semicolon
View Answer

Answer: a
Explanation: Each design structure uses a particular indentation pattern.
Indentation should be considered in the following cases:
Sequence
Selection
Loop.

5. The statement that tells the computer to get a value from an input device and store it in a memory location.
a) read
b) write
c) READ
d) WRITE
View Answer

Answer: c
Explanation: The READ statement is used to take the input. READ being a keyword should be in capital letters.

6. _____________ are identified by their addresses, we give them names (field names / variable names) using words.
a) Memory variables
b) Memory Locations
c) Memory Addresses
d) Data variables
View Answer

Answer: b
Explanation: Memory locations are identified by their addresses, we give them names (field names/variable names) using words descriptive to us such as ctr as opposed to a location addresses such as 19087.

7. ____________ begins with lower case letters.
a) Keywords
b) Variables
c) Tokens
d) Functions
View Answer

Answer: b
Explanation: Variables begin with a lowercase. They contain no spaces. They also involve the consistent use of names.
advertisement

8. Another notation for exponentiation.
a) *
b) **
c) ***
d) *^
View Answer

Answer: b
Explanation: Double asterisk sign is also used for exponentiation. The general notation is ^ sign.

9. A symbol used for grouping.
a) ()
b) {}
c) [].
d) ” ”
View Answer

Answer: a
Explanation: Parenthesis is used for grouping while working with fields. There are other symbols like *, +, -, **, etc.
advertisement

10. A statement used to close the IF block.
a) ELSE
b) ELSEIF
c) END
d) ENDIF
View Answer

Answer: d
Explanation: The answer is ENDIF. It is used to close the IF block. ENDIF statement should be in line with the IF statement.

Sanfoundry Global Education & Learning Series – Computer Fundamentals.

To practice all areas of Computer Fundamentals, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.