assignment ques - cp

Upload: saravanaeee2004

Post on 06-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/18/2019 Assignment Ques - Cp

    1/1

    GE6151 / COMPUTER PROGRAMMING

    ASSIGNMENT QUESTIONS

    TWO MARKS QUESTIONS

    1. Differentiate exit control and entry control loops.2. Write a C program to find odd or even.

    3. What are the various input functions in c?

    4. Differentiate forward ump and !ac"ward ump.

    #. Define !rea" and continue statement.

    $. %ention the use of default statement in switch.

    &. What are the various output functions in c?

    '. What is an array?

    (. Write the syntax to declare multidimensional array.

    1). Define sorting and mention its types.

    16 MARKS QUESTIONS

    11. *xplain a!out +nformatted ,- statements with example.

    12. *xplain a!out /ormatted ,- statements with example.

    13. Write a!out the need and types of !ranching statements in C language and discuss with

    examples.

    14. Write a!out the need and types of looping statements in C language and discuss withexamples.

    1#. Write a c program to finds the roots of the 0uadratic e0uation.

    1$. Write a program to chec" the given num!er is palindrome or not.

    1&. Write a c program to find the factorial of given num!er.

    1'. Write a c program to find whether the no. is ve or ve.

    1(. Write a c program to find prime or not.

    2). Define arrays. *xplain the array types with an example program for each type.

    21. Write a program to find the Fibonacci series of num!er using arra.22. Write a program to searc! whether the given num!er is present in the list or not.

    "#$ Write a program to arrange the num!er in ascen%in& or%er$

    24. Write a c program to perform Ma'ri( a%%i'ion an% s)b'rac'ion$

    2#. Write a c program to perform Ma'ri( *)+'i,+ica'ion.