Ncssm coding study With correct answers.
What is the result of 13//2 - (correct answer) - 6
gf gf gf gf gf gf gf gf gf gfgf
Which operator is used for assignment? - (correct answer) - =
gf gf gf gf gf gf gf gf gf gfgf
How many elements does the string "Hello, World!" split into? - (correct answer) - 2
gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of the result of the following code? '42' + "3.14" - (correct answer) - "423.14"
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the type of the result of the following code? '42' + "3.14" - (correct answer) - String
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of total_quizzes after running the following code?
gf gf gf gf gf gf gf gf gf gf
quizzes = 5 students = 9 total_quizzes = quizzes*students students = 10 - (correct answer) - 45
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of is_in after running the following code? this_list = [42, 3.14, 6] this_slice = this_list[-
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
2:] is_in = 42 in this_slice - (correct answer) - False
gf gf gf gf gf gf gf gf gf gfgf
What type does sorted return when run on a tuple? - (correct answer) - List
gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
How do you include another element in a set? - (correct answer) - add
gf gf gf gf gf gf gf gf gf gf gf gf gfgf
Which data types cannot be used as a key in a dictionary? - (correct answer) - Lists and sets
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf gf gf
What happens when you use "get" to lookup a key not in a dictionary? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
None is returned
gfgf gf gf
Is the result of x is y if y=x[:] and x is a tuple - (correct answer) - True
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
Given that a and b are lists, what is the length of list a after a.append(b) is run? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
The original length of list a plus one
gfgf gf gf gf gf gf gf gf
Given the lists a and b after the previous problem, what is the length of list b after b.append(a) is run? -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
(correct answer) - The original length of list b plus one
gf gf gf gfgf gf gf gf gf gf gf gf
What is the length of list a after a.append(a) is run? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf
The original length of list a plus one
gfgf gf gf gf gf gf gf gf
What is the result of the following code? x = 42 if x > 6 or x[0]: print("If") else: print("Else") -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
(correct answer) - If
gf gf gf gfgf
What is the result of 13//2 - (correct answer) - 6
gf gf gf gf gf gf gf gf gf gfgf
Which operator is used for assignment? - (correct answer) - =
gf gf gf gf gf gf gf gf gf gfgf
How many elements does the string "Hello, World!" split into? - (correct answer) - 2
gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of the result of the following code? '42' + "3.14" - (correct answer) - "423.14"
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the type of the result of the following code? '42' + "3.14" - (correct answer) - String
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of total_quizzes after running the following code?
gf gf gf gf gf gf gf gf gf gf
quizzes = 5 students = 9 total_quizzes = quizzes*students students = 10 - (correct answer) - 45
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
What is the value of is_in after running the following code? this_list = [42, 3.14, 6] this_slice = this_list[-
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
2:] is_in = 42 in this_slice - (correct answer) - False
gf gf gf gf gf gf gf gf gf gfgf
What type does sorted return when run on a tuple? - (correct answer) - List
gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
How do you include another element in a set? - (correct answer) - add
gf gf gf gf gf gf gf gf gf gf gf gf gfgf
Which data types cannot be used as a key in a dictionary? - (correct answer) - Lists and sets
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf gf gf
What happens when you use "get" to lookup a key not in a dictionary? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
None is returned
gfgf gf gf
Is the result of x is y if y=x[:] and x is a tuple - (correct answer) - True
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gfgf
Given that a and b are lists, what is the length of list a after a.append(b) is run? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
The original length of list a plus one
gfgf gf gf gf gf gf gf gf
Given the lists a and b after the previous problem, what is the length of list b after b.append(a) is run? -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
(correct answer) - The original length of list b plus one
gf gf gf gfgf gf gf gf gf gf gf gf
What is the length of list a after a.append(a) is run? - (correct answer) -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf
The original length of list a plus one
gfgf gf gf gf gf gf gf gf
What is the result of the following code? x = 42 if x > 6 or x[0]: print("If") else: print("Else") -
gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf gf
(correct answer) - If
gf gf gf gfgf