C Programming :: All Aptitude Test ::

1.What will be the output of the program?
A. Error
B. -11, 34
C. 11, 34
D. Error

2.Point out the error in the program?
A. Error: unknown pointer conversion
B. Error: cannot convert ptr const value
C. No error
D. Error: unknown pointer conversion

3.Point out the error in the program (in Turbo-C).
A. Error: unknown max in declaration/Constant expression required
B. Error: invalid array string
C. No error. It prints A A
D. Error: unknown max in declaration/Constant expression required

4.Point out the error in the program?
A. Error: RValue required
B. Error: cannot modify const object
C. Error: LValue required in strcpy
D. Error: RValue required

5.Point out the error in the program?
A. Error: cannot convert 'const char *' to 'char *'.
B. Error: Lvalue required
C. No error and No output
D. Error: cannot convert 'const char *' to 'char *'.

6.Point out the error in the program?
A. Error: unknown data type const int
B. Error: const variable have been initialised when declared.
C. Error: stack overflow in x
D. Error: unknown data type const int

7.Point out the error in the program?
A. Error: RValue required
B. Error: Lvalue required
C. Error: cannot convert from 'const int *' to 'int *const'
D. Error: RValue required

8.Point out the error in the program?
A. Error: cannot convert ptr const value
B. Error: unknown pointer conversion
C. No error
D. Error: cannot convert ptr const value

9.Point out the error in the program?
A. Error: RValue required
B. Error: Lvalue required
C. Error: fun() returns a pointer const character which cannot be modified
D. Error: RValue required

10.What will be the output of the program?
A. PakMcqs 1 7 11 0
B. 1
C. 4
D. PakMcqs 1 7 11 0

11.What will be the output of the program?
A. Apple 12
B. Boys 13
C. Cats 14
D. Apple 12

12.Point out the error in the program?
A. Error: fun() needs return type
B. Error: ptr Lvalue required
C. Error: Invalid declaration of fun(...)
D. Error: fun() needs return type

13.Point out the error if any in the following program (Turbo C)?
A. Error: unknown variable ptr
B. Error: Lvalue required for parameter
C. No error and print A a b c
D. Error: unknown variable ptr

14.Point out the error in the program?
A. Error: ptr has to be set at begining
B. Error: ptr must be type of va_list
C. Error: invalid access to list member
D. Error: ptr has to be set at begining

15.Point out the error in the program?
A. Error: invalid arguments in function display()
B. Error: too many parameters
C. Error: in va_start(ptr, s);
D. Error: invalid arguments in function display()

16.Point out the error in the program?
A. Error: invalid va_list declaration
B. Error: var c data type mismatch
C. No error
D. Error: invalid va_list declaration

17.Point out the error in the program?
A. Error: invalid function display() call
B. Error: invalid function show() call
C. No error
D. Error: invalid function display() call

18.Point out the error in the program?
A. Error: too many parameters
B. Error: invalid access to list member
C. Error: ptr must be type of va_list
D. Error: too many parameters


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers