1. What is the value of the follwoing Boolean expression: 51-5? a) 5 b) 1 c) 8 d) 10 Great! it is correct. 一益 2. What is the value of 12%6? a) 0 b) 2 c) 12 d) 6 a Great! it is correct. 3. What is the...


*Using IF Statements*


1. Conduct a quiz that contains 4 questions. Each question has 4 possible answers. Ask a user to choose the correct answer for each question. If the user choose the correct answer, add 1 point. Display the total points user earned at the end of the quiz.


2. Ask a user to enter 4 integers and display the largest integer the user entered.


1. What is the value of the follwoing Boolean expression: 51-5?<br>a) 5<br>b) 1<br>c) 8 d) 10<br>Great! it is correct.<br>一益<br>2. What is the value of 12%6?<br>a) 0<br>b) 2<br>c) 12<br>d) 6<br>a<br>Great! it is correct.<br>3. What is the capital city of P. R. China?<br>a) Tokyo<br>b) Bankok c) Shanghai d) Beijing<br>Sorry, it is incorrect.<br>4. Which of the followings translates a program from C++ to machine language?<br>a) RAM<br>d.<br>Sorry, it is incorrect.<br>b) Compiler<br>c) Monitor<br>d) Keyboard<br>----<br>The total points: 2<br>=====================:<br>Please enter 4 integers:<br>5 1 22 7<br>The largest number you entered is 22<br>

Extracted text: 1. What is the value of the follwoing Boolean expression: 51-5? a) 5 b) 1 c) 8 d) 10 Great! it is correct. 一益 2. What is the value of 12%6? a) 0 b) 2 c) 12 d) 6 a Great! it is correct. 3. What is the capital city of P. R. China? a) Tokyo b) Bankok c) Shanghai d) Beijing Sorry, it is incorrect. 4. Which of the followings translates a program from C++ to machine language? a) RAM d. Sorry, it is incorrect. b) Compiler c) Monitor d) Keyboard ---- The total points: 2 =====================: Please enter 4 integers: 5 1 22 7 The largest number you entered is 22

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here