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, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 22.06.2019 07:00
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
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, 06.01.2021 01:00
question
Mathematics, 06.01.2021 01:00
Questions on the website: 13722363