untitled

untitled

University

30 Qs

quiz-placeholder

Similar activities

Vocabulary- TA2

Vocabulary- TA2

8th Grade - University

25 Qs

Technology in Teaching and Learning

Technology in Teaching and Learning

University

25 Qs

QUIZ#1

QUIZ#1

University

25 Qs

Past tense

Past tense

6th Grade - University

25 Qs

PH (Penilaian Harian Teks iklan, slogan dan poster)

PH (Penilaian Harian Teks iklan, slogan dan poster)

12th Grade - University

25 Qs

HCI 323 - MIDTERM EXAM

HCI 323 - MIDTERM EXAM

University

31 Qs

Simulasi Ujian Akhir Semester 2019-2020

Simulasi Ujian Akhir Semester 2019-2020

University

25 Qs

BSEMC2A LABORATORY INFO MANAGEMENT

BSEMC2A LABORATORY INFO MANAGEMENT

University

25 Qs

untitled

untitled

Assessment

Quiz

Education

University

Practice Problem

Hard

Created by

R.SAMPAVI Dept

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code: def my_function(fname, lname): print(lname + " " + fname) my_function("Coco", "Sheth")

Coco Sheth

Sheth Coco

CocoSheth

ShethCoco

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct output for: def my_function(food): for x in food: print(x) fruits = ["apple", "banana", "cherry"] my_function(fruits)

banana apple cherry

apple banana cherry

banana cherry apple

cherry apple banana

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be in the blank space to print the second item: fruits = ["apple", "banana", "cherry"] print(______)

fruits[1]

fruits[3]

fruits[2]

fruits[0]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use to remove banana from the list: lsi = ["apple", "banana", "cherry"]

lsi.delete("banana")

lsi.remove["banana"]

lsi.delete["banana"]

lsi.remove("banana")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Use the correct syntax to print the number of items in the fruits tuple. fruits = ("apple", "banana", "cherry")

print(length(fruits))

print(len(fruits))

print(len(tuple(fruits)))

print(totallength(fruits))

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Use negative indexing to print the last item in the tuple. fruits = ("apple", "banana", "cherry") print(fruits[___])

0

-1

-2

-3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we print the value of the "model" key of the car dictionary. car = { "brand": "Ford", "model": "Mustang", "year": 1964 }

print(car.get["model"])

car.get("model")

print(car.get("model"))

print(car("model"))

Create a free account and access millions of resources

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?