PYHTON BASIC 1

PYHTON BASIC 1

University

15 Qs

quiz-placeholder

Similar activities

One Dimensional Arrays

One Dimensional Arrays

9th Grade - University

14 Qs

Python

Python

University - Professional Development

10 Qs

Bootcamp Day 3 - Java Array

Bootcamp Day 3 - Java Array

University

15 Qs

Java Quiz 1

Java Quiz 1

University

10 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

Briefing Operator Java

Briefing Operator Java

University

10 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

C Programming Quiz

C Programming Quiz

University

19 Qs

PYHTON BASIC 1

PYHTON BASIC 1

Assessment

Quiz

Computers

University

Hard

Created by

Vengadapathiraj M

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum length of a Python identifier?

32

64

128

No fixed length is specified.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

print(2**3 + (5 + 6)**(1 + 1))

129

8

121

66

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the datatype of the var in the below code snippet?

var = 10 print(type(var)) var = "Hello" print(type(var))

str and int

int and int

str and str

int and str

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a code block indicated in Python?

Brackets.

Indentation.

Key.

None of the above.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

a = [1, 2, 3] a = tuple(a) a[0] = 2 print(a)

[2, 2, 3]

(2, 2, 3)

(1, 2, 3)

Error.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

print(type(5 / 2)) print(type(5 // 2))

float and int

int and float

float and float

int and int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

a = [1, 2, 3, 4, 5] sum = 0 for ele in a: sum += ele print(sum)

15

5

0

10

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?