What would be the output of the following:
name = "Mickey Mouse"
print("Character Name:" + name)
SLR 9 - Advanced Programming Techniques - Part Two
Quiz
•
Computers
•
10th Grade
•
Hard
Neil Stephens
Used 13+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the output of the following:
name = "Mickey Mouse"
print("Character Name:" + name)
Character Name:Mickey Mouse
Character Name: Mickey Mouse
Character Name: name
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be output from the following code?
name = "Mickey Mouse"
position = name.find(" ")
print(position)
Error
7
5
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python code will successfully output the position of the @ sign in this email address?
emailAdd = "mickey@disney.com"
print(emailAdd)
print(emailAdd.find(@))
print(emailAdd.find("@"))
print(find.emailAdd("@"))
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python code will cast this string into an integer, storing the result in 'numInt'?
number = "1"
numInt = number.int
numInt = int(number)
numInt = number.toInt()
number = numInt.int()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the following code output?
num1 = 4
num2 = "5"
print(num1 + num2)
9
45
4"5"
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will correctly output a random number between 1 and 10?
import random
num = random.randint(1,10)
print(num)
import random
num = random.randint(0,11)
print(num)
import random
num = random(1,10)
print(num)
import random
num = randint(1,10)
print(num)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a procedure?
def adding(num1, num2):
return num1 + num2
def adding(num1, num2):
answer = num1 + num2
return answer
def adding(num1, num2):
print(num1 + num2)
def adding(num1, num2):
answer = num1 + num2
return True
10 questions
Programação em C
Quiz
•
10th - 12th Grade
11 questions
J277 Programming - Data Types
Quiz
•
9th - 11th Grade
10 questions
APCSA - Unit 3
Quiz
•
9th - 12th Grade
11 questions
Casting in Java
Quiz
•
9th - 12th Grade
10 questions
IGCSE Computer Science - Chapter 9: Problem-Solving and Design
Quiz
•
9th - 10th Grade
7 questions
النشاط الختامي لدرس جملة الإدخال
Quiz
•
10th Grade
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th Grade
10 questions
C# Programming Basics Quiz
Quiz
•
10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade