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, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
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, 02.02.2021 01:00
question
Mathematics, 02.02.2021 01:00
question
Mathematics, 02.02.2021 01:00
question
Mathematics, 02.02.2021 01:00