Chapter 10 Computer 2nd Year
Chapter 10 Computer 2nd Year
Smart Syllabus
2nd Year
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)