Python Basics

Python Basics

University

10 Qs

quiz-placeholder

Similar activities

Prework Etapa 1 - Bogotá

Prework Etapa 1 - Bogotá

University

10 Qs

Jaringan Nirkabel - Pertemuan 3

Jaringan Nirkabel - Pertemuan 3

University

10 Qs

CID421 Introduction to 3D CAD SOLIDWORK

CID421 Introduction to 3D CAD SOLIDWORK

University

12 Qs

Algoritma dan Pemrograman Bab 1

Algoritma dan Pemrograman Bab 1

University

15 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Assessment 08

Assessment 08

University

15 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

University

Practice Problem

Medium

Used 134+ 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 statements is true?

Python is a high level programming language.

Python is an interpreted language.

Python is an object-oriented language.

All of the above.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is used to define a block of code (body of loop, fuction etc.) in Python?

Curly braces

Parenthesis

Indentation

Quotation

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is correct?

Comments are for programmers for better understanding of the program.

Python Interpreter ignores comment.

You can write multi-line comments in Python using triple quotes, either ''' or """.

All of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is correct?

Variable name can start with an underscore.

Variable name can start with a digit.

Keywords cannot be used as a variable name.

Variable name can have symbols like: @, #, $ etc.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In the following code, n is a/an _______?


n = '5'

integer

string

tuple

operator

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?


print(1, 2, 3, 4, sep='*')

1 2 3 4

1234

1*2*3*4

24

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is used to take input from the user in Python?

cin

scanf()

input()

<>

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?