CS201 Quiz Online
Sunday, May 09, 2010 Posted In CS and IT Edit ThisIn C/C++; by default arguments are passed by _____ to a function.
Select correct option:
Reference
Value
Type
Data
Question # 2 of 10 ( Start time: 02:30:21 PM ) Total Marks: 1
The ASCHI code of null character is___________
Select correct option:
000
010
111
110
Question # 3 of 10 ( Start time: 02:31:12 PM ) Total Marks: 1
Pointers work by pointing to a particular___________
Select correct option:
Value
variable
data type
None of the given
Question # 4 of 10 ( Start time: 02:32:12 PM ) Total Marks: 1
char name [] = “Hello World” ; In the above statement, a memory of _______ characters will be allocated
Select correct option:
13
11
12
10
Question # 5 of 10 ( Start time: 02:33:38 PM ) Total Marks: 1
To get the value stored at a memory address, we use the________________
Select correct option:
referencing operator
dereferencing operator
simple operator
None of the given
Question # 7 of 10 ( Start time: 02:38:14 PM ) Total Marks: 1
In C-language the string “AZMAT” is equal to______________
Select correct option:
Azmat
azmat
AZMAT
None of the given
Question # 8 of 10 ( Start time: 02:39:36 PM ) Total Marks: 1
Pointers store the ____________________
Select correct option:
value of a variable
memory address
characters
None of the given
Question # 9 of 10 ( Start time: 02:40:02 PM ) Total Marks: 1
The name of the array is a constant pointer which contains the memory address of the ____________of the array.
Select correct option:
first element
Last element
second element
None of the given
Question # 10 of 10 ( Start time: 02:40:50 PM ) Total Marks: 1
dereferencing operator is represented by _______
Select correct option:
*
+
–
None of the given
Another Quiz:-
Question # 4 of 10 ( Start time:11:04:08 PM) Total Marks: 1
Pointers are a special type of __________in which a memory address is stored
Select correct option:
variables (handouts, page # 143)
Location
Characters
None of the given
Question # 5 of 10 ( Start time:11:04:27 PM) Total Marks: 1
In C/C++; by default arguments are passed by _______ to a function.
Select correct option:
Reference
Value
Type
Data
(not 100% sure, but I selected option # 2 “Value”, kindly verify it)
Question # 6 of 10 ( Start time:11:04:50 PM) Total Marks: 1
Which of the following function call is “call by reference” for the following function prototype? int add (int *);
Select correct option:
add(&x);
add(int x);
add(x);
add(*x);
Question # 7 of 10 ( Start time:11:05:48 PM) Total Marks: 1
The ASCHI code of null character is___________
Select correct option:
000 (see page # 113)
010
111
110
Question # 9 of 10 ( Start time:11:07:46 PM) Total Marks: 1
_________ Keyword is used to return some value from a function.
Select correct option:
break
return
continue
goto
(I selected option # 2, “return”)
Question # 10 of 10 ( Start time:11:08:00 PM) Total Marks: 1
Which of the function call is call by value for the following function prototype? float add(int);
Select correct option:
add(&x);
add(x);
add(int x);
add(*x);
Another Quiz:-
Quiz Start Time: 09:13 PM
Time Left 71
sec(s)
Question # 1 of 10 ( Start time: 09:13:05 PM ) Total Marks: 1
The statement cout << yptr will show the __________the yptr points to.
Select correct option:
Value
memory address
Variable
None of the given
Quiz Start Time: 09:13 PM
Time Left 55
sec(s)
Question # 2 of 10 ( Start time: 09:14:27 PM ) Total Marks: 1
The increment of a pointer depends on its___________.
Select correct option:
variable
value
data type
None of the given
Quiz Start Time: 09:13 PM
Time Left 78
sec(s)
Question # 3 of 10 ( Start time: 09:15:22 PM ) Total Marks: 1
dereferencing operator is represented by _______
Select correct option:
*
+
–
None of the given
Quiz Start Time: 09:13 PM
Time Left 51
sec(s)
Question # 4 of 10 ( Start time: 09:15:55 PM ) Total Marks: 1
Pointers store the ____________________
Select correct option:
value of a variable
memory address
characters
None of the given
Quiz Start Time: 09:13 PM
Time Left 57
sec(s)
Question # 5 of 10 ( Start time: 09:16:42 PM ) Total Marks: 1
In C-language the string “AZMAT” is equal to______________
Select correct option:
Azmat
azmat
AZMAT
None of the given
Quiz Start Time: 09:13 PM
Time Left 33
sec(s)
Question # 6 of 10 ( Start time: 09:17:28 PM ) Total Marks: 1
Pointers are a special type of __________in which a memory address is stored
Select correct option:
variables
Location
Characters
None of the given
Quiz Start Time: 09:13 PM
Time Left 81
sec(s)
Question # 7 of 10 ( Start time: 09:18:50 PM ) Total Marks: 1
suppose we have int y[10]; To access the 4th element of the array we write_________
Select correct option:
y[4];
y[3];
y[2];
none of given
Quiz Start Time: 09:13 PM
Time Left 42
sec(s)
Question # 8 of 10 ( Start time: 09:19:19 PM ) Total Marks: 1
In Analysis, we try to have a______________
Select correct option:
Determined the inputs
Break up of problem
Precise problem statement
None of the given
Quiz Start Time: 09:13 PM
Time Left 74
sec(s)
Question # 9 of 10 ( Start time: 09:20:14 PM ) Total Marks: 1
From the following; which on is the correct syntax of an array declaration: array size is 5 and it is of float data type?
Select correct option:
float [5] name;
name[5] float;
float name[5];
None of the given options
Quiz Start Time: 09:13 PM
Time Left 84
sec(s)
Question # 10 of 10 ( Start time: 09:20:38 PM ) Total Marks: 1
_________ Keyword is used to return some value from a function.
Select correct option:
break
return
continue
goto