0% found this document useful (0 votes)
342 views4 pages

Second Semester BSC 2

Uploaded by

haibaa.mehajabin
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)
342 views4 pages

Second Semester BSC 2

Uploaded by

haibaa.mehajabin
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/ 4

SECOND SEMESTER BSc.

COMPUTER SCIENCE
BCS 2B 02-PROBLEM SOLVING USING C

SECTION A: answer the following questions. Each carries 2 marks


1. What is an array? How one dimensional array is declared?
2. What is typecasting?
3. What is goto statement?
4. Give syntax and use of sizeof operator in c
5. Distinguish between break and continue.
6. State the difference between ++i and i++.
7. What is conditional operator?
8. What is a constant?
9. Define keyword
10. What is ternary operator? With example
11. Write the syntax of “switch” statement.
12. Differentiate between implicit and explicit type conversions.
13. What is the purpose of typedef?
14. What are formal and actual parameters?
15. What are the basic data types in c
16. Explain logical operators in c
17. What is a function prototyping? Why it is necessary?
18. What are pre-processor directives
19. Define macros
20. What is an enumerated data type?
21. What is the use of putchar() and getchar()
22. What is a variable?
23. What is the use of the function in C?
24. What is a NULL pointer in C?
25. What is the use of break statement?
26. Describe the difference between = and == in C ?
27. What is the difference between functions abs() and fabs()?
28. How do you search data in a data file using random access method?
29. When is the “void” keyword used in a function?
30. What is the difference between void main() and int main()?
31. In the case of character array what is the difference between strlen() and sizeof() ?
32. What is extern in c?
33. Differentiate ‘a’ and ‘a+’ modes for appending.
34. Explain nested for loop
35. Write the syntax for ‘switch’ statement.
36. What is a header file?
37. What do you mean by local variables?
38. Which are the different integer types in c?
39. What is the purpose of strmp() and stricmp()
40. Explain the purpose of the function sprintf().
41. What is the meaning of base address of the array?
42. When should we use the register storage specifier?
43. S++ or S = S+1, which can be recommended to increment the value by 1 and why?
44. What is a dangling pointer?
45. What is the purpose of the keyword typedef?
46. What is lvalue and rvalue?
47. Can a program be compiled without main() function?
48. What is the advantage of declaring void pointers?
49. Where an automatic variable is stored?
50. What is a nested structure?
51. Name the four categories in which data types in the C programming language are divided
52. How data fine can be opened
53. What are jumps in loop
54. What is precedence of operator

SECTION B: answer the following questions. Each carries 5 marks


55. Explain various operators in c.
56. Explain dynamic memory allocation
57. Differentiate between Entry controlled loop and Exit controlled loop
58. Explain Pointers to Structure with example.
59. Explain any 5 library functions.
60. Write a program to find sum and reverse of a number.
61. Write a program to add two matrices
62. Explain operator precedence and associativity
63. Explain about while and for loop.
64. Explain recursion with example
65. Explain any five string handling functions with example
66. Explain about pointers
67. Explain call by value and call by reference with suitable example
68. Write a note on basic file operation
69. Differentiate structure and union
70. Write a program to insert an element in an array
71. Explain about command line argument
72. What is the difference between the local variable and global variable in C?
73. What is the difference between Structure and Array
74. Explain Array of Structure with Example?
75. Explain with syntax and example,the use of fprintf()
76. Differentiate between calloc() and malloc()
77. What is the difference between the local variable and global variable in C?
78. What functions are used for dynamic memory allocation in C language?
79. Write a program to print Fibonacci series without using recursion?
80. Write a program to check prime number in C Programming?
81. What is the difference between typedef and #define?
82. What do you mean by a Nested Structure?
83. Write a c program to sort n names.
84. Explain for loop with example
85. Write a program to evaluate the roots of a quadrtic equation
86. What are strings ?Explain any 5 string handling functions
87. Write a program to find the biggest and second biggest of n numbers
88. Explain the need of user defined function
89. Explain array of structures.

SECTION C: answer any question. Each carries 10 marks


90. Explain about various decision making statements in c.
91. Explain about looping statements in c with example
92. What are functions? Explain its categories with suitable example
93. Define storage class.Explain various storage class with example
94. Explain with an example,how will you create and access a structure in c.
95. Write a c program to find sum of N numbers using dynamic memory allocation.
96. Write a program using pointers to determine the length of a character string.
97. Write a program to multiply two matrix
98. Explain with an example how pointers are used with functions and structures
99. Write a note on one dimensional array, two dimensional array and multidimensional array
100. What is a constant ?explain different types of constants supported by c

You might also like