Consider the following Python script.
When you click on the file using a Windows file explorer, the script executes but you are unable to see the output. How would you fix that?
Chuyên đề 1. Các kiến thức cơ bản_Python
Quiz
•
Computers
•
12th Grade
•
Easy
Sỹ Minh
Used 5+ times
FREE Resource
59 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following Python script.
When you click on the file using a Windows file explorer, the script executes but you are unable to see the output. How would you fix that?
D. There is nothing to output
E. None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
A. JamesJamesJamesJamesJamesJames
B. JamesJamesJamesJamesJames
C. JamesJamesJamesJames
D. JamesJamesJames
E. Error: invalid syntax
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4 is 100 in binary and 11 is 1011. What is the output of the following bitwise operators?
A. 15
1
B. 14
1
C. 11
4
D. 15
2
E. 14
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in Python?
A. echo("Hello World");
B. p("Hello World")
C. print("Hello World")
D. echo "Hello World"
E. None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of “Hello”.upper().capitalize()?
A. “Hello”
B. “hello”
C. “HELLO”
D. Runtime Error
E. None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the statement evaluates the same to the statement below?
A. print ( 2*27*4)
B. print ( 2*3*4)
C. print ( 2*3**4)
D. print ( 2*3*3*4)
E. None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method can be used to replace parts of a string?
A. replaceString()
B. replace()
C. repl()
D. switch()
E. replaceStr()
61 questions
APCSA Semester Review
Quiz
•
9th - 12th Grade
57 questions
IT June 2020 Paper 1
Quiz
•
12th Grade
60 questions
Ôn tập Tin học lớp 3 HK 2
Quiz
•
3rd Grade - University
59 questions
RECAP - Y8 U6 Connecting to the internet - Quiz
Quiz
•
6th - 12th Grade
60 questions
PROVA AV01 - Gerenciamento de Redes
Quiz
•
2nd Grade - University
55 questions
SAINS KOMPUTER TINGKATAN 4
Quiz
•
12th Grade - University
63 questions
AQA Computer Science [AS Level]
Quiz
•
12th Grade
61 questions
Pretest Informatika
Quiz
•
12th Grade
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