Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

Module 1 Assignment questions

The document is an assignment for a programming course focused on C language and data structures. It consists of ten questions covering topics such as the history and characteristics of C, control structures, operator precedence, storage classes, and programming tasks including grade calculation and recursive functions. Each question is designed to assess the understanding and application of C programming concepts.

Uploaded by

kyo02016sid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Module 1 Assignment questions

The document is an assignment for a programming course focused on C language and data structures. It consists of ten questions covering topics such as the history and characteristics of C, control structures, operator precedence, storage classes, and programming tasks including grade calculation and recursive functions. Each question is designed to assess the understanding and application of C programming concepts.

Uploaded by

kyo02016sid
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PROGRAMMING IN C AND DATA STRUCTURE

ASSIGNMENT-1

Answer the following questions: (10 marks each)


1. a) Explain briefly the history of C language? Write the characteristics and uses of
C language?
b) With the help of a flowchart explain the steps followed in the execution of a C
program.
2. Define keyword and identifier in C. What is data type? Explain about different
data types with examples.
3. Differentiate between Continue and Break statement. Write a C program to
calculate the grade of a student by considering the following range of marks using
switch-case statement.
O, 90 ≤ Marks ≤100
E, 80 ≤Marks < 90
A, 70 ≤Marks < 80
Grades= B, 60 ≤Marks < 70
C, 50 ≤Marks < 60
D, 40 ≤Marks < 50
F, Otherwise
4. What do you mean by operator precedence and associativity? Explain different
types of operators used in c with examples.
5. What do you mean by control structure in C? Explain branching statements with
syntax and example.
6. Explain about different storage classes with examples. Discuss their uses and
scope.
7. a) Explain about different parameter passing mechanisms in function with
examples.
b) Write a program to find the greatest among 3 numbers using function.
8. a) Define recursive function. Find out factorial of a number using recursive
function and non-recursive function.
b) Explain the storage classes used in C.
9. Write a program to add two numbers using
a) with argument with return type
b) with argument without return type
c) without argument without return type
d) without argument with return type
10. a) Write a program to print series from 10 to 1 using nested loops.
b) WAP to calculate the area of a triangle, circle, square or rectangle based on the
user’s choice.

You might also like