Relational Operators in C++

Descrição

A simple and intuitive quiz on Relational Operators in C++
Lakshya Gupta
Quiz por Lakshya Gupta, atualizado more than 1 year ago
Lakshya Gupta
Criado por Lakshya Gupta mais de 8 anos atrás
230
0

Resumo de Recurso

Questão 1

Questão
Operators which specify the relation between two variables by comparing them are known as?
Responda
  • Logical Operators
  • Relational Operators
  • Assignment Operators
  • Arithmetic Operators

Questão 2

Questão
How many relational operators are present in C++?
Responda
  • Five
  • Three
  • Six
  • Eight

Questão 3

Questão
What is '==' Operator known as?
Responda
  • Arithmetic operator
  • Equal Equal operator
  • Equal to operator
  • None of these

Questão 4

Questão
'Not equal to' operator is represented by what in C++?
Responda
  • !=
  • /=
  • Not =
  • \=

Questão 5

Questão
'Less than or equal to' is represented by what in C++?
Responda
  • =<
  • <=
  • =>
  • >=

Questão 6

Questão
What value is returned if the comparison of two variables is True?
Responda
  • 4
  • 0
  • 2
  • 1

Questão 7

Questão
How do you equate value of variable B to a variable A?
Responda
  • A=C
  • A==D
  • A=B
  • A==B

Questão 8

Questão
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;
Responda
  • a is greater
  • b is greater
  • 20>10
  • None of these

Semelhante

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