int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
C programming
Quiz
•
Professional Development
•
Professional Development
•
Hard
Used 1K+ times
FREE Resource
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
10 questions
CPR Quiz_chapter 5_structure
Quiz
•
Professional Development
10 questions
C Structures
Quiz
•
Professional Development
15 questions
CPR_Quiz_Chapter4_function
Quiz
•
Professional Development
15 questions
C Operators
Quiz
•
University - Professi...
15 questions
Tutorial 1 Chapter 4 C Programming
Quiz
•
Professional Development
10 questions
pemrograman dasar
Quiz
•
Professional Development
10 questions
PreTrainingExceptions
Quiz
•
Professional Development
10 questions
C-program Introduction
Quiz
•
Professional Development
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade