Python-1st

Quiz
•
Computers
•
University
•
Easy
Anwar Nasr Eldeen
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1-What is Python?
a) A snake
b) A programming language
c) A type of food
d) A country
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2-What is the syntax to print "Hello, World!" in Python?
a) print("Hello, World!")
b) println("Hello, World!")
c) printf("Hello, World!")
d) System.out.println("Hello, World!")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3-How do you declare a variable in Python?
a) var x = 5
b) x = 5
c) int x = 5
d) let x = 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4-What is the correct way to write a comment in Python?
a) // This is a comment
b) /* This is a comment */
c) # This is a comment
d) <!-- This is a comment -->
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5-Which of the following is NOT a data type in Python?
a) int
b) float
c) string
d) boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6-How do you check the length of a string in Python?
a) length(string_variable)
b) strlen(string_variable)
c) len(string_variable)
d) count(string_variable)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7-What is the output of the following code?
x = 5
y = 2
print(x % y)
a) 2
b) 2.5
c) 3
d) 0
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Session 2

Quiz
•
University
15 questions
coding

Quiz
•
KG - Professional Dev...
10 questions
Python Basics

Quiz
•
University
10 questions
Programming basic

Quiz
•
University
6 questions
Coding Collaborative Ice Breaker 10/24

Quiz
•
University
6 questions
Basic Data Types in Python

Quiz
•
University
11 questions
Array

Quiz
•
University
8 questions
DP02

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University