Technical Training III_B

Technical Training III_B

1st Grade

30 Qs

quiz-placeholder

Similar activities

Python Quiz - Data type, If/Else, Coding

Python Quiz - Data type, If/Else, Coding

1st - 5th Grade

30 Qs

Język Niemiecki Zawodowy

Język Niemiecki Zawodowy

1st Grade

25 Qs

LATIHAN SAINS TAHUN 4 : PENGUKURAN

LATIHAN SAINS TAHUN 4 : PENGUKURAN

1st - 6th Grade

25 Qs

Spring data

Spring data

1st Grade

27 Qs

Review PAT science part 1

Review PAT science part 1

1st - 2nd Grade

35 Qs

【F4SC】 Chapter 7

【F4SC】 Chapter 7

1st - 12th Grade

31 Qs

Sky line

Sky line

1st Grade

34 Qs

العالم الصغير 2

العالم الصغير 2

1st Grade

27 Qs

Technical Training III_B

Technical Training III_B

Assessment

Quiz

Science

1st Grade

Hard

Created by

Dev Kiran

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?