Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Programming Fundamentals in C++

Quick practice

Question 1 of 5

The following code outputs :


x = 1, y = 0, z = 3


if (x && (++y || (z % x == 0))) cout << x + y + z;


else cout << x+y+z+1;

A

6

B

5

C

4

D

Runtime error

Concepts

Get unlimited practice with Competitive Programming subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go