Python

Quiz
•
Computers
•
Professional Development
•
Hard
Abdulalim Mohamed
Used 1+ times
FREE Resource
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1,2,3,4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements create a dictionary?
a) d = {}
b) d = {“john”:40, “peter”:45}
c) d = {40:”john”, 45:”peter”}
d) All of the mentioned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will this code loop?
50
90
0
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose list1 is [2445,133,12454,123], what is max(list1)?
a) 2445
b) 133
c) 12454
d) 123
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a=(1,2,3,4), a[1:-1] is _________
a) Error, tuple slicing doesn’t exist
b) [2,3]
c) (2,3,4)
d) (2,3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To add a new element to a list we use which Python command?
a) list1.addEnd(5)
b) list1.addLast(5)
c) list1.append(5)
d) list1.add(5)
Create a free account and access millions of resources
Similar Resources on Wayground
33 questions
Chapter 4 : JavaScript Introduction

Quiz
•
Professional Development
40 questions
Python Senior Top

Quiz
•
Professional Development
30 questions
Python. Турнир 2

Quiz
•
Professional Development
34 questions
Friday Pop Quiz 5

Quiz
•
Professional Development
30 questions
Python - Basic Data, Structure, and Concepts

Quiz
•
Professional Development
30 questions
Full Stack Basics quiz

Quiz
•
Professional Development
30 questions
HTML y CSS

Quiz
•
Professional Development
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
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