Search Header Logo

Technical Training III_B

Authored by Dev Kiran

Science

1st Grade

Used 1+ times

Technical Training III_B
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1)   What will be the output of the following Python code?

def fn(var1):

    var1.pop(1)

var1=[1,2,3]

fn(var1)

print(var1)

[1, 3]
[1, 2, 3]
[2, 3]
[1, 2]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1)   What will be the output of the following Python code?

def fn(var1):

    var1.append(4)

var1=[1,2,3]

fn(var1)

print(var1)

[1, 2, 3, 4]

[1, 2, 3]

[1, 2, 4]

[1, 3, 4]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2)   What is the output of the following Python code?

def func(a, b):

    return a * b

result = func(3, 4)

print(result)

12

7

34

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3)   What will be the output of the following Python code?

def square(x):

    return x ** 2

result = square(5)

print(result)

10

25

5

15

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function convert an integer to an Unicode character in python?

ord(x)

unichr(x)

hex(x)

char()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

'A' + 'B' if '12'.isdigit() else 'X' + 'Y'

XY

A+B

X+Y

AB

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correctly evaluated for this function?

  pow(x,y,z)

x^y % z
z^y % x
x^z % y
y^x % z

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?