12th Class Computer Chapter 3 Loops Short Questions Answer
| Class: | 12th Class | Subject: | Computer |
| Chapter: | Chapter 3 | Board: | All Boards |
12th Class Computer Chapter 3 Loops Short Questions Answer
[toggle title=”How is the logical flow governed in a structured program? ” state=”close”]
In a structured program, the logical flow is governed by three control structures.
· Sequential
· Repetition
· Selection [/toggle]
[toggle title=”Define sequential stricture? ” state=”close”]
Sequential structure refers to the execution of statements in the orders in which they appear.[/toggle]
[toggle title=”Define a loop? ” state=”close”]
It is another fundamental idea in programming. It makes possible repeated execution of one or more statements as long as a condition is true.[/toggle]
[toggle title=”What is the importance of loop in any program? ” state=”close”]
We can employ a loop to handle any repetitive task and for most programs loops are essential using a computer to calculate the company payroll, for example would not be practicable without a loop. [/toggle]
[toggle title=”Which are called iteration statements? ” state=”close”]
The statements inside a loop are sometimes called iteration statements. [/toggle]
[toggle title=”How many essential elements to a loop? ” state=”close”]
There are two essential elements to a loop. [/toggle]
[toggle title=”What do you know about the loop condition? ” state=”close”]
A loop condition can take a number of different forms to provide different ways of controlling the loop. We can set the loop condition to suit the circumstances.[/toggle]
[toggle title=”What do you know about FOR loop? ” state=”close”]
The FOR loop is primarily used for executing a statement or block of statements a predetermined number of times. You control for a loop using three expressions.[/toggle]
[toggle title=”What do you know about the WHILE loop? ” state=”close”]
The WHILE loop uses a logical expression to control execution of the loop body. If the condition controlling the loop produces an integer, the loop with continue as long as the value is non-zero. Any non-zero integer means the condition is true and only zero means it is false.[/toggle]
[toggle title=”What do you know about the DO WHILE loop? ” state=”close”]
The DO WHILE loop is similar to the while loop in that the loop continues as long as the specified loop condition remains true.[/toggle]
[toggle title=”Write down the general form of the FOR statement. ” state=”close”]
The general form of the FOR statement is FOR (exp1, exp2, exp3)
{Body of the loop (block of statements)}[/toggle]
[toggle title=” Write down the general for of the WHILE statement.” state=”close”]
WHILE (expression)
{Body of the loop}[/toggle]
[toggle title=”What happens when a while statement is encountered? ” state=”close”]
When a while statement is encountered expression is evaluated. [/toggle]
[toggle title=”Write down the types of characters included in ASCII table. ” state=”close”]
Following are the types of characters included in ASCII table
0 ~ 31: control codes such as tab, carriage return and bell.
32 ~ 127: Usual printing characters
128 ~ 255: graphics and foreign language characters.[/toggle]
[toggle title=”Write down the general form of the DO WHILE loop?” state=”close”]
The general form of the DO WHILE loop is do.
DO
{Body of the loop}
WHILE (expression);[/toggle]
[toggle title=”What is a nested loop? ” state=”close”]
A loop within another loop is known as a nested loop.[/toggle]
[toggle title=” Wrote down the statements that “C” provides to implement loop structure? ” state=”close”]
“C” provides three statements to implement loop structure. These three statements are FOR statements. WHILE statements and the DO-WHILE statement.[/toggle]
How to Write Perfect Short Answers?
In Board Exams, the examiner looks for specific keywords and presentation. Here is how to attempt Chapter 3 questions:
- Ideal Length: Write 3 to 5 lines for each short question. Too short gets fewer marks, too long wastes time.
- Highlighting: Use a Blue Marker to highlight key dates, names, or scientific terms in your answer.
Can't find what you're looking for? Search below: