Groups
Groups
Sign in
Groups
Groups
Marian MCA 2012-2015 Batch
Conversations
Labels
About
Send feedback
Help
C exam1
4 views
Exams
Skip to first unread message
srre...@gmail.com
unread,
Mar 18, 2013, 11:35:13 PM
3/18/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/1CzLfLQd26rQpkIDrGa4-CgLx-uOBM35TuY8e72RzCdY/viewform?sid=6da43408bf2d6074&token=CMm3gD0BAAA.0ahC8nhA9f9lsOYZiNTSkg.zhd_ll0zusWg0ibA4Bvx-g
C exam1
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 keyword used to transfer control from a function back to the calling function is
switch
goto
goback
return
A function cannot be defined inside another function.
True
False
Every function must return a value. Yes/No ?
Yes
No
Maximum number of arguments that a function can take is 12. Yes/No ?
Yes
No
Is it true that too many recursive calls may result into stack overflow?
Yes
No
Which of the following statements are correct about the program? #include<stdio.h> int main() { printf("%p\n", main()); return 0; }
It prints garbage values infinitely
Runs infinitely without printing anything
Error: main() cannot be called inside printf()
No Error and print nothing
Point out the error in the following function: f(int a, int b) { int a; a = 20; return a; }
Missing parenthesis in return statement
The function should be defined as int f(int a, int b)
Redeclaration of a
None of the above
The region of a program in which a variable is available for use.
scope
longetivity
life time
none of the above
Which of the following is not a library function?
sqrt()
square()
time()
none of the above
What is the scope of a static variable?
Local scope
Program scope
File scope
Global scope
What is the default value of an extern variable?
0
1
garbage
infinity
A recursion in which more than one recursion can be carried out as a part of execution of a single recursive process
linear recursion
non-linear recursion
mutual recursion
None of the above
Out of the following, which is an element of user-defined functions?
Function definition
Function call
Function prototype
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