Groups
Groups
Sign in
Groups
Groups
Marian MCA 2012-2015 Batch
Conversations
Labels
About
Send feedback
Help
C exam2
1 view
Exams
Skip to first unread message
srre...@gmail.com
unread,
Mar 19, 2013, 1:33:36 AM
3/19/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to alei...@googlegroups.com
If you have trouble viewing or submitting this form, you can fill it out online:
https://docs.google.com/forms/d/1WxFeFoLgmDtN34LJcJsu8tFeiRoNxIMzJmj-H2gMvfs/viewform?sid=167e304409c40b17&token=a9ckgT0BAAA.0ahC8nhA9f9lsOYZiNTSkg.ZU7vzZL8APLlNXvKFlbxrQ
C exam2
Welcome my dear students, here you can opt for the answer that you feel most appropriate. Use the exam to enhance your C skills. Have a hand at all the questions and try to score maximum.
The prototype of the driver function of C?
int main(void);
int main(int argc, char **argv);
None of the above
All of the above
Functions cannot return more than one value at a time. True or False?
True
False
Functions can be called either by value or reference. True or False?
True
False
Functions cannot return a floating point number. Yes/No ?
Yes
No
Usually recursion works slower than loops. Yes/No ?
Yes
No
There is a error in the below program. Which statement will you add to remove it? #include<stdio.h> int main() { int a; a = f(10, 3.14); printf("%d\n", a); return 0; } float f(int aa, float bb) { return ((float)aa + bb); }
Add prototype: float f(aa, bb)
Add prototype: float f(int, float)
Add prototype: float f(float, int)
Add prototype: float f(bb, aa)
Point out the error in the program. #include<stdio.h> int f(int a) { a > 20? return(10): return(20); } int main() { int f(int); int b; b = f(20); printf("%d\n", b); return 0; }
Error: Prototype declaration
No error
Error: return statement cannot be used with conditional operators
None of the above
The period during which a variable retains a given value during execution of a program
scope
longetivity
life time
none of the above
Which of the following is not a library function?
sqrt()
sum()
time()
all of the above
What is the scope of a register variable?
Local scope
Program scope
File scope
Global scope
What is the default value of an auto variable?
0
1
garbage
infinity
A recursion in which a function calls another function, which in turn calls the first function.
linear recursion
non-linear recursion
mutual recursion
None of the above
Which of the following can be passed to functions as arguments?
arrays
character arrays
two dimensional arrays
All of the above
Enter your roll number:
*
Enter your name:
*
Never submit passwords through Google Forms.
Powered by
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Additional Terms
Reply all
Reply to author
Forward
0 new messages