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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:10
Acomputer has a two-level cache. suppose that 60% of the memory references hit on the first level cache, 35% hit on the second level, and 5% miss. the access times are 5 nsec, 15 nsec, and 60 nsec, respectively, where the times for the level 2 cache and memory start counting at the moment it is known that they are needed (e.g., a level 2 cache access does not even start until the level 1 cache miss occurs). what is the average access time?
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
You know the right answer?
1. Which of the following is used to separate code in Python? a) Commas
b) Curly braces
Questions
question
Mathematics, 06.04.2020 00:14
question
Mathematics, 06.04.2020 00:14
question
Mathematics, 06.04.2020 00:14
question
Spanish, 06.04.2020 00:15
question
Social Studies, 06.04.2020 00:15
question
Mathematics, 06.04.2020 00:15
Questions on the website: 13722361