Relational Operators in C++

Descripción

A simple and intuitive quiz on Relational Operators in C++
Lakshya Gupta
Test por Lakshya Gupta, actualizado hace más de 1 año
Lakshya Gupta
Creado por Lakshya Gupta hace más de 8 años
230
0

Resumen del Recurso

Pregunta 1

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

Pregunta 2

Pregunta
How many relational operators are present in C++?
Respuesta
  • Five
  • Three
  • Six
  • Eight

Pregunta 3

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

Pregunta 4

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

Pregunta 5

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

Pregunta 6

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

Pregunta 7

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

Pregunta 8

Pregunta
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;
Respuesta
  • a is greater
  • b is greater
  • 20>10
  • None of these
Mostrar resumen completo Ocultar resumen completo

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