GDSC Python Bootcamp

Quiz
•
Computers
•
University
•
Easy
Aman 20bec003
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of variables in Python?
Variables in Python are used to store and manage data values.
Variables in Python are used to store and manage emotions.
Variables in Python are used to confuse programmers.
Variables in Python are used for decorative purposes only.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a while loop in Python?
Use 'for' loop instead
Define a 'repeat' loop
Implement a 'do-while' loop
Example: x = 0 while x < 5: print(x) x += 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for an if statement in Python?
if (condition):
if condition:
if condition then:
if condition {
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between 'print' and 'return' in Python?
The 'print' statement is used to exit a function, while the 'return' statement is used to display output to the console.
The 'print' statement is used to return a value from a function, while the 'return' statement is used to display output to the console.
The 'print' statement is used to display output to the console, while the 'return' statement is used to exit a function and optionally pass a value back to the caller.
Both 'print' and 'return' are used interchangeably in Python.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of '5 + 3 * 2' in Python?
11
10
7
13
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if two variables are equal in Python?
!=
==
===
<>
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 'True and False' in Python?
True
True and True
True or False
False
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you concatenate two strings in Python?
string1 . string2
string1 - string2
string1 + string2
string1 * string2
Similar Resources on Wayground
10 questions
Understanding Procedures in Python

Quiz
•
9th Grade - University
10 questions
Python Basics

Quiz
•
University
10 questions
Python Programming Concepts Challenge

Quiz
•
10th Grade - University
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
10 questions
Kiểm tra 15 phút Tin học 10 - DA - Bài 26,27,28

Quiz
•
10th Grade - University
6 questions
Basic Data Types in Python

Quiz
•
University
10 questions
Day1

Quiz
•
University
13 questions
PYTHON - Quizz 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University