QUIZZ

QUIZZ

Professional Development

10 Qs

quiz-placeholder

Similar activities

Sanctions Training 2022

Sanctions Training 2022

Professional Development

10 Qs

Web development 1

Web development 1

Professional Development

10 Qs

PRE-LAB QUIZ 1

PRE-LAB QUIZ 1

Professional Development

15 Qs

Python Functions

Python Functions

Professional Development

9 Qs

Python Class Test 1

Python Class Test 1

Professional Development

10 Qs

PyDA Kemenkeu

PyDA Kemenkeu

Professional Development

10 Qs

Python Quiz

Python Quiz

1st Grade - Professional Development

6 Qs

R Beginner Quiz

R Beginner Quiz

Professional Development

15 Qs

QUIZZ

QUIZZ

Assessment

Quiz

Other

Professional Development

Easy

Created by

Vijayadheeswar Reddy

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str1 = "my isname isisis jameis isis bond"

  sub = "is"

print(str1.count(sub, 4))

4

5

6

7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str1 = 'Welcome'   

print (str1[:6] + ' PYnative')

Welcome PYnative

WelcomPYnative

Welcom PYnative

WelcomePYnative

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

strOne = str("pynative")

strTwo = "pynative"

print(strOne == strTwo) 

print(strOne is strTwo)

False False

True True

True False

False True

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def fun1(name, age=20):
    print(name, age)
fun1('Emma', 25)

Emma 25

Emma 25

Error

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def outer_fun(a, b):
    def inner_fun(c, d):
        return c + d
    return inner_fun(a, b)
    return a

result = outer_fun(5, 10)
print(result)

5

15

(15,5)

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def display_person(*args):
    for i in args:
        print(i)

display_person(name="Emma", age="25")

Typeerror

Emma 25

Name Error               

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def fun1(num):
    return num + 25

fun1(5)
print(num)

25

5

Nameerror

None of these

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?