Question Bank Unit wise
C programming and Data structures
UNIT 1: INTRODUCTION OF “C”
1) a) Define Algorithm? Explain the programming steps in C programming?
b) Write a program to reverse the digits of a 5 digit number?
2) a) Explain all operators in C with examples?
b) Write a program to check whether a number is even or odd?
3) a) Explain all the data types with examples in c programming?
b) Write a program that reads two numbers and performs Arithmetic Operations on choice?
4) Explain all control loops in C programming with syntax and examples each?
5) a) What is the difference between signed integer and unsigned integer in terms of memory and ranges?
b) List the entire data types in C. What is the size of each these data types?
6) a) Write about space requirements for variables of different data types?
b) Write a program to print the multiplication table with proper format?
7) Explain the following
a) continue statement
b) break statement
c) goto statement
d) do- while statement with syntax and examples each?
8) a) What is meant by operator precedence? What are the relative precedence of the arithmetic operators?
b) What is the associativity of the arithmetic operators?
c) What are unary operators? Explain with example for each?
9) a) How can the value of an expression be converted to different data types? What is this called?
b) Write a program that reads an integer and prints whether it is a negative or positive and zero?
10) a) Explain Comma and Conditional operator, with example each?
b) Explain priority of operators and their clubbing?
11) Explain the following:
a) Identifiers
b) Type qualifiers
c) constants
d) all escape sequences.
12) Explain the following:
a) the if statement
b) the else-if statement
c) the switch cases
d) nested if –else statement? With syntax and examples each?
13) a) Write a program to sort six numbers and find the largest one by using ladder of if else?
b) Write a program to detect the entered number as to whether it is even or odd.use goto statement?
14) a) Write the differences between switch() case and nested if’s?
b) What is a loop? Explain for loop with syntax and an example?
15) a) Write a program to evaluate the series given in comment?
/* sum of series of x-x3/3!+x5/5!-x7/7!+………xn/n! */
b) Write a program to convert binary to decimal number?
Subscribe to:
Post Comments (Atom)
Sample C Program To Accept A String & Display Number Of Vowels.
ReplyDeleteSample C Program To Accept A String & Display Number Of Each Vowels.
Sample C Program To Accept A String & Find Out Whether This Character Is Present In The String.
Sample C Program To Find Out The No. Of Times A Character Is Present In The String.
Sample C Program To Understand Working Of Address Concept.
Sample C Program On Use Of Array & Pointer Concept Together.
Sample C Program On Pointers & 2 - Dimensional Array.
Sample C Program On Strings Into Array Of Pointers.
Sample C Program To Accept & Add Ten Numbers Using Pointers.
Sample C Program To Implement Recursive Algorithm Using Pointers.
Sample C Program With Algorithm To Implement Bubble Sort Using Pointers.
Sample C Program To Implement Selection Sort Using Pointers, Arrays & Functions.