Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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 casi 9 años
239
0
1 2 3 4 5 (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

0 comentarios

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

Similar

The Strange Case of Dr. Jekyll and Mr. Hyde
K d
Romeo & Juliet Quotes
Lucy Hodgson
How does Shakespeare present villainy in Macbeth?
maxine.canvin
English Literature Key Terms
charlotteoom
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
English Literary Terminology
Fionnghuala Malone