Python Fundamentals

Python Fundamentals

University

15 Qs

quiz-placeholder

Similar activities

Python Programming Quiz

Python Programming Quiz

9th Grade - University

20 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

C Programming Quiz

C Programming Quiz

12th Grade - University

20 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Control Structures

Python Control Structures

University

20 Qs

Python Strings

Python Strings

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python Fundamentals

Python Fundamentals

Assessment

Quiz

Computers

University

Medium

Created by

Tinkering Labs

Used 11+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

How will you print a message HELLO on python language?

printf(HELLO)

print("HELLO")

print HELLO

printf HELLO

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following is used on loops?

Indentation

Curly braces

Square brackets

None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will be the output for the following code?

x=5

x=10

print(x)

5

10

5

10

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

How will you declare a string on python programming?

Single Quotes

Double Quotes

Both a & b

No Quotes

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which keyword is used to identify the datatype in python?

typeof

datatypeof

type()

datatype()

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the output for the following code?

x,y,z="Apple","Orange","Banana"

print(x)

print(y)

print(z)

Apple

Orange

Banana

"Apple","Orange","Banana"

Apple,Orange,Banana

Apple

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What will the output for the following code?

x=y=z="Banana"

print(x)

print(y)

print(z)

Banana

Banana

Banana

Banana

Compilation error

Assignment Error

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?