What will be the output?
S=50.6
number=int(S)
new_number=number-1
print(new_number)
Python Internship Quiz
Quiz
•
Education, Instructional Technology
•
12th Grade - University
•
Medium
Teaching Assistant Ivy
Used 12+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
S=50.6
number=int(S)
new_number=number-1
print(new_number)
49.6
49
50
51.6
52
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the term 'debug' mean?
Identify errors and fix them.
Making a calculation
A set of instructions
Looking at code
Running a code in Jupyter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python is an example of a....
Text-based programming language
Object orientated programming language
language written in java script
Visual-based programming language
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the print function do in python?
It's a variable.
It can input data.
It displays something like a string or integer
It loops the code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct code for creating a list of names?
Name_List = Apple, Banana, Grape, Apple, Banana, Banana
Name_List = ("Apple", "Banana", "Grape", "Apple", "Banana", "Banana")
Name_List = ["Apple", "Banana", "Grape", "Apple", "Banana", "Banana"]
Name_List = [Apple, Banana, Grape, Apple, Banana, Banana]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What output will this code produce?
Colours=[]
Colours.append(“blue”)
Colours.append(“green”)
Colours.append(“red”)
Print(colours[2])
blue
green
red
error
none of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not valid variable name in Python?
_var
var_name
Elephant
var11
11var
16 questions
Intro to Coding Week 4
Quiz
•
9th - 12th Grade
15 questions
Quiz Dasar-Dasar Pemrograman Python
Quiz
•
12th Grade - University
20 questions
Python Assessment-2
Quiz
•
University
15 questions
GUIA TECNOLOGIA 2
Quiz
•
8th Grade - University
20 questions
III Part 1
Quiz
•
University
12 questions
Основи Python
Quiz
•
7th - 12th Grade
10 questions
Basic Python
Quiz
•
10th Grade - University
17 questions
PUC2 Laborator 5
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University