
'C' Operators in c, If statement(TEST-2)
Authored by srilatha Yarasu
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1) Choose a correct statement.
int a = 12 + 3 * 5 / 4 - 10
A) 12, 3, 5, 4 and 10 are Operators.
+, -, * and / are Operands.
= is an increment operator.
B) 12, 3, 5, 4 and 10 are Operands.
+, -, * and / are Operators.
= is decrement operator.
C) 12, 3, 5, 4 and 10 are Operands.
+, -, * and / are Operators.
= is an assignment operator.
D) 12, 3, 5, 4 and 10 are Operands.
+, -, * and / are Logical Operators.
= is an assignment operator.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2) Operator % in C Language is called.?
Percentage Operator
Quotient Operator
Modulus
) Division
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose a right statement.
int a = 10 + 4.867;
a = 10
a = 14.867
a = 14
compiler error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose a right statement.
float var = 3.5 + 4.5;
A)
B
C)
D)
var = 8.0
) var = 8
var = 7
var = 0.0
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose a right statement.
int a = 5/2;
int b = 5.0/2;
int c = 5 / 2.0;
int d = 5.0/2.0;
a = 2, b = 2, c = 2, d= 2
a = 2, b = 2.0, c = 2, d= 2.0
a=2.0, b=2.5, c=2.5, d=2.5
a=2.0, b=2.0, c=2.0, d=2.0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output of the given C program.
#include<stdio.h>
int main()
{
printf("%d ",5>2 && 1<2);
printf("%d ", 4>5 || 2<1);
printf("%d ",!(2>3));
return 0;
}
Q4) Find
0 1 0
0 1 1
1 0 0
1 0 1
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find the output of the given C program.
#include< stdio.h>
int main()
{
int x, y, z;
x = 9;
y = 10;
z = (x == y);
printf("%d", z);
return 0;
}
1
Garbage Value
0
None of these
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
15 questions
JavaScript
Quiz
•
University
20 questions
Fotogrametri dan Penginderaan Jauh
Quiz
•
University
15 questions
СОР_8 класс_раздел 1
Quiz
•
10th Grade - University
20 questions
Algoritma Pemrograman
Quiz
•
University
16 questions
Meet ACM
Quiz
•
University
15 questions
EDA PARTE 2
Quiz
•
University
17 questions
Demo DS-A ASHV Quiz
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
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