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 fast 9 Jahre
237
0
1 2 3 4 5 (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

0 Kommentare

There are no comments, be the first and leave one below:

ähnlicher Inhalt

A Level: English language and literature technique = Dramatic terms
Jessica 'JessieB
To Kill A Mockingbird GCSE English
naomisargent
Bayonet Charge flashcards
katiehumphrey
Macbeth Quotes To Learn
Sophie Brokenshire
Romeo & Juliet Quotes
Lucy Hodgson
How does Shakespeare present villainy in Macbeth?
maxine.canvin
English Literature Key Terms
charlotteoom
English Language Techniques
lewis001
Using GoConqr to teach English literature
Sarah Egan
Using GoConqr to study English literature
Sarah Egan