Search Header Logo

PYTHON BASICS (CODE ANALYSIS)

Authored by Earl Diego

Computers

University

Used 4+ times

PYTHON BASICS (CODE ANALYSIS)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output of this program when the code terminates?

7

14

21

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the user input 5 as A and 6 as B, what would be the output of this code?

22

27

28

21

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Determine the output of the following program.

7

9

12

17

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All of the following are considered strings in Python, except for one. What is it?

"Jeric John Reyes"

'yamete kudasai'

'2023'

two thousand twenty three

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Determine the output of the program if a user input 101 as 'num'.

101

81

121

Math Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is the correct output if name='Jeric'?

2Jeric

2Jeric

2Jeric

Jeric*2

Jeric*2

Jeric*2

JericJeric

JericJeric

JericJeric

name*2

name*2

name*2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would be the output if sec=135?

135 sec

2, 15

2 min and 15 sec

2 min, 15 sec

2 minutes and 15 seconds

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?