A flowchart that outlines the main segments of a program.
Union
Micro
Macro
Queue
Answer : C
Explain : Macro flowchart show the important components of a program, where as micro flowcharts show detail components of a program.
Top-down approach is followed in structural programming ?
True
False
Cant'say
May be
Answer : A
Explain : The top-down approach is a fundamental concept in structural programming. Structural programming is a programming paradigm that emphasizes the use of structured programming constructs to design and implement programs.
In computer science, algorithm refers to a pictorial representation of a flowchart ?
True
False
Can't say
May be
Answer : B
Explain : False. The correct statement would be: In computer science, flowchart refers to a pictorial representation of an algorithm.
The examination of changing values of variables is called stepping ?
True
False
Can't say
May be
Answer : B
Explain : It is called tracing. In tracing, the variables are examined where it's value is changing. Debuggers perform the task of step by step examination of the code which is called stepping.
Which symbols is use for input and output operation in flowchart ?
Terminal
Parrallelogram
Diamond
Rectangle
Answer : B
Explain : Parrallelogram is used for input and output, terminal use for start and end, Diamond use for decision making, and Rectangle use for processing.
Actual instructions in flowchart repersent in ?
Circle
Boxes
Arrow
Rectangle
Answer : B
Explain : Boxes repersent the instruction in flowchart, arrow indicate the flow and circle connect another page.
Flowchart and algorithms are used for ?
Better programming
easy testing and debugging
Efficient Coding
All of the above
Answer : D
Explain : Algorithms are used to make programming better, efficient and easy.
Pseudocode can replace
Structure Charts
Flowcharts
Decision tables
None of these.
Answer : B
Explain : Flowchart is a graphical repersentation of any program and pseudocode is written in english lanuage to create logic. Similarly, both ( pseudocode and flowchart ) are understand by non-programmers. So, we easily replace flowchart with psuedocode.
What will be the output of following pseudocode ?
integer a, b
set a = 9, b = 5
a = a mod (a - 3)
b = b mod (b - 3)
print a+b
4
5
9
8
Answer : A
Explain : a - 3 evaluates to 9 - 3 = 6. a mod 6 means finding the remainder when a is divided by 6.
The remainder of 9 / 6 is 3, so a is updated to 3.
b - 3 evaluates to 5 - 3 = 2.
b mod 2 means finding the remainder when b is divided by 2.
The remainder of 5 / 2 is 1, so b is updated to 1.So a+b = 3+1 =4.
In Flowchart, which shape repersent two coditions ?
Terminal
Rectangle
Arrows
Diamond
Answer : D
Explain : Diamond show two coditions like If this true, then yes and not true then No. Arrows indicate the flow.
Solve the flowchart if a=10 and b=20 what will be output ?
10
20
Both 10 and 20
None
Answer : B
Explain : Program read A and B then check the condition A>B, result false. Now, next step it print B and then process end.
What are the three different types of algorithms construction ?
Input/Output, Decision, repeat
Input, Output, Process
Loop, Input, Output
Sequence, Selection, Repeat/Iteration
Answer : D
Explain : An algorithm is made up of three basic building blocks: sequencing, selection, and iteration.
In a flowchart, which of following is used to test the conditon ?
Terminal
Process
Input/output
Decision
Answer : D
Explain : Decision is used to test condition and shape is diamond.
The process of drawing a flowchart for an algorithm is called ?
Performance
Algorithm Repersentation
Evaluation
Flowcharting
Answer : D
Explain : Flowcharting is process of drawing an flowchart.
The way for solving a problem step by step is known as ?
Design
Planning
Algorithm
Execution
Answer : C
Explain : A step by step procedure used to solve the problem is known as Algorithm.
An algorithm that call itself directly or indirectly is called ?
Sub Function
Recursion
Reverse Polish Notation
Travesal Algorithm
Answer : B
Explain : The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using recursive algorithm, certain problems can be solved quite easily.
What is the symbol used to repersent start and end of a flowchart ?
Oval
rectangle
arrow
diamond
Answer : A
Explain : Oval or Terminal used to repersent start and end. Both have same shape.
Which symbol used to indicate the flow between the shapes.
Terminal Box
Arrows
Diamond
Parrallelogram
Answer : B
Explain : Arrows is use to indicate flow.