0% found this document useful (0 votes)
9 views2 pages

CP Theory

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

CP Theory

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

RKDEMY

C Programming

Ch. 1. Introduction to computer, algorithm and flowchart.


1. Explain how problem is defined with the help of example [ 4 M].
2. Write a short note on a) Turing model b) Von Neumann model [ 4 M].
3. What do you mean by algorithm? Which points should consider while developing the algorithm?
[4 M].
4. What is numbering system and types of number systems [4 M]
5. Write an algorithm and draw flowchart to calculate roots of quadratic equations. [4 M].
6. Explain flowchart with suitable example [4 M].
7. Explain need of flowchart with example [4 M].
8. Explain time complexity of an algorithm [4 M].
9. Explain space complexity of an algorithm [4 M]

Ch. 2. Fundamental of C programming


1. Explain logical operators. Write a c program to demonstrate the same. [4 M]
2. Explain Ternary ( : ? ) operators in c. write a program to determine maximum of three number [5
M].
3. What is error, explain different types of error occurred in program?
4. Explain all data types in C with their memory requirements.
5. Explain with example any two bitwise operator in c [ 4 M]
6. Explain bitwise right shift operator, bitwise x-or operator with example [5 M].
7. Write an explain unformatted IO functions [4 M].
8. Explain different tokens of C.
9. What is precedence and associativity of operators?

Ch. 3. Control Structure - Looping


1. Explain difference between while and do-while. [4 M]
2. Explain difference between for, while and do while loop. [ 4 M]
3. Explain for loop with syntax and example [4 M].
4. Draw flowchart of for, while and do-while loop. [ 5 M].

Ch. 4. Control Structure – Conditional and Branching


1. Explain switch control statement with syntax & example [4 M].
2. Discuss what is need of break statement in switch case [4 M]
3. Explain the following with example 1) goto, 2) continue 3) break [4 M]

Vaishnavi Academy Page 1


4. Differentiate between break and continue with example [4 M].
5. Explain switch case and if-else ladder with example [4 M].

Ch. 5. Functions and parameter


1. Explain following standard library functions i) Floor() ii) ceil() iii) sqrt () iii)pow() [4 M].
2. Explain difference between call by value and call by reference [4 M].
3. Explain any 2 library functions in math.h along with its uses [4 M].
4. Explain any two storage class with example [4 M].
5. What do you mean by static and extern storage class with example [4 M].
6. Explain call by value and call by reference with example [ 8 M]
7. What is recursion with an example? Explain with example [5 M].
8. What are advantages and disadvantages of recursion [5 M].

Ch. 6. Arrays, String, Structure, Files, Pointers


1. Explain array and what is need of an array [4 M].
2. State any 2 library function in string.h along with its uses. [4 M].
3. Explain any three string standard library functions [3 M].
4. Write a program to calculate sum of list by passing array to function.
5. Explain reference and dereference operators with example [4 M].
6. What do you mean by structure [4 M].
7. Define Union, differentiate structure and union.
8. Explain nested structure with example [4 M].
9. What is pointer? How will you declare and initialize pointer? Write a program to swap two
integers using pointers. [5 M].
10. Define pointer and its use? Explain array of pointer with example.
11. Explain how to read contents from file and write on to the file with syntax [4 M].
12. What do you mean by FILE, difference functions available to read data from the file? And specify
different modes of opening files with example. [10 M].

***************************** ALL THE BEST *****************************************

Vaishnavi Academy Page 2

You might also like