subject

2. what is the effectof the following code fragment?
int num1 = 2;
int num2;
cin> > num2;
if(num2%num1 == 0)
cout< < "first option"< else
cout< < "second option"< a. assigns the character'%' to the variable num2 if num1 is 0, and displays firstoption
b. displays first option if num1 and num2 are equal to 0, andsecond option otherwise
c. displays first option if an even number is enteres as input, andsecond option if an odd number is entered as input
d. displays first option if num1 and num2 are equal and secondoption otherwise

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:20, manny2085
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, kayladgranger
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, minnie7760
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
Answers: 2
image
Computers and Technology, 24.06.2019 12:00, exoticbunnylover123
Which spreadsheet operation does a look function perform?
Answers: 1
You know the right answer?
2. what is the effectof the following code fragment?
int num1 = 2;
int num2;
ci...

Questions in other subjects: