Programming Fundamentals

Programming Fundamentals

Professional Development

10 Qs

quiz-placeholder

Similar activities

Friday Fun

Friday Fun

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

TCH_Induction

TCH_Induction

Professional Development

12 Qs

1 - Introducing SCRUM in SAFe

1 - Introducing SCRUM in SAFe

Professional Development

10 Qs

OM_SBENT3C_Q2

OM_SBENT3C_Q2

University - Professional Development

15 Qs

GIT

GIT

Professional Development

15 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Introduction

Introduction

Professional Development

10 Qs

Programming Fundamentals

Programming Fundamentals

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Saffin Mathew

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...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following cannot be a Python variable name?

Int_1

true

var-2

name3

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?

valueOne = 5 ** 2

valueTwo = 5 ** 3

 

print(valueOne)

print(valueTwo)

10

15

25

125

Error: Invalid Syntax

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A string is immutable in Python? 

Every time when we modify the string, Python Always create a new String and assign a new string to that variable.

True

False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can we use the “else” block for for loop?

for example:

 

for i in range(1, 5):

    print(i)

else:

    print("this is else block statement" )

No

Yes

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?

var1 = 1

var2 = 2

var3 = "3"

 

print(var1 + var2 + var3)

 

6

33

123

Error. Mixing operators between numbers and strings are not supported

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Is the below code valid?

for x in range(0.5, 5.5, 0.5):

  print(x)

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

 

for i in range(10, 15, 1):

  print( i, end=', ')

10, 11, 12, 13, 14

10, 11, 12, 13, 14, 15

10,15,1

10,15

Access all questions and much more by creating a free account

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?