Comprehensive viva

1) The keyword used to transfer control from a function back to the calling function is
A. Switch
B. Goto
C. Go back
D. return
2) If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
A. .
B. &
D. ->
C. *
3) If the two strings are identical, then strcmp() function returns
a. -1
a. 1
a. 0
a. Yes
4)In mathematics and computer programming, which is the correct order of mathematical operators?
A. Addition, Subtraction, Multiplication, Division
Division, Multiplication, Addition, Subtraction
Multiplication, Addition, Division, subtraction
D. Addition, Division, Modulus, Subtraction
5)Which of the following cannot be checked in a switch-case statement?
A. Character
B. Integer
C. Float
D. enum
6) 6)Input/output function prototypes and macros are defined in which header file?
A. conio.h
B. stdlib.h
C. stdio.h
D. dos.h
7) In C, if you pass an array as an argument to a function, what actually gets passed?
A. a)Value of elements in array
B. First element of the array
C. Base address of the array
D. Address of the last element of array
8)How will you free the allocated memory?
A. remove(var-name);
B. free(var-name);
C. delete(var-name);
D. dalloc(var-name);
9) By default a real number is treated as a
A. Float
B. Double
C. Long double
D. Far double
10.) Paying attention to the important properties while ignoring inessential details is know as ____.
A) selectiveness
d) inheritance
B) polymorphism
c) abstraction
{"name":"Comprehensive viva", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"1) The keyword used to transfer control from a function back to the calling function is, 2) If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?, 3) If the two strings are identical, then strcmp() function returns","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Make your own Survey
- it's free to start.