This quiz, titled 'Sec-A PC Quiz-4 (April 2019)', tests knowledge on C programming, focusing on pointers, arithmetic operations, and control structures. It includes questions on syntax, output prediction, and error identification.
400
200
800
1024
Rate this question:
10
15
20
25
Rate this question:
5
4
6
7
Rate this question:
Error
Computation Not Possible
20 Bytes
10 Bytes
Rate this question:
Main Funtion Argument
Formal argument
Command line argument
None of these
Rate this question:
10
20
30
Run time error
Rate this question:
Int 1bhk(int);
Int 1bhk(int a);
Int 2bhk(int*, int []);
All of the mentioned
Rate this question:
1
-1
Error
None
Rate this question:
%[^\n]s
%[^/n]s
%[/n]s
None
Rate this question:
4,3,2,1
1,2,3,4
3,2,1,4
2,1,3,4
Rate this question:
1,2,3,4
2,1,3,4
2,2,2,2
3,3,3,3
Rate this question:
5
4
2
0
Rate this question:
Internal
External
Both Internal and External
External and Internal are not valid terms for functions
Rate this question:
A function with same name cannot have different signatures
A function with same name cannot have different return types
A function with same name cannot have different number of parameters
All of the mentioned
Rate this question:
1024
10
Compile time error
Run time error
Rate this question:
2,1,3,4
2,4,3,1
1,2,3,4
None
Rate this question:
Compile time error
10
20
Run time error
Rate this question:
Ptr is array of pointers to 10 integers
Ptr is a pointer to an array of 10 integers
Ptr is an array of 10 integers
All of the mentioned
Rate this question:
The function calculates the value of 1 raised to power num.
The function calculates the square root of an integer
The function calculates the factorial value of an integer
None of above
Rate this question:
X=10 y=10 z=10
X=20 y=10 z=210
X=0 y = 10 z= 10
Error
Rate this question:
Heterogenous
Homogenous
Both
None
Rate this question:
Int sum(int a, int b) return (a, b);
Int sum(int a, int b) {return (a + b);}
Int sum(a, b) return (a + b);
none of the mentioned
Rate this question:
65486, 65488
65486, 65486
65486, 65490
Error
Rate this question:
1
2
4
3
Rate this question:
Return-type function-name(argument type);
Return-type function-name(argument type){}
Return-type (argument type)function-name;
All of the mentioned
Rate this question:
0 0 0 0 0
6 5 3 0 0
Garbage values
Run time error
Rate this question:
10
Some garbage value
Error
None
Rate this question:
1,2,3,4
4,3,2,1
2,1,3,4
4,3,1,2
Rate this question:
6 5
5 5
5 6
6 6
Rate this question:
2Byte
4Byte
8Byte
Compiler depended
Rate this question:
1200, 1200, 1200
1200, 1204, 1208
1200, 1200, 1208
Error
Rate this question:
Switch
Goto
Void
Return
Rate this question:
8, 4, 0, 2, 14
2, 0, 4, 8, 0
2, 0, 4, 8, 14
8, 4, 0, 2, 0
Rate this question:
-4
-5
-3
15
Rate this question:
Call swap (x, y)
Call swap (&x, &y)
Swap(x,y) cannot be used as it does not return any value
Swap(x,y) cannot be used as the parameters are passed by value
Rate this question:
20
9
5
8
Rate this question:
Char a[4];
Char a[] = {‘1’, ‘2’, ‘3’, ‘4’};
Char *str;
Char a;
Rate this question:
1
1,2
4
3
Rate this question:
10,10
Address of p &q
Address of a
None
Rate this question:
-2, -1
2, 1
-2, 1
None
Rate this question:
Garbage Value
Compile time error
2 3
2 5
Rate this question:
Yes, and we can use the function value conveniently
Yes, but we call the function again to get the value, not as convenient as in using variable
No, C does not support it
This case is compiler dependent
Rate this question:
43 80
80 43
40 45
80 40
Rate this question:
102030
1020400
10300400
103020
Rate this question:
Compiler errors
Some compiler-warnings not leading to unintended results
No compile warning or error
Some compiler-warnings due to type-mismatch eventually leading to unintended results
Rate this question:
10
Some garbage value
Error
None
Rate this question:
AB
Cd
Ef
Gh
Rate this question:
2
4
3
5
Rate this question:
Quiz Review Timeline (Updated): Dec 14, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.