CS8261 - C Programming Laboratory - MCQ
CS8261 - C Programming Laboratory - MCQ
* Required
Email *
Your email
1. C is a ___ language *
High Level
Low Level
Middle Level
Machine Level
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 1/6
8/3/2021 CS8261 - C Programming Laboratory
Keywords
Variables
Constants
Single quotes
Double quotes
Both a and b
None of these
integer values
float values
double values
All of these
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 2/6
8/3/2021 CS8261 - C Programming Laboratory
a=a+4
a+4=a
a=4
a=4+4
Positive value
Zero
Negative value
None of these
8. What will this program print? main() { int i = 2; { int i = 4, j = 5; printf("%d %d", i,
j); } printf("%d %d", i, j); } *
a. 4525
b. 2525
c. 4545
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 3/6
8/3/2021 CS8261 - C Programming Laboratory
X is a four-digit integer
X is a four-bit integer
11. How many times will the following loop execute? for(j = 1; j <= 10; j = j-1) *
Forever
Never
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 4/6
8/3/2021 CS8261 - C Programming Laboratory
12. Which one of the following is a loop construct that will always be executed
once? *
For
While
Switch
do while
13. Study the following statement #include <stdio.h> int main() { int *ptr, a = 10; ptr
= &a; *ptr += 1; printf("%d,%d/n", *ptr, a); } What will be the output? *
10, 10
10, 11
11, 10
11, 11
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 5/6
8/3/2021 CS8261 - C Programming Laboratory
Submit
reCAPTCHA
Privacy Terms
This form was created inside of Tagore Engineering College. Report Abuse
Forms
https://docs.google.com/forms/d/e/1FAIpQLSfLLJAsAFoBwf5kbBn105thm1LqaLuvWFHriNumpzB0rMQ3Ww/viewform 6/6