Python MCQ's Test

Python MCQ's Test

Professional Development

61 Qs

quiz-placeholder

Similar activities

NQESH DOMAIN 5

NQESH DOMAIN 5

Professional Development

65 Qs

INTRODUCCIÓN INDICADORES DE GESTIÓN AMBIENTAL

INTRODUCCIÓN INDICADORES DE GESTIÓN AMBIENTAL

Professional Development

60 Qs

Types of cars and parts of a car-Unit 3

Types of cars and parts of a car-Unit 3

Professional Development

58 Qs

Sound

Sound

Professional Development

60 Qs

General Awareness - III

General Awareness - III

Professional Development

60 Qs

Peds Exam III - Oncology & Neurology

Peds Exam III - Oncology & Neurology

Professional Development

58 Qs

Selling HPE Solution Foundations - Module 1

Selling HPE Solution Foundations - Module 1

Professional Development

60 Qs

Nokia Subcontractor-22

Nokia Subcontractor-22

Professional Development

60 Qs

Python MCQ's Test

Python MCQ's Test

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Muhammad Arham

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

61 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The rules for putting together a correct computer language statement are called Syntax. Therefore if these rules are broken e.g. no brackets, speech marks etc. it is a...

Syntax error

Logic error

Code error

Run time error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax error with this code:

print”Hello World”

No brackets around "Hello World"

Speech marks are not needed

Colon is not needed

print is spelt incorrectly

Print has a capital P

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax error with this code:

print(“Hello World”);

No brackets around "Hello World"

Speech marks are not needed

Colon is not needed

print is spelt incorrectly

Print has a capital P

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax error with this code:

Print(“Hello World”)

No brackets around "Hello World"

Speech marks are not needed

Colon is not needed

print is spelt incorrectly

Print has a capital P

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax error with this code:

prin(Hello World)

No brackets around "Hello World"

Speech marks are not needed

Colon is not needed

print is spelt incorrectly

Print has a capital P

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you run this program what will this line of code do?

name = input("Enter your name: ")

Ask you to Enter your name and save your answer to Google Drive

Ask you to Enter your name and save your answer to My Documents

Ask you to Enter your name

Ask you to Enter your name and save your answer as a variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this piece of code do when it runs for John Smith born in June and the day of his birthday is Tuesday?

print("Hello " + name + "Your birthday month is " + month +

" and the day of your birthday this year is " + day)

"Hello " + name + "Your birthday month is " + month +

" and the day of your birthday this year is " + day

Hello John Smith Your birthday month is June and the day of your birthday this year is Tuesday

Hello John Smith Your birthday month is June and the day of your birthday this year is Monday

"Hello "John Smith "Your birthday month is " + month +

" and the day of your birthday this year is " + day

Access all questions and much more by creating a free account

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?