
C Programming (Pre test ET Sec B)
Authored by Rashmi Joshi
others
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 1.What is the output of the following code snippet?
#include
main()
{
int const a = 5;
a++;
printf(“%d”,a);
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 2 - What is the output of the following code snippet?
#include
main()
{
const int a = 5;
a++;
printf("%d", a);
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 3 - What is the output of the below code snippet?
#include
main()
{
int a = 5, b = 3, c = 4;
printf("a = %d, b = %d\n", a, b, c);
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 4 - Function fopen() with the mode "r+" tries to open the file for __
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 5 - What is the output of the following program?
#include
main()
{
int a[] = {2,1};
printf("%d", *a);
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 6 - What is the output of the following program?
#include
main()
{
int a[3] = {2,,1};
printf("%d", a[a[0]]);
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Q 7 - What is the following program doing?
#include
main()
{
FILE *stream=fopen("a.txt",'r');
}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?