
C programming
Professional Development
Professional Development
Used 1K+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
36 64
35 62
36 63
30 28
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int main()
{
char arr[7]="Network";
printf("%s", arr);
return 0;
}
Network
N
Garbage Value
Compilation error
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
#include<stdio.h>
int main()
{
char arr[11]="The African Queen";
printf("%s",arr);
}
The African Queen
The
The African
Compilation error
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
#include<stdio.h>
int main()
{
float a=0.7;
if(a<0.7)
{
printf("C");
}
else
{
printf("C++");
}
}
C
C++
Compilation Error
None of the these
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("n%d %d %d", x, y, z);
}
24 39 63
39 24 63
24 39 45
39 24 45
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int main() {
int m = -10, n = 20;
n = (m < 0) ? 0 : 1;
printf("%d %d", m, n);
}
-10 0
10 20
20 -10
0 1
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int main() {
int x = 0, y = 0;
if(x > 0)
if(y > 0)
printf("True");
else
printf("False");
}
No Output
True
False
Error because of dangling else problem
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
14 questions
Winter Olympics Trivia!
Quiz
•
Professional Development
10 questions
G&V Review-1
Quiz
•
University - Professi...
11 questions
interface and abstract class
Quiz
•
Professional Development
13 questions
Python Quiz : Loop
Quiz
•
Professional Development
15 questions
Công nghệ Java_Test1
Quiz
•
Professional Development
10 questions
Unsafe Condition and Unsafe Act
Quiz
•
10th Grade - Professi...
10 questions
Success Vocabulary
Quiz
•
Professional Development
15 questions
Pedagogik Teori Belajar
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade