Python Rating_Cases

Python Rating_Cases

Professional Development

25 Qs

quiz-placeholder

Similar activities

java Exception handling

java Exception handling

Professional Development

26 Qs

Basics of Python Programming Unit-1

Basics of Python Programming Unit-1

University - Professional Development

20 Qs

Technical Quiz Round 1

Technical Quiz Round 1

Professional Development

20 Qs

Doc & Printing

Doc & Printing

Professional Development

20 Qs

KRIAKSHETRA SKILL - TRAINING PROGRAMME MATLAB SKILLS MCQ

KRIAKSHETRA SKILL - TRAINING PROGRAMME MATLAB SKILLS MCQ

Professional Development

25 Qs

PSC Quiz1

PSC Quiz1

University - Professional Development

20 Qs

PythonDataStructure

PythonDataStructure

Professional Development

21 Qs

CPR_Quiz_Arrays and strings

CPR_Quiz_Arrays and strings

Professional Development

20 Qs

Python Rating_Cases

Python Rating_Cases

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Gürkan Çanakçı

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

cubes = [1, 8, 27]
cubes.append(4 ** 3)
print(cubes)
[64,1, 8, 27]
[1, 8, 27, 12]
[1, 8, 27, 64]
[12 ,1, 8, 27]

2.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

word = "galaxy"
print(word[4:50])

axyaxy

axy

xy

xyxy

3.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

x = 51 % 3
print(x)

17

0

4.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

def if_confusion(x, y):
    if x > y:
        if x - 5 > 0:
            x = y
            return "A" if y == y + y else "B"
        elif x + y > 0:
            while x > y: x -= 1
            while y > x: y -= 1
            if x == y:
                return "E"
    else:
        if x - 2 > y - 4:
            x_old = x
            x = y * y
            y = 2 * x_old
            if (x - 4) ** 2 > (y - 7) ** 2:
                return "C"
            return "D"
        return "H"
print(if_confusion(3, 7))

C

D

E

H

5.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

x = 'cool'
print(x[-1] + x[-2]
        + x[-4] + x[-3])

cool

colo

loco

looc

6.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

words = ['cat', 'mouse']
for word in words:
    print(len(word))

1

3

2

4

3

5

4

4

7.

MULTIPLE CHOICE QUESTION

10 sec • 2 pts

word = "galaxy"
print(word[:-2] + word[-2:])

yxalag

yxa

gal

galaxy

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?