
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Cryptography
Quiz
•
Professional Development
20 questions
History of the Buffalo Bills
Quiz
•
Professional Development
30 questions
CFP: Networking
Quiz
•
Professional Development
20 questions
Foundations of Communication Quiz
Quiz
•
Professional Development
20 questions
Quiz day 5
Quiz
•
Professional Development
20 questions
orthopedic fixation and implant
Quiz
•
Professional Development
20 questions
FC3 Unit 9 AB
Quiz
•
Professional Development
20 questions
EXAM SME Loans
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for others
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development