AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

quiz-placeholder

Similar activities

Basic Python

Basic Python

University

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python Lists

Python Lists

University

20 Qs

15 days of code quiz 2

15 days of code quiz 2

11th Grade - Professional Development

22 Qs

Python If Statements

Python If Statements

University

18 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Code Chef Python

Code Chef Python

University

15 Qs

Introduction to Python

Introduction to Python

University

20 Qs

AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

Assessment

Quiz

Computers

University

Hard

Created by

Abbas Abbasi

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

2ndVariable

_variable_name

var-name

variable!name

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

list

dict

tuple

set

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following data types is immutable in Python?

list

set

dictionary

tuple

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following methods can be used to add an element to a list in Python?

append()

add()

insert()

extend()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of the following code: print('Hello' + ' World')?

Hello World

HelloWorld

Error

World Hello

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a keyword in Python?

def

class

function

import

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following code: print(len('Python'))?

6

5

7

Error

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?