Programming Fundamentals

Programming Fundamentals

Professional Development

10 Qs

quiz-placeholder

Similar activities

coding

coding

KG - Professional Development

15 Qs

Code X Trade

Code X Trade

Professional Development

15 Qs

Introducción al lenguaje Python

Introducción al lenguaje Python

Professional Development

10 Qs

Sesión 07 : Diccionarios

Sesión 07 : Diccionarios

Professional Development

10 Qs

Unity & C-Sharp Quiz

Unity & C-Sharp Quiz

Professional Development

10 Qs

Review multiple choice Quiz

Review multiple choice Quiz

KG - Professional Development

10 Qs

Python

Python

8th Grade - Professional Development

10 Qs

Function and Conditional in Python

Function and Conditional in Python

Professional Development

10 Qs

Programming Fundamentals

Programming Fundamentals

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Saffin Mathew

Used 2+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?