Relational Operators in C++

Description

A simple and intuitive quiz on Relational Operators in C++
Lakshya Gupta
Quiz by Lakshya Gupta, updated more than 1 year ago
Lakshya Gupta
Created by Lakshya Gupta over 8 years ago
230
0

Resource summary

Question 1

Question
Operators which specify the relation between two variables by comparing them are known as?
Answer
  • Logical Operators
  • Relational Operators
  • Assignment Operators
  • Arithmetic Operators

Question 2

Question
How many relational operators are present in C++?
Answer
  • Five
  • Three
  • Six
  • Eight

Question 3

Question
What is '==' Operator known as?
Answer
  • Arithmetic operator
  • Equal Equal operator
  • Equal to operator
  • None of these

Question 4

Question
'Not equal to' operator is represented by what in C++?
Answer
  • !=
  • /=
  • Not =
  • \=

Question 5

Question
'Less than or equal to' is represented by what in C++?
Answer
  • =<
  • <=
  • =>
  • >=

Question 6

Question
What value is returned if the comparison of two variables is True?
Answer
  • 4
  • 0
  • 2
  • 1

Question 7

Question
How do you equate value of variable B to a variable A?
Answer
  • A=C
  • A==D
  • A=B
  • A==B

Question 8

Question
What would be the output of the following code? int a=10,b=20; if(a>b) cout<<"a is greater"<<endl; else cout<<"b is greater"<<endl;
Answer
  • a is greater
  • b is greater
  • 20>10
  • None of these
Show full summary Hide full summary

Similar

English Language Techniques
lewis001
Using GoConqr to teach English literature
Sarah Egan
Using GoConqr to study English literature
Sarah Egan
New English Literature GCSE
Sarah Egan
A Level: English language and literature techniques = Structure
Jessica 'JessieB
A Level: English language and literature technique = Dramatic terms
Jessica 'JessieB
The Strange Case of Dr. Jekyll and Mr. Hyde
K d
English Speech Analysis Terminology
Fionnghuala Malone
English Literary Terminology
Fionnghuala Malone
To Kill A Mockingbird GCSE English
naomisargent
Bayonet Charge flashcards
katiehumphrey