I Years_Python

I Years_Python

Professional Development

50 Qs

quiz-placeholder

Similar activities

UQ/L-3/BK-2/Assessment/English

UQ/L-3/BK-2/Assessment/English

3rd Grade - Professional Development

53 Qs

II_III Years-Java, Python, and C Quiz

II_III Years-Java, Python, and C Quiz

Professional Development

50 Qs

SERTIFIKASI HR CABANG

SERTIFIKASI HR CABANG

Professional Development

50 Qs

KUIS HARI BUMI SMANDALAS

KUIS HARI BUMI SMANDALAS

10th Grade - Professional Development

50 Qs

Final Exam Review pt.2

Final Exam Review pt.2

Professional Development

55 Qs

Test Training Product GD 825A-2

Test Training Product GD 825A-2

Professional Development

50 Qs

NPA 1130 - Unit 10

NPA 1130 - Unit 10

Professional Development

50 Qs

I Years_Python

I Years_Python

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

SHANMUGAPRIYA.P MCE-LECT/IT

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct way to declare a variable in Python?

int x = 5;

x = 5

x := 5

x -> 5

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a valid data type in Python?

int

float

char

str

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type(3.14))?

<class 'int'>

<class 'float'>

<class 'double'>

<class 'str'>

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to define a function in Python?

def

function

func

define

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of print("Hello" + "World")?

HelloWorld

Hello World

Hello+World

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of the len() function in Python?

To convert a string to lowercase

To return the length of an object

To check if a variable is defined

To calculate the square root

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of print(2 ** 3)?

6

8

9

Error

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?