Question: 1/ Match the possible data types with the most appropriate variable description. _____ check status of invoice (a) integer type _____ your middle initial (b)
1/ Match the possible data types with the most appropriate variable description.
_____ check status of invoice (a) integer type
_____ your middle initial (b) floating point ( real )
_____ number of people (c) Boolean ( True / False )
_____ name of the team (d) character
_____ bank account balance (e) String
2/What will be the elements in the list after this program segment is executed?
# create a list of people
List1 = ["Sam", "Dave", "Betty", "Bhavin", "Linda"]
# display the length of the list
print (len(List1))
List1.insert(3,"James")
print (List1)
(a) ["Sam", "Dave", "Betty", "James", "Bhavin", "Linda"]
(b) ["Sam", "Dave", "James", "Bhavin", "Linda"]
(c) ["Sam", "Dave", "James"]
(d) ["Sam", "Dave", "James", "Betty", "Bhavin", "Linda"]
(e) ["Sam", "James", "Betty", "Bhavin", "Linda"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
