(A) Return any type of data
(B) Return some specific type of data
(C) Return no data
(D) Return just character data
Tag: Introduction to Programming
If Num is an integer variable then Num++ means,?
(A) Add 1 two times with
(B) Add 1 with Num
(C) Add 2 with Num
(D) Subtract 2 from Num
The variables having a name, type and size are just like empty boxes?
(A) True
(B) False
(C) Both
(D) None
C is a/an __ language.
(A) low level
(B) object based
(C) object oriented
(D) function oriented
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
(A) *ptr = arr ;
(B) ptr = arr ;
(C) *ptr = arr[5] ;
(D) ptr = arr[5] ;
Which of the following is the correct statement for the following declaration? const int *ptr.?
(A) ptr is a constant pointer
(B) ptr is constant integer pointer
(C) ptr is a constant pointer to int
(D) ptr is a pointer to const int
How many total elements must be in two-dimensional array of 3 rows and 2 columns?
(A) 4
(B) 5
(C) 6
(D) 7
Which of the following is the correct way to assign an integer value 5 to element of a matrix say ‘m’ at second row and third column?
(A) m[2][3] = 5 ; // [row][col]
(B) m[3][2] = 5 ;
(C) m[1][2] = 5 ;
(D) m*2+*3+ = ‘5’;