CS201 QUIZ NO 1 SOLVED SPRING 2019 FILE 6|| 100% VERIFIED|| VURANK

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

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

Q2: What will be the size of the following character array?
char name[]="Adeel";
A) 5
B) 6 (100% Sure)
C) 4
D) 7

Q3: While handling files, one can have __________ options.
A) read the file
B) write in some file
C) read and write in the same file
D) All of the given (100% Sure)

Q4: In Analysis, we try to have a __________.
A) Determined the inputs
B) Break up of problem
C) Precise problem statement (100% Sure)
D) None of the given

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

Q6: The string in the array is terminated by a __________.
A) zero
B) nil
C) null (100% Sure)
D) one

Q7: The statement cout << yptr will show the __________ the yptr points to.
A) Value
B) memory address (100% Sure)
C) Variable
D) None of the given

Q8: When we access a multidimensional array, each index is surrounded by __________.
A) Single quotes ''
B) Double quotes ""
C) Brackets [] (100% Sure)
D) Commas ,,

Q9: There is a pointer variable named ptr of type float then address of which type of variable the ptr will store in it?
A) int
B) float (100% Sure)
C) char
D) double

Q10: Null character is represented by __________ in C++.
A) /0
B) \0 (100% Sure)
C) \n
D) \t