AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

quiz-placeholder

Similar activities

Programming in Python

Programming in Python

University

20 Qs

Basic Python

Basic Python

University

20 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

C-Py QUIZ | ROUND 1

C-Py QUIZ | ROUND 1

University

20 Qs

 variable in python

variable in python

University

20 Qs

Python Strings

Python Strings

University

20 Qs

Introduction to Python

Introduction to Python

University

20 Qs

Python Basics

Python Basics

KG - University

15 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?