hich of the following is correct? O A. x*=-2*(y+z)/3 is equivalent to x = x*(-2*(y+z)/3) O B. k=k/(j +3) is equivalent to j/= (k+ 3) O C. I*= 2 is equivalent to / = 2*2 O D. i=j+3 is equivalent to i += i(j+3)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Which of the following is correct?
O A. X*= -2*(y+z)/3 is equivalent to x = x*(-2*(y+z)/3)
OB.
k =k/(j +3) is equivalent to j/= (k+ 3)
Oc. 1*= 2 is equivalent to / = 2*2
O D. i=j+3 is equivalent to i += i(j+3)
Transcribed Image Text:Which of the following is correct? O A. X*= -2*(y+z)/3 is equivalent to x = x*(-2*(y+z)/3) OB. k =k/(j +3) is equivalent to j/= (k+ 3) Oc. 1*= 2 is equivalent to / = 2*2 O D. i=j+3 is equivalent to i += i(j+3)
Program 1, below read three numbers A, B and C through the keyboard and produce an output.
3 int main()
4 B {
int A,B,C;
6 printf("Enter the Three Numbers\n");
7 scanf ("%d%d%d",&A,&B,&C);
if(A < B)
if(A < C)
11 E{
printf("%d", A);
13 F}
else
15 printf("%d", C);
16 }
10
12
14
17
else
18 E{
19 | if(B < C)
20 E{
printf("%d", B);
22 }
else
21
23
printf("%d", C);
25
24
26 L}
1) What is the output if the input is 1, 2, 3 ?:
O 4
O 2
O 1
O 3
2) What is the output if the input is 8, 4, 6 ?:
O 4
O 7
O 8
O 6
3) The program is to find ?:
O The average
O The biggest number
O The middle number
O The smallest number
Transcribed Image Text:Program 1, below read three numbers A, B and C through the keyboard and produce an output. 3 int main() 4 B { int A,B,C; 6 printf("Enter the Three Numbers\n"); 7 scanf ("%d%d%d",&A,&B,&C); if(A < B) if(A < C) 11 E{ printf("%d", A); 13 F} else 15 printf("%d", C); 16 } 10 12 14 17 else 18 E{ 19 | if(B < C) 20 E{ printf("%d", B); 22 } else 21 23 printf("%d", C); 25 24 26 L} 1) What is the output if the input is 1, 2, 3 ?: O 4 O 2 O 1 O 3 2) What is the output if the input is 8, 4, 6 ?: O 4 O 7 O 8 O 6 3) The program is to find ?: O The average O The biggest number O The middle number O The smallest number
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY