You are on page 1of 4

Computer Science

Smart Syllabus
2nd Year

Chapter#11 Decision Constructs


Topic Name #Page Description
Define control structure
288,289 Long Question
and its types
Define selection structure
290 Short Question
and its types
Describe if-statement with
290,291 Long Question
program 11.1
Limitation of simple if
292 Short Question
statement
Describe if-else statement
292,293 Long Question
with program 11.4
Describe if-else-if
statement with program 295,296 Long Question
11.9
Nested if statement with
299,300 Long Question
program 11.15
Comparison b/w nested if
303,304 Short Question
and sequence of if
1 Define ternary/conditional
309 Short Question
operator
Programs 11.1,2,3,4,5,7,9,14,18,20,19,20
Important Short Questions
From Past papers(2014-19)
 What is control structure? (6-times)
 List types of control structure. (2-times)
 What is sequence structure? (1-times)
 Define selection structure.(4-times)
 How are instructions executed in repetition structure?(1-time)
 Define compound statement.(4-times)
Ans: A compound statement refers to a group of statements enclosed in
opening and closing braces.
 Explain if statement.(2-times)
 Define one way decision and also draw flowchart.(1-times)
Hint:simple if statement
 What is the use of if else statement?(1-time)
 Write syntax of if-else statement.(6-time)
 What do you mean by condition?(3-times)
Ans: A condition is an expression that either evaluates to true (represent
by 1) or false(represent by 0).
 What is nested if statement?(2-times)
 What is the use of if-else-if statement?(1-time)
 When you must use curly braces {} with selection structure.(1-times)
 Define ternary/conditional operator.(1-time)
 Write down the syntax of ternary Operator.(1-time)
 How are instructions executed in sequence structure?(1-time)
 How does selection structure select a statement to execute?(1-time)

Note:- Error finding and predict output question are not included in
this segment.For these questions follow it series book.

2
Important Long Questions
from past papers (2014-19)
 Write a program that inputs a number from the user and
finds it is positive, negative or zero.
(6-times)
 Write a program in C language to accept a year from the
keyboard.Find out it is Leap year or Not Leap year. (5-
times)
 Write a program in C that inputs the number of the month
of the year and display the number of days of the
corresponding month using if-else-if statement,(e.g. if user
enter 2,it will display 28 or 29) (1-time)
 Write a program in C that inputs a number from the user
and checks whether it is even or odd.(7-times)
 Write a program that inputs three numbers and display
largest number.(1-time)
 Write a program which inputs two numbers and tells
whether these numbers equal or not.(3-times)
 Write a program that inputs marks and displays
“Congratulation” if the marks are 40 or more.(bwp-2014)
 What is if else statement? Draw its flowchart,also explain
its working with an example.(1-time)
 What is nested if statement? Draw its flowchart.Explain its
working with an example.(3-times)
 What is control structure? Briefly describe the basic control
structures for writing programs.(2-times)

3
 What is if-else-if statement? Write its syntax,also draw its
flowchart.Describe its purpose by example.(1-time)

Prepared by: Moin Yaqoob


Class : Cb-1 2nd year
Roll number:19501

You might also like