Você está na página 1de 9

COMPUTER PROGRAMMING

IMPORTANT QUESTIONS FOR CSE-D & MECH-B


UNIT-1

The questions which are in Bold carry 10 Marks and remaining are
2marks & 3marks
1. Define Computer
2. List generations of computers?
3. Explain Introduction to computer system?
4. Draw a neat sketch for Von Neumann computer architecture?
5. Define Computing Environment?
6. List types of computing?
7. Define Centralized client server computing?
8. Define Distributed client server computing?
9. Explain computing Environment with a neat sketch?
10. Define Algorithm?
11. Define Flow chart?
12. Explain various symbols used in flow chart?
13.Explain with any two examples for algorithm and flowchart?
14. Define Computer Language?
15. Explain computer languages?
16. Define Compiler?
17. Define Preprocessor?
18. Define Interpreter?
19. Compare compiler and interpreter?
20. Define Assembler?
21. Define IDE
22. Give a few short keys of IDE
23. What are the steps for general form of a c program?

24. Explain creating and running a program?


25. Draw a neat sketch for Creating and running a program?
26. List the steps of program development/Software Development Life Cycle?
27. Explain program Development steps with an example?
28. Write a short note on History of a c program?
29. Compare Identifier and variable?
30. Explain the types of variables with an example?
31. Define C-Token?
32. List the C-Tokens?
33. Explain C-Tokens with example?
34. Define Expression?
35. List types of operators?
36. Explain operators with a simple program for each type of operator
concept?
37. Define precedence and associativity?
38. Define Expression Evaluation?
39. List types of evaluation?
40. Define Type casting or conversion or coercion?
41. Explain two types of type casting with an example?
42. Explain selection statement with syntaxes?
43. Explain looping statements with syntaxes?
44. Explain the syntaxes for goto, break and continue?
45. Write a short note on switch case statement followed by break?
46. Compare entry controlled looping and exit controlled looping?
47. Compare Switch case and if else statement?
48. How for looping statement useful in arrays?
49. Define conditional operator with an example?

50.Define sizeof()operator?
51.Define return() function?
52. Define Linker?
53. Define Loader?
54. Explain primary or basic data types?

UNIT-II

1. Define Function?
2. Define Structured programming?
3. Define Modular Programming?
4. Draw a diagram for Top down Design structure chart?
5. Define Function Declaration?
6. Define Function Definition?
7. Define user defined function?
8. Define predefined function?
9. Define Inter function communication or parameter passing mechanism?
10.
Explain call by value mechanism with an example?
11.
Explain Call by reference mechanism with an example?
12.
Explain storage classes with an example for each storage
class?
13.
Explain the 4 properties of storage classes?
14.
Explain type qualifies with syntaxes?
15.
Define Recursive Function?
16.
Define Non Recursive Function?
17.
List 5 advantages of Functions?
18.
List 5 LIMITATIONS OF Recursion?
19.
Explain preprocessor directives and its types with syntaxes?
20.
Define Array?
21.
Define Array initialization?
22.
Define Array Declaration?
23.
Explain the advantages/applications of Arrays?
24.
Explain types of Arrays with syntaxes and simple c program
example?
25.
Define Index?
26.
Define Subscript?
27.
Define Static Array?
28.
Define Dynamic Array?
29.
List reference operators

UNIT-III

1.
2.
3.
4.
5.
6.

Define Pointer?
Define Address?
Define Pointer to pointer?
Explain pointers concept with a simple example c program?
Explain pointer to pointer concept with a simple example c program?
Explain call by reference using pointers concept i.e(reference
operator *)
7. List 5 advantages of Pointers?
8. List 2 Disadvantages of Pointers?
9. Explain Arrays and pointers?
10.
Compare Arrays and Pointers?
11.
Explain Memory allocation functions with syntax and example
program?
12.
Define Void pointer?
13.
Define Null pointer?
14.
Define String?
15.
Explain unformatted input and output functions?
a)getsb)putsc)getchard)putchar
16.
Explain the following string handling functions with simple c
program for each function 1.strlen()
2.strcpy() 3)strcat()
4)strcmp() 5)strrev() 6).strupr() 7)strlwr() 8)strstr()
17.
Explain Array of Strings?
18.
Explain charecterArray String?
UNIT-IV

1. Define Structure?
2. Define Union?
3. Give Structure Declaration syntax?
4. Give Union Declaration syntax?
5. Define enum datatype
6. Define Typedef?
7. Define Typedef?
8. Define structure initialization with simple c program example?
9. Define accessing structures with simple c program example?
10.
Explain structure operations with example c program?
11.
Define nesting of structure?
12.
Define self-referential structure?
13.
Define command line arguments?
14.
Explain the concept of bit fields?
15.
Define file?
16.
Define stream?
17.
Explain the file handling functions with basic syntax?
1fopen()
2.fclose() 3)fread() 4)fwrite() 5)fgets()
6)fputs()
7)getw()
8)putw()
9)fprintf() 10)fscanf() 11)fseek()
12)ftell()
13)rewind()
14)fgetc() 15)fputc() 16)ferror()

18.
19.
20.

Compare text file and binary file?


Compare sequential file and random file?
List the file types? And define it?

UNIT-V

1. Define searching?
2. Define sorting?
3. Define Time Complexity?
4. Define Space Complexity?
5. Define external sorting?
6. Define Internal Sorting?
7. List two types of searching techniques with examples?
8. List few linear searching techniques examples?
9. List few nonlinear searching techniques examples?
10. Compare time complexity and space complexity of bubble sort and selection
sort?
11. Compare time complexity and space complexity of sequential search and binary
search?
12. Define stack?
13. Give stack applications?
14. List stacks types?
15. Define Stack operations?
16. Define Queue?
17. Give queue applications?
18. List queue types?

19. Define queue operations?


20. Define Linked list?
21. Define singly linked list?

IMPORTANT PROGRAMS
UNIT-1
1. Write a c program to perform sum of individual digits of a positive
integers(refer cds lab manual)
2. Write a c program to perform arithmetic operations using switch
case statement(refer cds lab manual)
3. Write a simple c program to perform bitwise operators 1. right shift
2.left shift operators i.e 2 bits right side and two bits left side?
4. Write a simple c program to compare while and do-while looping
statements?(refer notebook or cds lab manual)
5. Write a simple c program by using 1.goto
2.break
3.continue
6. Write a simple c program by using sizeof operator?(hint: supposed
to know the size of basic data types)

UNIT-2
1. Write a c program to check the given number is prime number or
not?(refer cds lab manual)
2. Write a c program to perform factorial using recursive function?
(refer cds lab manual)
3. Write a c program to perform factorial using non recursive
function? (refer cds lab manual)
4. Write a c program to perform Fibonacci series using recursive
function?(refer cds lab manual)
5. Write a c program to perform Fibonacci series using non
recursive function?(refer cds lab manual)
6. Write a c program to perform GCD using recursive function?(refer cds lab
manual)
7. Write a c program to perform GCD using non recursive function?(refer
cds lab manual)
8. Write a c program to perform TOWERS OF HANOI using recursive
function?(refer cds lab manual)
9. Write a c program for call by value mechanism?
10.
Write a c program to perform TOWERS OF HANOI using non
recursive function?(refer cds lab manual)

11.
Write a simple c program to perform storage classes?
12.
Write a simple c program to perform quadratic equation?
13.
Write a simple c program to perform area of circle?
14.
Write a c program to perform single dimensional arrays?
15.
Write a simple c program to perform two dimensional arrays?
16.
Write a c program to perform addition of two matrices? (refer
cds lab manual)
17.
Write a c program to perform multiplication of two matrices?
(refer cds lab manual)
18.
Write a c program to compare array declaration and array
initialization?
UNIT-III
1. Write a simple c program to pointers concept?
2. Write a simple c program to perform pointers to pointers for arithmetic
operations?
3. Write a c program for call by reference mechanism?
4. Write a simple c program for void pointer? And null pointer?
5. Write a simple c programs to perform following string handling
functions 1.strlen()
2.strcpy() 3)strcat() 4)strcmp()
5)strrev() 6).strupr() 7)strlwr() 8)strstr()
6. Write a simple c program to check whether the given string is
palindrome or not?

UNIT-IV
1. Write a simple c program to perform structure?
2. Write a simple c program to perform structure pass by value?
3. Write a simple c program to perform structure pass by
reference?
4. Write a simple c program to perform nesting of structures?
5. Write a simple c program for a)typedef b)enum
6. Write a simple c program to perform bit fields concept?
7. Write a c program to perform command line arguments? (refer
cds lab manual)
8. Write a c program to copy the contents of one file to another
file? (refer cds lab manual)
9. Write a simplecprogram to explain files concept by using
fopen() and fclose()?
10. write c program for accessing structure student by using arrow
operator?
11. . write c program for accessing structure student by using dot
operator?

UNIT-V
1. Write a c program to implement selection sort? And give its
time complexity and space complexity? (refer cds lab manual)
2. Write a c program to implement bubble sort? And give its time
complexity and space complexity? (refer cds lab manual)
3. Write a c program to implement linear search? And give its
time complexity and space complexity? (refer cds lab manual)
4. Write a c program to implement binary search? And give its
time complexity and space complexity? (refer cds lab manual)
5. Write a c program to implement stack using arrays? And
perform 1.push2.pop3.display
6. Write a c program to implement queue using arrays?
1.insert2.delete3.display
7. Write a c program to implement linked list and perform
insertion and deletion opertaions?

Você também pode gostar