What is wrong with this piece of code?
NAT4 SDD Python Coding

Quiz
•
Computers
•
4th Grade
•
Hard
Adrianna Dar
Used 9+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Missing semi-colon at the end
No line for user input
Text is not included within speech marks
To many print statements
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
The addition of variables cats and dogs should be included within parenthesis
Missing semi-colon at the end of a print statement
Variables cats and dogs are not converted to integer type before it is taken for calculation
Variables type is missing before their name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
To many if statements
Missing semi-colon at the end of print statement
Missing else statement at the end of a program
Wrong data type for variable ticket
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
Missing semi-colon at the end of a print statement
Missing colon after if and else statement
Wrong data type for variable score
Double == should be changed to single =
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
counter should be change to (3):
Missing semi-colon at the end of a print statement
Extra pair f parenthesis after input
total within print statement is not a variable, it's part of string expression
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
Variable times conversion to integer data type is not needed
Value of counter in for loop is missing after range
There should be word while instead of for in second line
Expression "Enter a number" should not be included within speech marks
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
Missing semi-colon at the end of output statement
To many commas included within output statement
Incorrect naming conventions for variables
Output statement doesn't exist.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this piece of code?
The conversion to integer data type is not needed taking user input
Missing semi-colon at the end of print statement
Incorrect format of user input statement
Incorrect data type for variables initialised with value 0.0
Similar Resources on Quizizz
10 questions
ASK TINGKATAN 3 STRUKTUR KOD ARAHAN

Quiz
•
1st - 5th Grade
10 questions
Styling Web pages using css

Quiz
•
4th Grade
10 questions
Grade-2

Quiz
•
1st - 4th Grade
12 questions
Variables and data types

Quiz
•
4th - 12th Grade
10 questions
Introduction to Python - If and Else

Quiz
•
1st - 6th Grade
13 questions
B4PrePSPM Set1

Quiz
•
1st - 5th Grade
10 questions
Python Basics

Quiz
•
4th - 7th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
15 questions
Character Analysis

Quiz
•
4th Grade
20 questions
math review

Quiz
•
4th Grade
10 questions
Identifying equations

Quiz
•
KG - University
15 questions
Multiplication Facts

Quiz
•
4th Grade
46 questions
Math Review EOG

Quiz
•
4th Grade
30 questions
Multiplication Facts 1-12

Quiz
•
2nd - 5th Grade
10 questions
Candy

Quiz
•
4th - 8th Grade
20 questions
Math Review

Quiz
•
4th Grade