
c operators
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard

Dilkshwar pandey
Used 12+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
. What is the output of this C code?
int main()
{
int i = -5;
int k = i %4;
printf("%d\n", k);
}
· Compile time error
·
·
·
-1
1
none
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of this C code?
int main()
{
int i = 5;
int l = i / -4;
int k = i % -4;
printf("%d %d\n", l, k);
return 0;
}
-1 1
1 -1
compile error
run time error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this C code?
int main()
{
int i = 7;
i = i / 4;
printf("%d\n", i);
return 0;
}
run time error
1
3
7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x in this C code?
void main()
{
int x = 4 *5 / 2 + 9;
}
19
46
1.9
compile time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this C code?
void main()
{
int x = 4.3 % 2;
printf("Value of x is %d", x);
}
2
2.15
compile time error
0
Similar Resources on Wayground
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
10 questions
Examen Parcial Teorico - Desarrollo móvil
Quiz
•
Professional Development
10 questions
1ª Avaliação - Informática Aplicada
Quiz
•
Professional Development
10 questions
5. Control statement
Quiz
•
Professional Development
10 questions
Hen keeping
Quiz
•
Professional Development
10 questions
6. Method
Quiz
•
Professional Development
10 questions
DP-100 Day 4
Quiz
•
University - Professi...
10 questions
AWS ACF Módulo 1 - Visão geral dos conceitos de nuvem
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
