Get started with python

Quiz
•
Computers
•
University
•
Medium
Anik m
Used 9+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 3 pts
What are the basic data types in Python?
char, list, tuple, dict
int, float, str, bool
int, float, array, set
string, number, boolean, object
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
How do you define a variable in Python?
x : 10.
int x = 10.
x; 10.
x = 10.
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the purpose of the 'if' statement in Python?
To define a function in Python.
To execute code conditionally based on a boolean expression.
To create a loop that iterates over a list.
To declare a variable in Python.
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Explain the difference between a list and a tuple in Python.
A list is immutable and tuple is mutable
Both lists and tuples are mutable
A list contain integers, tuple contain string.
A list is mutable and
tuple is immutable
5.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
How functions is defined in python?
Using 'def' keyword
Using 'define' keyword
Using 'func' keyword.
Using x=fun()
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you import a module in Python?
Using 'require' statement
Using 'load' command
Using 'import' statement
By function call
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the syntax for a for loop in Python?
for variable in sequence:
for variable to sequence:
foreach variable in sequence:
for (variable : sequence)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
20 questions
Python Prowess

Quiz
•
University
15 questions
Python Basics

Quiz
•
University
20 questions
Python Functions and File Operations Quiz

Quiz
•
University
20 questions
Python Programming Quiz

Quiz
•
9th Grade - University
20 questions
Python Functions and Error Handling

Quiz
•
10th Grade - University
15 questions
Week 7 Quiz

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade