AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

quiz-placeholder

Similar activities

C++ Quiz-1

C++ Quiz-1

University

15 Qs

 variable in python

variable in python

University

20 Qs

Introduction to Python

Introduction to Python

University

20 Qs

Basic Python

Basic Python

University

20 Qs

C-Py QUIZ | ROUND 1

C-Py QUIZ | ROUND 1

University

20 Qs

Python Basics

Python Basics

University

15 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

Python Lists

Python Lists

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?