
Programming2-Q2-Assessment
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is a valid variable name in Python?
a. 2var_name
b. my_variable
c. variable name
d. global - variable
Back
my_variable
2.
FLASHCARD QUESTION
Front
What is the correct way to declare a string variable in Python? Options: a. string name = "Hello", b. str_name = "Hello", c. "Hello" = str_name, d. name = Hello
Back
str_name = "Hello"
3.
FLASHCARD QUESTION
Front
In Python, what list method is used to get the length of a list?
Back
len()
4.
FLASHCARD QUESTION
Front
How do you access the first element of a list in Python? Options: a. list[0], b. list[first], c. list(1), d. list.first()
Back
list[0]
5.
FLASHCARD QUESTION
Front
What method is used to add an element to the end of a list in Python? Options: a. append(), b. insert(), c. add(), d. extend()
Back
append()
6.
FLASHCARD QUESTION
Front
What is the result of the following code: my_str = "1, 2, 3," + "4, 5"?
Back
"1, 2, 3, 4, 5"
7.
FLASHCARD QUESTION
Front
How do you remove the last element in a list in Python? Options: a. list.remove(value), b. list.pop(), c. list.delete(element), d. list.exclude(element)
Back
list.pop()
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Flashcard on Language Features and Functions
Flashcard
•
12th Grade - University
15 questions
História do Brasil e Portugal
Flashcard
•
12th Grade
14 questions
CADEIA ALIMENTAR
Flashcard
•
KG
18 questions
8A REGLEMENTATION UDPS-83 EXAMEN BLANC FLASH
Flashcard
•
KG
12 questions
Legal Writing Memo Flashcard
Flashcard
•
KG - University
17 questions
Cultural Studies and Cultural Politics Vocabulary Flashcards
Flashcard
•
University
10 questions
I Wandered Lonely As A Cloud By William Wordsworth
Flashcard
•
12th Grade
11 questions
Analizing Essay Titles
Flashcard
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade