More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
PPSC Computer Science Chapter 8 C Programming Online Test MCQs With Answers
Question # 1
When function is recursively called all the automatic variable are stored in a.
Choose an answer
Stack
Array
Register
Linked list
Previous
Skip
Next
Question # 2
If you declare an array without stating the elements it will be set to
Choose an answer
A null value
Zero
Garbage value
Set of words
Previous
Skip
Next
Question # 3
A function protoype is
Choose an answer
A definition of the function
a declaration statement in the called program
A declaration statement in the called program
A function call in the program
Previous
Skip
Next
Question # 4
The function slower checks wither a character is in lowered case or not and hence it should return.
Choose an answer
The character in lower case
The character itself
Nothing
0 or 1
Previous
Skip
Next
Question # 5
It is necessary to declare the type of the function in the calling program if.
Choose an answer
The function return an integer
The function retern an integer
Function returning only the float values
The function return a non integer value.
Previous
Skip
Next
Question # 6
When a program is running the value of a constant
Choose an answer
Can be changed
Cannot be used
I always hidden
Cannot be changed
Previous
Skip
Next
Question # 7
Suppose the return type of function f is void. Which one of the following statements is true.
Choose an answer
Function f does not contain a return statement.
Function f does not have parameters
Function f return a generic value
Function f does not work correctly
Previous
Skip
Next
Question # 8
The storage class of a local variable is
Choose an answer
Auto
Static
Extern
Register
Previous
Skip
Next
Question # 9
Write the last element of the following array.
Char flag [] =" FALSE"
Choose an answer
E
e
/O
\O
Previous
Skip
Next
Question # 10
Which operator from the following has the lowest priority.
Choose an answer
Assignment operator
Division operator
Common operator
Conditional operator
Previous
Skip
Next
Question # 11
What is the correct value to return to the operating system upon the successful completion of a program
Choose an answer
1
1
0
2
Previous
Skip
Next
Question # 12
Which of the following is a not a keyword in C langauge.
Choose an answer
Void
Volatile
Short
Gatchar
Previous
Skip
Next
Question # 13
What does the "auto" specifier do.
Choose an answer
It automatically initializes a variables to 0
It indicates that a variables memory will automatically be preserved
It automatically increments the variable when used.
It automatically initializes a variable to NULL
Previous
Skip
Next
Question # 14
Element of the array are accessed by
Choose an answer
Index
Mathematical function
Accessing the function in built in data structure.
Int l;
Previous
Skip
Next
Question # 15
If a = Oxaa and b = a << 1 then
Choose an answer
b = 2a
b = a/2
a = b -1
b = a
Previous
Skip
Next
Back