JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
C Quiz 1
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Name
*
Your answer
Email
*
Your answer
Phone Number
*
Your answer
Group Number
*
Your answer
Which of the following is the correct inline declarations of variables?
*
5 points
int a; b; c;
int a, int b, int c;
int a, b, c;
What does printf function returns?
*
5 points
size of integer
size of character
number of characters printed on the screen
size of variable
ASCII decimal range of characters from A...Z is?
*
5 points
65 - 90
97 - 122
100 - 127
1 - 28
Size of integer?
*
5 points
32 bits
8 bits
16 bits
Depends from machine to machine
consider the following declarations and definitions in c: i) int 39= -1; ii) int var_39=2; iii) int _= 3; which of the following is correct?
*
5 points
both i) and ii) are valid
only ii) is valid
both ii) and iii) are valid
none of the above
Predict the output
*
5 points
5
Compiler error
Garbage value
none of the above
Predict the output
*
5 points
10
Compiler error
Garbage value
none of the above
Predict the output
*
5 points
10
-10
-11
-5
Assuming that x is declared as an int, what dose the following line do? x ^= (1<<2); Note that LSB is bit 0.
*
5 points
Set bits 5 of x
clear bit 3 of x
toggle bit 2 of x
toggle bit 3 of x
A Variable can be Initialized During:
*
5 points
Declaration
Definition
Both
when you run the following piece of code, the output will be:
*
5 points
i=1 i=5 i=10
i=1 i=6 i=11
i=1 i=6
i=5 i=10 i=15
In C Programming we have the following types of Scopes
*
5 points
Block Scope
Function Scope
File Scope
Program Scope
Required
We Have The Following Code what is the Output of
*
5 points
1 2 3 4 5 6 7 8 9 10
0 1 2 3 4 5 6 7 8 9
10
None of the above
A local variable is allocated in
*
5 points
stack
heap
data segment
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report