Relational Operators in C++

Beschreibung

A simple and intuitive quiz on Relational Operators in C++
Lakshya Gupta
Quiz von Lakshya Gupta, aktualisiert more than 1 year ago
Lakshya Gupta
Erstellt von Lakshya Gupta vor mehr als 8 Jahre
230
0

Zusammenfassung der Ressource

Frage 1

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

Frage 2

Frage
How many relational operators are present in C++?
Antworten
  • Five
  • Three
  • Six
  • Eight

Frage 3

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

Frage 4

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

Frage 5

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

Frage 6

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

Frage 7

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

Frage 8

Frage
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;
Antworten
  • a is greater
  • b is greater
  • 20>10
  • None of these
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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