Professional Documents
Culture Documents
Chapter 11 Computer 2nd Year
Chapter 11 Computer 2nd Year
Chapter 11 Computer 2nd Year
Smart Syllabus
2nd Year
Prepared by: Moin Yaqoob
Class : Cb-1 2nd year
Roll number:19501
2
Define for loop. Write its syntax and flow chart. Explain its working with
example.(8-times)
Define nested loop. Write its syntax. Explain it’s working with the help of
example.(4-times)
What is sentinel controlled loop and how it implemented? Discuss some of the
situations where it can be useful.(1-time)
Write a program that inputs a number from the user and display it’s table.(4-
times)
Write a program that inputs a number from the user and display the factorial
of that number.(2-times)
Write a program that displays counting from 10 to 1 using for loop. (1-time)
Write a program that print odd numbers from 11 to 49 using loop.(1-times)
Write a program in C that displays the following series using while loop:
1,3,5,7,9,11,13,15,17,19,21,23.(1-time)
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)
What is if-else-if statement? Write its syntax,also draw its flowchart.Describe
its purpose by example.(1-time)