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
Which of the following function calculates the square of 'X' in C.
Choose an answer
sr (X)
Pow (2,X)
Pow(X,2)
None of above
Previous
Skip
Next
Question # 2
What is the base data type of a pointer variable by which the memory would be allocated to it.
Choose an answer
Int
Float
No data type
Unsigned int
Previous
Skip
Next
Question # 3
In mixed mode expressions.
Choose an answer
Operands of lower type get automatically converted to higher type
Operands of higher type get automatically converted to lower type.
Operands of higher and lower type get in there changed
Operands of lower type get automatically converted to lower type.
Previous
Skip
Next
Question # 4
How is a variable accessed from another file.
Choose an answer
The global variable is reference via the extern specifier
The global variable is referenced via the auto specifier
The global variable is referenced via the global specifier
None of above
Previous
Skip
Next
Question # 5
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 # 6
Which of the following is not a valid name for a C variable.
Choose an answer
Hairaj
Hello _ raj
Hello raj
None of above
Previous
Skip
Next
Question # 7
"c" is called.
Choose an answer
Actual parameter
Local variable
Formal parameter
Global variable
Previous
Skip
Next
Question # 8
Which one of the following will declare a pointer to an integer at address 0 x 200 in memory.
Choose an answer
int " x, " x = 0 x 200;
int " x, = & 0 x 200;
int " x, = "0 x 200;
int " x, = 0 x 200
Previous
Skip
Next
Question # 9
What is the only function all C program must contain.
Choose an answer
Start ()
System ()
Main ()
Program ()
Previous
Skip
Next
Question # 10
The associativity of ++ operator is
Choose an answer
For arithmetic expression and
For pointer expression
For pointer expression and
For pointer express in and
Previous
Skip
Next
Question # 11
Which is the following is not a storage class in C.
Choose an answer
Auto
Struct
Extern
Static
Previous
Skip
Next
Question # 12
The given statement FILE "fptr;
Choose an answer
Defines a pointer to the pre defined structure type FILE.
Defines a pointer to the usere defined structure type FILE
Defines a pointer to the pre-defined data type FILE DESCRIPTOR.
Creates a file pointed by fptr
Previous
Skip
Next
Question # 13
How would you declared constant of 5 called 'MYCONST"?
Choose an answer
Constant MYCONST =5
Int my const =5
# define MYCONST 5
#define MYCONST =5
Previous
Skip
Next
Question # 14
To most widely used method for interpreting the bit setting as non negative integer is.
Choose an answer
EBCD system
BCD system
ASCII system
Binary number system
Previous
Skip
Next
Question # 15
The declaration int (*a)[8] : is
Choose an answer
An array of pointers
A pointer to an array
A pointer to a function
Function returning pointer
Previous
Skip
Next
Question # 16
'C' is a middle level language because.
Choose an answer
It is evolved in Middle age of computer development.
Not having so many features but still is robust
Easier to learn and use
Combines the best features of high low level languages.
Previous
Skip
Next
Question # 17
The function sprint ( ) works like print f ( ) , but operates on.
Choose an answer
Strings
Data in a file
Stderr
Stdin
Previous
Skip
Next
Question # 18
The storage class controls
Choose an answer
Life time of a variable
Linkage of a variable
Scope of a variable
a , b and c above
Previous
Skip
Next
Question # 19
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 # 20
Which of the following is not a correct variable type.
Choose an answer
Float
Real
Int
Double
Previous
Skip
Next
Question # 21
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
Back