Programming Fundamentals

Programming Fundamentals

Professional Development

10 Qs

quiz-placeholder

Similar activities

OWASP Top 10

OWASP Top 10

Professional Development

10 Qs

Computer Hardware and Software Quiz

Computer Hardware and Software Quiz

Professional Development

10 Qs

Python Test 1

Python Test 1

Professional Development

10 Qs

Gen. Assembly Recap Day 1

Gen. Assembly Recap Day 1

Professional Development

15 Qs

UDC 2022

UDC 2022

Professional Development

10 Qs

Mastering KineMaster

Mastering KineMaster

Professional Development

10 Qs

KOE034: Sensors and Instruments

KOE034: Sensors and Instruments

Professional Development

11 Qs

Maintain Files and Folders

Maintain Files and Folders

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

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?