Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following isn’t a loop statement?(a) for(b) elif(c) while(d) do-whileI got this question during an internship interview.Question is taken from Structural Programming in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (B) elif

Easiest EXPLANATION: The ANSWER is elif. Elif isn’t a loop statement. It is a PART of a choice statement.

2.

The number of values a function can return at a time?(a) 1(b) 0(c) 2(d) more than 2I have been asked this question during an interview for a job.I'd like to ask this question from Structural Programming in chapter Planning the Computer Program of Computer Fundamentals

Answer» CORRECT answer is (a) 1

Easy EXPLANATION: A FUNCTION can RETURN only one value at a time.

Syntax : return (x,12);
3.

Which of the following is a loop statement?(a) IF(b) ELSE(c) WHILE(d) DOThe question was posed to me in class test.I want to ask this question from Structural Programming topic in section Planning the Computer Program of Computer Fundamentals

Answer»

Right CHOICE is (C) WHILE

The BEST EXPLANATION: WHILE is a loop statement.

Syntax : while(condition)

ACTION.

4.

Semicolon is used after :(a) Function definition(b) Function call(c) for loop(d) while loopI got this question in a national level competition.My query is from Structural Programming topic in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (B) Function call

For explanation I would say: Semicolon is USED after function call otherwise it LEADS to compile-time errors. It shouldn’t be used after DEFINITIONS. It should also not be used after loops.

5.

What is the correct syntax of for statement?(a) for(initialization;condition;update)(b) for(initialization,condition,update)(c) for(condition;initialization;update)(d) for(initialization;condition;)I had been asked this question in semester exam.My question is taken from Structural Programming topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

Right ANSWER is (a) for(initialization;CONDITION;UPDATE)

BEST explanation: The correct syntax is : for(initialization;condition;update)

For is another LOOP statement.

6.

A program should be ________(a) Secure(b) Sequential(c) Ordered(d) SimpleThe question was asked during an internship interview.This key question is from Structural Programming in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct ANSWER is (b) Sequential

The best I can explain: It is NATURAL to write a PROGRAM as a sequence of program structures such as SEQUENCES, CHOICES and loops.

7.

A ________ is a directed graph that describes the flow of execution control of the program.(a) Flowchart(b) Flow graph(c) Complexity curve(d) AlgorithmI have been asked this question by my college professor while I was bunking the class.This intriguing question originated from Structural Programming topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

Correct option is (a) Flowchart

The best I can explain: A flowchart is a DIRECTED GRAPH. It SIMPLY describes the FLOW of execution control of the program.

8.

Top-down approach is followed in structural programming.(a) True(b) FalseThe question was posed to me in an interview for internship.The origin of the question is Structural Programming topic in chapter Planning the Computer Program of Computer Fundamentals

Answer» CORRECT option is (a) True

To elaborate: The STATEMENT is true. Structural PROGRAMMING follows the TOP – down APPROACH. Each module is further divided into sub modules.
9.

Programming based on stepwise refinement process.(a) Structural(b) C programming(c) Procedural(d) FineThis question was posed to me in a job interview.This interesting question is from Structural Programming topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct choice is (a) Structural

Best explanation: Structured programming is BASED on the stepwise refinement process-a method of PROBLEM decomposition common to all engineering DISCIPLINES and the physical, CHEMICAL, and biological SCIENCES.

10.

A statement used to close the IF block.(a) ELSE(b) ELSEIF(c) END(d) ENDIFI got this question during an online interview.This question is from Pseudo Code topic in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct ANSWER is (d) ENDIF

Best EXPLANATION: The answer is ENDIF. It is used to close the IF block. ENDIF statement should be in LINE with the IF statement.

11.

Another notation for exponentiation.(a) *(b) **(c) ***(d) *^This question was posed to me in class test.My doubt stems from Pseudo Code in section Planning the Computer Program of Computer Fundamentals

Answer» RIGHT OPTION is (b) **

The best explanation: DOUBLE asterisk sign is also used for EXPONENTIATION. The general notation is ^ sign.
12.

A symbol used for grouping.(a) ()(b) {}(c) [].(d) ” ”The question was asked by my college professor while I was bunking the class.I'm obligated to ask this question of Pseudo Code in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct choice is (a) ()

EXPLANATION: PARENTHESIS is used for grouping while working with FIELDS. There are other symbols LIKE *, +, -, **, etc.

13.

____________ begins with lower case letters.(a) Keywords(b) Variables(c) Tokens(d) FunctionsThis question was posed to me by my school teacher while I was bunking the class.I want to ask this question from Pseudo Code topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

Right answer is (b) Variables

Explanation: Variables BEGIN with a LOWERCASE. They CONTAIN no spaces. They also involve the CONSISTENT USE of names.

14.

_____________ 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 variablesThis question was posed to me during an online exam.Question is from Pseudo Code topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (b) MEMORY Locations

The EXPLANATION is: 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.

15.

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) WRITEI have been asked this question in quiz.The doubt is from Pseudo Code in chapter Planning the Computer Program of Computer Fundamentals

Answer» CORRECT answer is (C) READ

For explanation I WOULD say: The READ statement is used to take the input. READ being a keyword should be in capital LETTERS.
16.

______________ is used to show hierarchy in a pseudo code.(a) Indentation(b) Curly Braces(c) Round Brackets(d) SemicolonI got this question by my school principal while I was bunking the class.My doubt stems from Pseudo Code in chapter Planning the Computer Program of Computer Fundamentals

Answer»

The correct ANSWER is (a) Indentation

To EXPLAIN: Each design structure USES a particular indentation pattern.

Indentation should be considered in the FOLLOWING cases:

Sequence

Selection

Loop.

17.

Which of the following is not a keyword?(a) Read(b) Write(c) start(d) endifThis question was addressed to me during a job interview.Question is taken from Pseudo Code topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

Correct ANSWER is (c) start

For explanation: Start is not a KEYWORD. Other words like read, write, if, else, etc are KEYWORDS and convey a special meaning.

18.

Capitalize initial keyword – This is a rule while writing a pseudo code.(a) True(b) FalseThis question was addressed to me in a job interview.My question is based upon Pseudo Code topic in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct ANSWER is (a) TRUE

The explanation is: The STATEMENT is true. It is an important RULE to capitalize the initial keyword while writing a PSEUDO code.

19.

Keep the statement language ______________ while writing a pseudo code.(a) Dependent(b) Independent(c) Case sensitive(d) CapitalizedThis question was posed to me in an online interview.The origin of the question is Pseudo Code in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (b) INDEPENDENT

Easiest explanation: The STATEMENT’s language should be independent. Other rules are to write only ONE statement per line and end multiline STRUCTURES.

20.

The following box denotes?(a) Decision(b) Input/Output(c) Process(d) ModuleThis question was posed to me in a national level competition.This interesting question is from Flowcharting Rules in division Planning the Computer Program of Computer Fundamentals

Answer» CORRECT option is (a) Decision

Explanation: The answer is decision. CONDITIONS are GIVEN in this box and then the result is checked ACCORDINGLY if the condition is true or FALSE.
21.

A _______ is a connector showing the relationship between the representative shapes.(a) line(b) arrow(c) Process(d) boxThis question was addressed to me in final exam.This intriguing question comes from Flowcharting Rules topic in chapter Planning the Computer Program of Computer Fundamentals

Answer»

Right choice is (B) arrow

Easy EXPLANATION: Arrows are the connectors that show the relationship between different shapes. They also show the FLOW of the program.

22.

What type of a structure is this?(a) sequence(b) case(c) repetition(d) processI got this question in examination.This interesting question is from Flowcharting Rules topic in section Planning the Computer Program of Computer Fundamentals

Answer»

Right choice is (b) CASE

Explanation: This is a case structure. CERTAIN cases are given along with a DEFAULT case in the case structure.

23.

The action performed by a ___________ structure must eventually cause the loop to terminate.(a) sequence(b) case(c) repetition(d) processThe question was asked by my school teacher while I was bunking the class.Question is taken from Flowcharting Rules in chapter Planning the Computer Program of Computer Fundamentals

Answer»

Right OPTION is (c) repetition

Easy explanation: The action PERFORMED by a repetition structure MUST EVENTUALLY cause the loop to terminate. OTHERWISE, an infinite loop is created.

24.

What type of structure is this?(a) sequence(b) case(c) repetition(d) processI got this question in an online quiz.Enquiry is from Flowcharting Rules in division Planning the Computer Program of Computer Fundamentals

Answer»

Right choice is (C) REPETITION

To explain I would say: This is a repetition structure. The ACTION performed by a repetition structure must EVENTUALLY cause the loop to TERMINATE. Otherwise, an infinite loop is created.

25.

The following symbol denotes:(a) Module(b) Terminal(c) Process(d) i/o operationThis question was addressed to me during an online exam.My question is from Flowcharting Rules in chapter Planning the Computer Program of Computer Fundamentals

Answer»

The CORRECT ANSWER is (a) MODULE

The best explanation: This SYMBOL is that of a module. The terminal is denoted by a rounded RECTANGLE. I/O operation by a parallelogram and process by a rectangle.

26.

Terminals are represented by diagonals in a flowchart.(a) True(b) FalseThe question was posed to me during an interview for a job.This question is from Flowcharting Rules in portion Planning the Computer Program of Computer Fundamentals

Answer»

The CORRECT CHOICE is (B) False

To elaborate: The STATEMENT is false. Terminals are REPRESENTED by rounded rectangles. They indicate the starting or ending point in a flowchart.

27.

Which of the following is not a flowchart structure?(a) Process(b) Sequence(c) Repetition(d) CaseI had been asked this question in unit test.My query is from Flowcharting Rules in chapter Planning the Computer Program of Computer Fundamentals

Answer» RIGHT CHOICE is (a) Process

Explanation: There are basically four FLOWCHARTING STRUCTURES:

• Decision

• Repetition

• Case

SEQUENCE.
28.

The operation represented by parallelograms.(a) Input/Output(b) Assignment(c) Comparison(d) ConditionsI had been asked this question in my homework.Query is from Flowcharting Rules in chapter Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (a) INPUT/OUTPUT

For EXPLANATION: The input/output operations are REPRESENTED by parallelograms. They generally are used to display MESSAGES during input and output part of a program.

29.

A ______________ is diagram that depicts the flow of a program.(a) Algorithm(b) Hash Table(c) Graph(d) FlowchartThe question was asked in homework.The doubt is from Flowcharting Rules topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct ANSWER is (d) Flowchart

For explanation: A flowchart is a DIAGRAM that helps us determine the FLOW of the PROGRAM. Other options are irrelevant.

30.

A flowchart that outlines the main segments of a program.(a) Queue(b) Macro(c) Micro(d) UnionThis question was addressed to me in exam.My enquiry is from Flowcharts topic in chapter Planning the Computer Program of Computer Fundamentals

Answer»

Right choice is (b) MACRO

To EXPLAIN I WOULD say: The answer is Macro Flowchart. A macro flowchart outlines the IMPORTANT components of a program. It therefore SHOWS fewer details.

31.

A detailed flowchart is called ______(a) Stack(b) Macro(c) Micro(d) UnionThis question was addressed to me in final exam.The above asked question is from Flowcharts in section Planning the Computer Program of Computer Fundamentals

Answer»

Right choice is (c) Micro

Explanation: A DETAILED flowchart or a flowchart with more details is called as micro flowchart. It represents all the COMPONENTS of the ALGORITHM that is FOLLOWED.

32.

Which of the following is not an advantage of a flowchart?(a) Better communication(b) Efficient coding(c) Systematic testing(d) Improper documentationI got this question in an online interview.Origin of the question is Flowcharts topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

The CORRECT choice is (d) IMPROPER documentation

The best I can explain: Flowcharts provide a proper documentation. It also PROVIDES SYSTEMATIC DEBUGGING.

33.

There should be certain set standards on the amount of details that should be provided in a flowchart.(a) True(b) FalseThe question was asked by my school principal while I was bunking the class.My enquiry is from Flowcharts topic in portion Planning the Computer Program of Computer Fundamentals

Answer»

Correct OPTION is (b) False

Easiest explanation: The statement is false. There should be no set STANDARDS on the AMOUNT of details that should be provided in a flowchart.

34.

A box that can represent two different conditions.(a) Rectangle(b) Diamond(c) Circle(d) ParallelogramThe question was asked by my college director while I was bunking the class.My doubt is from Flowcharts topic in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct choice is (b) Diamond

To elaborate: A diamond shape box denotes EITHER a TRUTH value or a FALSE value. It JUMPS onto two different statements following it VIA flow lines.

35.

The following box denotes?(a) Decision(b) Initiation(c) Initialization(d) I/OThis question was posed to me in homework.Origin of the question is Flowcharts in section Planning the Computer Program of Computer Fundamentals

Answer»
36.

The process of drawing a flowchart for an algorithm is called __________(a) Performance(b) Evaluation(c) Algorithmic Representation(d) FlowchartingThis question was posed to me by my college professor while I was bunking the class.I would like to ask this question from Flowcharts in division Planning the Computer Program of Computer Fundamentals

Answer»

Correct answer is (d) Flowcharting

The best EXPLANATION: It is called as flowcharting. A FLOWCHART is nothing but a pictorial representation of an ALGORITHM.

37.

Actual instructions in flowcharting are represented in __________(a) Circles(b) Boxes(c) Arrows(d) LinesThe question was asked in a job interview.My query is from Flowcharts topic in section Planning the Computer Program of Computer Fundamentals

Answer»

Right answer is (b) Boxes

Easy EXPLANATION: The actual INSTRUCTIONS are WRITTEN in boxes. Boxes are connected by using arrows to indicate the exact flow of a flowchart and the order in which they are to be EXECUTED.

38.

The symbol denotes_______(a) I/O(b) Flow(c) Terminal(d) DecisionThe question was asked by my school principal while I was bunking the class.The question is from Flowcharts in section Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (C) Terminal

The explanation is: The symbol denotes a terminal. It is used for indication of start and STOP NODES of a program.

39.

In computer science, algorithm refers to a pictorial representation of a flowchart.(a) True(b) FalseThis question was addressed to me in an online interview.The question is from Flowcharts in section Planning the Computer Program of Computer Fundamentals

Answer»

Correct OPTION is (b) False

The best I can explain: The statement is false. The correct statement WOULD be: In COMPUTER SCIENCE, flowchart refers to a pictorial representation of an algorithm.

40.

A data structure that follows the FIFO principle.(a) Queue(b) LL(c) Stack(d) UnionI got this question at a job interview.This interesting question is from Algorithms topic in section Planning the Computer Program of Computer Fundamentals

Answer» RIGHT CHOICE is (a) QUEUE

Explanation: The answer is Queue. A Queue follows the FIFO principle. FIFO STANDS for First In First Out.
41.

Another name for 1-D arrays.(a) Linear arrays(b) Lists(c) Horizontal array(d) Vertical arrayThe question was asked in an interview.Enquiry is from Algorithms in chapter Planning the Computer Program of Computer Fundamentals

Answer»

The CORRECT option is (a) LINEAR arrays

The EXPLANATION: Linear arrays are the 1-Dimensional arrays wherein only one ROW is present and the ITEMS are inserted.

42.

A system wherein items are added from one and removed from the other end.(a) Stack(b) Queue(c) Linked List(d) ArrayThis question was addressed to me in an interview for internship.This intriguing question comes from Algorithms topic in division Planning the Computer Program of Computer Fundamentals

Answer»

Correct ANSWER is (b) QUEUE

For explanation: In a queue, the ITEMS are INSERTED from the REAR end and deleted from the front end.

43.

Any algorithm is a program.(a) True(b) FalseI have been asked this question at a job interview.This intriguing question comes from Algorithms topic in chapter Planning the Computer Program of Computer Fundamentals

Answer»

Right answer is (b) False

The best EXPLANATION: The statement is false. An ALGORITHM is REPRESENTED in the FORM of a programming language is CALLED a program. Any program is an algorithm but the reverse is not true.

44.

When an algorithm is written in the form of a programming language, it becomes a _________(a) Flowchart(b) Program(c) Pseudo code(d) SyntaxThe question was posed to me by my school teacher while I was bunking the class.The question is from Algorithms in division Planning the Computer Program of Computer Fundamentals

Answer»

Right ANSWER is (b) PROGRAM

Easy explanation: An algorithm becomes a program when it is written in the form of a programming language. THUS, any program is an algorithm.

45.

The time that depends on the input: an already sorted sequence that is easier to sort.(a) Process(b) Evaluation(c) Running(d) InputThis question was posed to me during an internship interview.Question is taken from Algorithms topic in division Planning the Computer Program of Computer Fundamentals

Answer»

The correct OPTION is (c) RUNNING

For explanation: The running time depends on the input: an already sorted sequence is easier to sort. The running time is given by the size of the input, SINCE short sequences are easier to sort than the longer ones. Generally, we SEEK UPPER bounds on the running time, because it is reliable.

46.

This characteristic often draws the line between what is feasible and what is impossible.(a) Performance(b) System Evaluation(c) Modularity(d) ReliabilityThe question was posed to me in class test.This intriguing question comes from Algorithms in portion Planning the Computer Program of Computer Fundamentals

Answer»

The correct option is (a) Performance

To explain: ALGORITHMS HELP us to understand SCALABILITY. Performance often DRAWS the line between what is feasible and what is impossible.

47.

In computer science, algorithm refers to a special method usable by a computer for the solution to a problem.(a) True(b) FalseThis question was addressed to me during an internship interview.My question is from Algorithms topic in chapter Planning the Computer Program of Computer Fundamentals

Answer»

Right option is (a) True

The best I can explain: The STATEMENT is true. This word algorithm refers to a special method USABLE by a computer for the solution to a PROBLEM. The statement of the problem specifies in general TERMS the desired input/output RELATIONSHIP.

48.

The word ____________comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al Khowarizmi.(a) Flowchart(b) Flow(c) Algorithm(d) SyntaxThe question was posed to me in final exam.Query is from Algorithms topic in section Planning the Computer Program of Computer Fundamentals

Answer»

Correct answer is (C) Algorithm

To ELABORATE: The word algorithm comes from the name of a PERSIAN MATHEMATICIAN ABU Ja’far Mohammed ibn-i Musa al Khowarizmi.