
'C' Operators in c, If statement(TEST-2)

Quiz
•
Computers
•
University
•
Hard
srilatha Yarasu
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Programming in C(1)

Quiz
•
University
20 questions
C Programming Unit-1 Test-2

Quiz
•
University
20 questions
UNIT 1 PYTHON

Quiz
•
University
20 questions
ROUND 1 QUIZ FOR 1ST YEAR

Quiz
•
University
16 questions
C/C++ Programming Chapter 2

Quiz
•
University
25 questions
C/C++ Programming Quiz

Quiz
•
University
20 questions
Java Quiz 1

Quiz
•
University
16 questions
De todo

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University