CS201 QUIZ NO 1 SOLVED SPRING 2019 || 100% VERIFIED BY ADMIN || VURANK

CS201 QUIZ NO 1 SOLVED 100% VERIFIED BY ADMIN (MID TERM SYLLABUS)

Q1: __________ Returns true if c is a letter and false otherwise.
A) int isalpha(int c) (100% Sure)
B) int isalnum(int c)
C) int isxdigit(int c)
D) int isdigit(int c)

Q2: What will be the correct syntax of declaration of the following statement?
"ptr is a pointer to const int"
A) int const* ptr
B) int * const ptr
C) const int * ptr (100% Sure)
D) const * int ptr

Q3: What will be the size of following array? int arr[29];
A) 0
B) 30 (100% Sure)
C) 29
D) 28

Q4: Individual characters in a string stored in an array can be accessed directly using array __________.
A) superscript
B) script
C) subscript (100% Sure)
D) value

Q5: char **argv can be read as __________.
A) pointer to pointer
B) pointer to char
C) pointer to pointer to char (100% Sure)
D) None of the given

Q6: By default, the starting index of an array in C++ is __________ .
A) 2
B) -1
C) 0 (100% Sure)
D) 1

Q7: The ASCII code of null character is __________.
A) 000 (100% Sure)
B) 010
C) 111
D) 110

Q8: To manipulate n-dimensional array __________ nested loops are required.
A) n-2
B) n-1
C) n+1
D) n (100% Sure)

Q9: dereferencing operator is represented by __________.
A) * (100% Sure)
B) +
C) _
D) None of the given

Q10: Given a two dimensional array of integers, what would be the correct way of assigning the value 6 to the element at third row and fourth column?
A) array[3][4]=6 (100% Sure)
B) array[2][4]=6
C) array[4][3]=6
D) array[2][3]=6