Header Ads Widget

riti-advertiesment

O-Level exam Jan 2021 and Jul-2021 C-Language Guess Paper - English

Guess Paper of C-Language of Jan-2021/July-2021

1.     

Guess Paper of C-Language of Jan-2021


  1. Fibonacci series
  2. Storage classes available
  3. Pointer, Function, file handling
  4. What are the advantages and disadvantages of an Array
  5. Write a 'C' program to copy text of one file to another file.
  6. What is command line argument?
  7. What are preprocessor directives? Why do we need them? Explain various preprocessor directives? Explain the difference between Text Mode and Binary Mode files.
  8. Write a ‘C’ program to find the frequency of characters in a String.
  9. Write a ‘C’ program to store information (title, author, subject and book_id) of a Book using structure and display it in appropriate format.
  10. Write a ‘C’ program to find largest element of an Array.
  11.  
  12. Write a ‘C’ program to display following pattern:
  13. A
  14. B B
  15. C C C
  16. D D D D
  17. E E E E E
  18. Write a 'C' program that displays the recommended actions depending on the color of a traffic light using the switch statement.
  19. What is function? Explain uses of function. Also, explain declaration, function call and function definition with example.
  20. Write a ‘C’ program to swap two variables without using third variable.
  21. What are merits and demerits of array in ‘C’?
  22. Write a ‘C’ program in which a scanf() function can read a complete paragraph of text.
  23. What is difference between pass by value and pass by reference?
  24. Write a function in ‘C’ to print even numbers from 1 to 100.
  25. Write a ‘C’ program to find whether a number is palindrome or not.
  26. Write a program to reverse an array of numbers. b) Define array and link list. Give one example for each showing its usage. c) Write a program to delete an element from a given location of an array of integers
  27. Write a ‘C’ Program to find Sum of lower triangular elements in a matrix.
  28. Write a ‘C’ Program to find substring of string without using Library Function.
  29. How can you create your own header file in ‘C’ programming? Briefly explain.
  30. Write down three different methods used for referencing multiple values from a function.
  31. Write a ‘C’ program to read following details of 50 students. Student Name, Student Roll No, Class Display total number of students studying in class “BCA”.
  32. Write two main differences between structure and union.
  33. Compare the use of switch statements with the use of nested if statements. Which is more convenient ? Explain break, continue and goto statements with example.
  34. Write a program to print all prime numbers from 1 to 100. Use nested loops, break or continue statement wherever necessary.
  35. Explain the difference between = and = = operator with example. (b) What will be the output of the following program segment?
  36. main( ) { int x=3,y=5;
  37. if(x= =3)
  38. printf(“\n%d”,x);
  39. else; printf(“\n%d”,y);
  40. }
  41. Write a program to find the sum of the digits of a number.
  42. What is call by value and call by reference ? Write a program to swap two numbers using call by value. What do you understand by local, global and static variables ? Explain.
  43. Compare the lifetime, Scope, Initial value and storage place of all storage classes.
  44. Write a program to add a new node to the beginning of a linked list and to the end of linked list.
  45. What is a file in C ? Discuss various modes in which a file can be opened. Also discuss types of files.
  46. Write a note on pointers and its uses. What do you mean by referencing and de-referencing of a pointer variable ? (b) Explain any five string handling functions in detail with example. (c) Write a program to reverse an array.
  47. Write a function fnpow() in C to compute xy where x is float and y is integer. Function will return the result and takes x, y as arguments
  48. Write a function fnmat() which takes matrix, m, n as arguments where matrix is of size mXn with m as rows and n as columns. Function should return the maximum and minimum elements of the matrix. Elements of matrix are of integer type.
  49. Find the output of the following:
  50. char p[] = "%d\n";
  51. p[1] = 'c'; printf(p, 65);
  52. int k=40, *a; a=&k; (*a)++; k++;
  53. printf(“\n k=%d”,k);
  54. Write a program using command line parameters to append one text file to another text file.
  55. Write down one similarity and one dissimilarity between break and continue statements.
  56. A programmer wants to use two variables session and info. Variable session can take three values (morning, afternoon, evening) only. Using variable info, the programmer wants to access information empname and empid of 30 employees. Name the appropriate data type used for each variable session and info and declare the variables.
  57. Given array a[10][10] of integer where each integer takes 4 bytes. Given the base address of array a as 4000, find address of a[4][5] assuming array is stored as row-major order.
  58. Write a file statement to place a file pointer (fp) at the beginning of the record number (say R), where record size is B bytes.
  59. Differentiate between struct and union. When is union preferred over struct? Give one example for each.
  60. Explain differences between:
  61. Text file and binary file
  62. static and extern storage class
  63. b) Write down the objective of following function:
  64. void f1(char s[], char c)
  65. {int i ,j ;
  66. for(i=j=0; s[i] != `\0’; i++)
  67. if (s[i]!=c) s[j++]=s[i];
  68. s[ j ] = `\0’;
  69. return;
  70. }
  71. c) Explain the meaning of following declarations:
  72. int *p(char *a[])
  73. int *p(char *a, char *b)
  74. int (*p) (char *a)[] (++)
  75.  
  76. Write a program that accept an array of 10 integers and a number to be deleted from the array if found. Represent deleted element with -1 and display final array. If not found print appropriate message.
  77. Explain the role of linker and loader in compilation.
  78. Explain the relation of array and pointer with example.
  79. Draw a flow chart to print the factorials of numbers from 1 to n where n is entered by user.
  80. Write a function to display the multiplication table of the number.
  81. Write a function which accepts an array of size n containing integer values and returns average of all values. Call the function from main program.
  82. Using a switch statement, write a function to count the number of vowels and number of blanks in a character array passed to it as an argument.
  83. Which are the demerits of linked list data structure?
  84. Explain working of bit-wise exclusive OR and shift left operators in C with example.
  85. Write a program to find greatest number in an array?
  86. Explain the concept of recursion with example.
  87. Explain the difference between Test mode and Binary mode files.
  88. For example, 145 = 1! + 4! + 5! = 1 + 24+ 120 = 145.
  89. Define a structure Distance having two data members: cm and mm in integer. The program enters three variables and find which distance is the largest among them.                     

 


 


Web Designing Course