The Code Hunter Quiz

The Code Hunter Quiz

University

20 Qs

quiz-placeholder

Similar activities

RIDDLE_IT_OUT

RIDDLE_IT_OUT

University

20 Qs

Week 3-4

Week 3-4

University

25 Qs

PPL – Python Premier League 🐍🏆

PPL – Python Premier League 🐍🏆

University

16 Qs

General quiz

General quiz

University

25 Qs

Understanding Assembly Language , Algorithms ,pseudocode

Understanding Assembly Language , Algorithms ,pseudocode

University

16 Qs

HO - 31 Define la regresión lineal

HO - 31 Define la regresión lineal

University

20 Qs

CMDP2063 Unix and C Programming

CMDP2063 Unix and C Programming

University

15 Qs

Software Development

Software Development

University

15 Qs

The Code Hunter Quiz

The Code Hunter Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

bekah samuel

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid variable name in Python?

1variable

variable1

variable-1

variable.1

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is an immutable data type in Python?

list

dictionary

set

tuple

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used for exponentiation in Python?

%

**

^

//

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What keyword is used to define a function in Python?

def

function

func

lambda

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Given the dictionary my_dict = {'letters': ['a', 'b', 'c']}, how would you access the element 'b'?

my_dict['letters'][0]
my_dict['letters'][2]
my_dict['letters'][1]
my_dict['letters'][3]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print(type([]))?

array

tuple

dictionary

list

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which method is used to add an element to a list?

add()

append()

push()

insert()

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?