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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
You know the right answer?
2. what is the effectof the following code fragment?
int num1 = 2;
int num2;
ci...
Questions
question
Mathematics, 22.06.2019 23:00
question
Social Studies, 22.06.2019 23:00