About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Tuesday 6 February 2018

Assignment-1: Programming in C and Data Structures (Even Sem. 2017-18)

Assignment-I
Part-I
1. What is computer? Discuss its importance in today's world.

2. What is computer program?

3. List and discuss in brief about low-level, assembly-level and high level programming languages.

4. What is C language?List its features.

5. What is structure of C program?Discuss with programming example.

6. What is pseudocode?Write pseudocode for the following.
    To calculate average of three real numbers,
    To find area and perimeter of rectangle.
    To find square and cube of a number. 
    To find largest of two numbers.
    To print numbers from 1 to n.

Part-II

7. What are C tokens?List and discuss in brief.

8. Write C programs for the following.

To display "Hello World" message.
To display your residential address.
To display three messages "Good Morning","Good Afternoon" & "Good Evening" in 3 lines by using "\n" escape sequence.
To find addition of two integers.
To find addition,subtraction,multiplication and division of two numbers. (single program)
To find area and circumference of circle.
To find area of triangle by reading its breadth and height.
To find area of triangle by reading three sides of it.

9. What is datatype? list and discuss in brief.

10. What is variable? Discuss its declaration and initialization with syntax and examples.

11. What are I/O functions? List the types.

12. What are formatted I/O functions?List and discuss with syntax and examples.

Part-III    Date: 26-02-2018

13. What is precedence and associativity of operator? Discuss with examples.

14. Solve the following expression

  10+100%2<=12&&10==10*10/2!=0+!10

15. Explain the following

     Arithmetic operators
     Relation operators
     Logical operators

16. Write C program to find roots of quadratic equation.

17. Write C program to check entered number is PRIME or NOT PRIME










No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...