PYTHON BASICS

PYTHON BASICS

University

10 Qs

quiz-placeholder

Similar activities

python basics

python basics

6th Grade - Professional Development

9 Qs

Python - Diccionarios - GSL

Python - Diccionarios - GSL

University

10 Qs

Junk Genius

Junk Genius

University

11 Qs

Quiz Alprog 2 Pertemuan 10

Quiz Alprog 2 Pertemuan 10

University

10 Qs

SAFE - Python Workshop

SAFE - Python Workshop

University

10 Qs

Pemrograman Web 03

Pemrograman Web 03

University

13 Qs

python

python

3rd Grade - University

12 Qs

Python set 2

Python set 2

University

10 Qs

PYTHON BASICS

PYTHON BASICS

Assessment

Quiz

Other

University

Easy

Created by

Nirupama .R

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a programming language?

To design hardware

To perform mathematical calculations only

To communicate instructions to a computer

To draw graphics only

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code?

print("Hello")

Hello

# This is a comment

print statement

Error

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the following code do?

print("Hello World")

Displays "Hello"

Displays "Hello World"

Shows an error

Nothing

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Choose the correct way to write a comment in Python:

// This is a comment

<!-- This is a comment -->

# This is a comment

This is a comment

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is true about Python?

It is a compiled language only

It can only run on Windows

It is an interpreted language

Python is used only for games

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the print("Welcome to Python") command do?

Starts the interpreter

Runs Python shell

Displays text on screen

Opens a new file

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is required to run Python on an Android device?

Java compiler

Turbo C++

Python app like Pydroid or Termux

Not possible on Android

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?