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...

Python MCQ's Test

Quiz
•
Professional Development
•
Professional Development
•
Hard
Muhammad Arham
Used 9+ times
FREE Resource
61 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Wayground
60 questions
HAM Exam Prep

Quiz
•
Professional Development
64 questions
Summer PD Technology 101

Quiz
•
Professional Development
60 questions
Simulado Certificação-ADM-Salesforce

Quiz
•
Professional Development
56 questions
CPE222_Midterm Exam

Quiz
•
Professional Development
64 questions
CompTIA Security + : Architecture and Design

Quiz
•
Professional Development
60 questions
Graphic Design, Level-3

Quiz
•
Professional Development
61 questions
U34 ACC

Quiz
•
University - Professi...
64 questions
Security+ Phase 4

Quiz
•
Professional Development
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade