476,688 views
21 votes
21 votes
For questions 1-3, consider the following code:

x = int(input("Enter a number: "))




if x != 7:

print("A")




if x >= 10:

print("B")




if x < 10:

print("C")




if x % 2 == 0:

print("D")


What is output if the user types in 10? Click all that apply.

Group of answer choices

A

C

D

B

Flag question: Question 2
Question 21 pts
What is output if the user types in 7? Click all that apply.
Group of answer choices

A

C

D

B

Flag question: Question 3
Question 31 pts
What is output if the user types in 12? Click all that apply.
Group of answer choices

D

A

C

B

Flag question: Question 4
Question 41 pts
The following code is intended to test if x is at least 5. Fill in the correct symbol:

User Petr Shypila
by
2.9k points

2 Answers

15 votes
15 votes

Answer:

By using the code given above, the answers for each question is as follows:

1. B & D

2. C

3. B & D

4. x >= 5

Hope it helps

User Mwhs
by
2.8k points
15 votes
15 votes

Answer:

1- A,D,B

2- C

3- A,D,B

4- >=

Step-by-step explanation:

took the quiz and got a 100%

User Aytekin
by
3.2k points