2nd Year Computer Chapter 11 Notes
Important full 2nd Year Computer Chapter 11 Notes written by Professor Mr. Tayyab Shahzad. These notes are very helpful in the preparation of 2nd year computer chapter 11 important questions of 2nd year Computer Science for the students of the intermediate and these are according to the paper patterns of all Punjab boards.
Summary and Contents:
Topics which are discussed in the notes are given below:
- Important Multiple Choice Questions of 2nd year computer chapter 11 mcqs of 2nd-year Computer Science.
- Q1: Which programming structure executes program statements in order?
- (a) Relation (b) Decision (c) Sequence (d) Repetition
- Q2: Another term for a computer making a decision is: (a) sequential (b) Selection (c) Repetition (d) Iteration
- Q3: ___structure are used to control the flow of execution in a program:
- (a) Data (b) Program (c) Input (d) Control
- Q4: Which one is a control structure? (a) Selection (b) Sequence (c) Repetition (d) All of these
- Q5: A __structure chooses which statement or a block of statements is to execute:
- (a) Selection (b) Input / output (c) Sequence (d) Repetition
- Important 2nd year computer chapter 11 mcqs with answers for Intermediate part-II students.
- Q6:___structures is a selection structure? (a) if (b) if - else (c) switch (d) All of these
- Q7: A group of statements enclosed in opening and closing braces is called:
- (a) Group statement (b) Program statement (c) Compound statement (d) All of above
- Q8: In if-statement, true is represented by: (a) 1 (b) 2 (c) 3 (d) 4
- Q9: In if-statement, false represented by: (a) 1 (b) 2 (c) 3 (d) 4
- Q10: In if statement, normally true is represented by: (a) 1 (b) 2 (c) 3 (d) 4
- Q11: Graphical representation of a program is called: (a) Flowchart (b) Logical chart (c) Binary chart (d) Logical diagram
- Important 2nd year computer chapter 11 important mcqs for Intermediate part-II students.
- Q12: Which statement is used for making two way decisions? (a) if (b) Nested if (c) While (d) if-else
- Q13: Which expression can be used in if condition? (a) Relational (b) Logical (c) Arithmetic (d) All of these
- Q14: If statement inside the true block of another if statement is called: (a) Nested if statement (b) Conditional operator (c) Branched if statement (d) Relational operator
- Q15: In if-else if statement only___block (s) of statement is executed:
- (a) One (b) Two (c) Three (d) More than three
- Important 2nd year computer chapter 11 short questions for Intermediate part-II students.
- What is a Control structure? : Ans: A control structure is a statement used to control flow of execution in a program or
function. Control structure is used to combine individual instructions into a single logical
unit. This unit has one entry point and one exit point. Program logic is implemented with
the help of control structures. Three kinds of control structures are used to control flow
of execution of instructions.
- Important 2nd year computer chapter 11 important long questions for Intermediate part-II students.
- What is meant by sequence-structure? : Ans: In sequence structure the instructions of program executes one after the other in the
order in which are written. It is also called the default flow of a program. The program
starts execution from the first instruction and all instructions are executed one by one in
a sequence.
- What is meant by selection structure?
- What is meant by repetition structure?
- What is an IF statement?
- Important 2nd year computer chapter 11 long questions for Intermediate part-II students.
- What is a compound statement?
- What is an if-else statement?
- What is the if-else-if statement?
- What is a conditional operator?
- What is a switch statement?
- What is a switch statement?
- Important 2nd year computer chapter 11 long questions pdf download for Intermediate part-II students.
- What is a break statement? : Ans: Break is a keyword. It is the last statement in each case. It is used to transfer flow of
control outside a code block. When break statement executes in switch statement the
flow of control is transferred to the first instruction after switch block.