Anda di halaman 1dari 4

ClassXII- Computer Science

Viva questions

1. What is the difference between gets() and getline()?


2. What type of function is main()- user defined or in-built?
3. Consider the declaration : char *s[20] :- is it a 1-D or 2-D array ? Why?
4. What do you understand by static and dynamic memory? Give examples.
5. What do you understand by .h in header file declarations?
6. Why do we use comments? Declare a single line comment and a multi line comment.
7. Difference between object array and ordinary array?
8. Why do we use iostream.h?
9. Difference between array and structures.
10. Difference between linked list and files.
11. Difference between signed and unsigned.
12. Difference between built-in and derived data types.
13. What is the concept of polymorphism? How is it implemented in C++?
14. How is a constructor different from a simple function?
15. Name and elaborate on the types of Inheritance.
16. What are default arguments?
17. What do you mean by Overflow and Underflow in the context of stacks?
18. How many cases are possible in a select case?
19. What is difference between actual and formal parameters?
20. What do you mean by entry controlled and exit controlled loop?
21. What do you understand by transitive nature in inheritance?
22. How many bytes of data will be stored in each of the following :
a. char a[10];

b. int a1[10];

23. In SQL can MAX function be applied to date and char type data?
24. How are records implemented in C++?
25. How can we declare dynamic arrays?
26. What happens when the drop table command is executed?
27. Explain all the cases of the like operator in SQL.
28. Concepts of oops

29. Diff. between procedural programming and object oriented programming.

30. use of # include

31. Diff between static, local(automatic) & global variables.


32. Diff between files & arrays

33. Diff between binary & text files

34. Which is base class fstream / iostream

35. Diff between getch ( ) & getche( )

36. Diff between toupper( ) & isupper( )

37. What is identifier , token , keyword

38.Diff between if (i=2) & if(i= =2)

39..Diff between ‘’h’’ & ‘h’

40. Application of stacks & queues

41. Diff between files and linked list

42. Application of postfix expressions

43. What is A in char A[10]

44. Diff between while & do while loops & for loop

45. Diff between insertion , selection and bubble sort

46. Declaration & implementation of class , Diff between class & structure

47. Uses of constructors & destructors & definition

48. Types of constructors

49. Constructor overloading

50. Passing object through functions

51. Definition of file & stream

52. Diff between file & array

53. Writing/Reading characters to/from file


54. Writing/Reading strings to/from file

55. Diff between text & binary file

56. Writing/Reading objects to/from file

57. Add / modifying / delete from a file

58. How can we make changes in one particular column of a table

59. Diff between database & table

60. I have item .dbf having fields item no. & category. Give command to count the

Total number of items in each category

61. Student by having fields Roll no., Class, Section count total number of students in each
section of class XII

62. How can we give Alias name to data type & variable

63. Usage of functions & array’s

64. What happens during compilation & running

65. Diff. between continue & break & exit

66. Array’s of structure are one dimensional & two dimensional

67. Diff. B/W binary & linear search. Which one is better?

68.Various visibility modes in inheritance

69. Uses of copy constructor

70. Uses of function overloading and inheritance.

71. Difference between stack as an array and stack as a linked list.

72. Uses of pointers.

73. What is dynamic data structures ?

74. Name simple, compound and user defined data types.


75. What is DDL and DML?

76. Can we insert a new column into a table?

77. Can we delete a column from a table?

78. Can we delete a row from a table?

79. Can we insert a new row into a table?

80. What will happen if we declare a constructor/ destructor in the private section of a class?

81. Can we have a parameterized/ copy constructor in a class without having a default constructor?

82. What are reference variables?

83. Differentiate between read and write function and explain them in detail.

Anda mungkin juga menyukai