Groups
Groups
Sign in
Groups
Groups
Marian MCA 2012-2015 Batch
Conversations
Labels
About
Send feedback
Help
C exam3
6 views
Exams
Skip to first unread message
srre...@gmail.com
unread,
Mar 19, 2013, 3:34:19 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/1GCtuGvZNiS7gdqbAE3l3MiltMxIS2pJ9FIZDcDObMLY/viewform?sid=2bdfcf406048ec54&token=dhmTgT0BAAA.0ahC8nhA9f9lsOYZiNTSkg.-IcAYwwgOofQ1NgTNHFjjQ
C exam3
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.
How many times the program will print “Hello! All the Best!" ? #include<stdio.h> int main() { printf("Hello! All the Best!"); main(); return 0; }
Infinite times
32767 times
65535 times
Till stack overflows
In C, all functions except main() can be called recursively. True or False?
True
False
If a function contains two return statements successively, the compiler will generate warnings. Yes/No ?
Yes
No
Will the following functions work?. Yes/No ? int f1(int a, int b) { return ( f2(20) ); } int f2(int a) { return (a*a); }
Yes
No
In a function two return statements should never occur. Yes/No ?
Yes
No
Which of the following statements are correct about the function? long fun(int num) { int i; long f=1; for(i=1; i<=num; i++) f = f * i; return f; }
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
Point out the error in the program: #include<stdio.h> int main() { int a=10; void f(); a = f(); printf("%d\n", a); return 0; } void f() { printf("Hi"); }
Error: Not allowed assignment
Error: Doesn't print anything
No error
None of above
Duration of time in which a variable exists in memory
scope
longetivity
lifetime
none of the above
Which of the following is not a library function?
sqrt()
add()
time()
all of the above
What is the scope of an extern variable?
Local scope
Program scope
File scope
Global scope
What is the default value of an static variable?
0
1
garbage
infinity
A recursion in which at most one recursive call is 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, what type of values can a function return?
void
array
Character array
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