subject

1. Which of the following is used to separate code in Python? a) Commas
b) Curly braces
c) Indentations
d) Semicolons (wrong answer)

2. When programming dictionaries in Python, which of the following is true?
a) Values and keys can change.
b) Values can change, but keys cannot.
c) Values cannot change, but keys can.
d) Neither values nor keys can change. (wrong answer)

3. Which of the following is a mutable object in Python language?
a) Int
b) List (correct answer)
c) Range
d) String

4. Which of the following Python functions is used to return the number of characters in a string?
a) int()
b) len() (correct answer)
c) sizeOf()
d) str_length()

5. What is the major difference between lists and strings in Python?
a) Lists are mutable, while strings are immutable.
b) Lists can only contain integers, while strings can contain integers and characters. (wrong answer)
c) Lists can only contain letters, while strings can contain numbers.
d) Lists have a fixed size, while strings can vary in size.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:50, najashohatee1234
Can online classes such as gradpoint track your ip location like if im taking a final and i give somebody else my account and they take the final for me will it show where they are taking the final from? and can this be countered with a vpn
Answers: 1
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, suewignall
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, gamingisfun
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2