Back-End Programming Exam  >  Back-End Programming Tests  >  Test: Operators - 1 - Back-End Programming MCQ

Test: Operators - 1 - Back-End Programming MCQ


Test Description

15 Questions MCQ Test - Test: Operators - 1

Test: Operators - 1 for Back-End Programming 2024 is part of Back-End Programming preparation. The Test: Operators - 1 questions and answers have been prepared according to the Back-End Programming exam syllabus.The Test: Operators - 1 MCQs are made for Back-End Programming 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Operators - 1 below.
Solutions of Test: Operators - 1 questions in English are available as part of our course for Back-End Programming & Test: Operators - 1 solutions in Hindi for Back-End Programming course. Download more important topics, notes, lectures and mock test series for Back-End Programming Exam by signing up for free. Attempt Test: Operators - 1 | 15 questions in 30 minutes | Mock test for Back-End Programming preparation | Free important questions MCQ to study for Back-End Programming Exam | Download free PDF with solutions
Test: Operators - 1 - Question 1

Which operator is having right to left associativity in the following?

Test: Operators - 1 - Question 2

What is this operator called ?: ?

Detailed Solution for Test: Operators - 1 - Question 2

In this operator, if the condition is true means, it will return the first operator, otherwise second operator.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Operators - 1 - Question 3

What is the use of dynamic_cast operator?

Detailed Solution for Test: Operators - 1 - Question 3

Because the dynamic_cast operator is used to convert from base class to derived class.

Test: Operators - 1 - Question 4

What is the output of this program?

#include < iostream >
using namespace std;
int main()
{
int i, j;
j = 10;
i = (j++, j + 100, 999 + j);
cout << i;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 4

j starts with the value 10. j is then incremented to 11. Next, j is added to 100. Finally, j (still containing 11) is added to 999 which yields the result 1010.

Test: Operators - 1 - Question 5

What is the output of this program?

#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 6, c;
c = (a > b) ? a : b;
cout << c;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 5

Here the condition is false on conditional operator, so the b value is assigned to c

Test: Operators - 1 - Question 6

How many sequence of statements are present in c++?

Detailed Solution for Test: Operators - 1 - Question 6

There are five sequence of statements.They are Preprocessor directives, Comments, Declarations, Function Declarations, Executable statements.

Test: Operators - 1 - Question 7

The switch statement is also called as?

Detailed Solution for Test: Operators - 1 - Question 7

The switch statement is used to choose the certain code to execute, So it is also called as selective structure.

Test: Operators - 1 - Question 8

How many types of loops are there?

Detailed Solution for Test: Operators - 1 - Question 8

There are four types of loop. They are while, do while, nested, for loop.

Test: Operators - 1 - Question 9

Which operator is having the highest precedence?

Detailed Solution for Test: Operators - 1 - Question 9

The operator which is having highest precedence is postfix and lowest is equality.

Test: Operators - 1 - Question 10

The if..else statement can be replaced by which operator?

Detailed Solution for Test: Operators - 1 - Question 10

In the conditional operator,it will predicate the output using the given condition.

Test: Operators - 1 - Question 11

What is the output of this program?

#include
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout << a;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 11

Because the * operator is having highest precedence, So it is executed first and then the + operator will be executed.

Test: Operators - 1 - Question 12

Which looping process is best used when the number of iterations is known?

Test: Operators - 1 - Question 13

What is the output of this program?

#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 6, c, d;
c = a, b;
d = (a, b);
cout << c << 't' << d;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 13

It is a separtor here.In c,the value a is stored in c and in d the value b is stored in d because of the bracket.

Test: Operators - 1 - Question 14

What is the output of this program?

#include < iostream >
using namespace std;
int main ()
{
int x, y;
x = 5;
y = ++x * ++x;
cout << x << y;
x = 5;
y = x++ * ++x;
cout << x << y;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 14

Because of the precedence the pre-increment and post increment operator, we got the output as 749736.

Test: Operators - 1 - Question 15

What is the output of this program?

#include <iostream>
using namespace std;
main()
{
double a = 21.09399;
float b = 10.20;
int c ,d;
c = (int) a;
d = (int) b;
cout << c <<'t'<< d;
return 0;
}

Detailed Solution for Test: Operators - 1 - Question 15

In this program, we are casting the operator to integer, So it is printing as 21 and 10

Information about Test: Operators - 1 Page
In this test you can find the Exam questions for Test: Operators - 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Operators - 1, EduRev gives you an ample number of Online tests for practice
Download as PDF