Search Header Logo

Visual Programming

Authored by Cesar Omar Portillo Moreno

Other

University

Used 12+ times

Visual Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?


valueOne = 5 ** 2

valueTwo = 5 ** 3


print(valueOne)

print(valueTwo)

10,25

25,125

10,125

10,15

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?


for i in range(10, 15, 1):

print( i, end=', ')

10, 11, 12, 13, 14

10, 11, 12, 13, 14, 15

15,14,13,12,11,10

14,13,12,11,10

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?


str = "pynative"

print (str[1:3])

py

yna

pyn

yn

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?


def calculate (num1, num2=4):

res = num1 * num2

print(res)


calculate(5, 6)

10

20

30

40

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?


p, q, r = 10, 20 ,30

print(p, q, r)

30,20,10

10

1 2 3

10 20 30

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following


x = 36 / 4 * (3 + 2) * 4 + 2

print(x)

117

37

182

128

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the data type of the following


aTuple = (1, 'Jhon', 1+3j)

print(type(aTuple[2:3]))

list

complex

tuple

dictionary

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?