Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Q 1/7
Score 0
Which code will not result in an error?
45
num = input("Choose a number: ")
print("Your new number is "+ str(num+10))
num = str(input("Choose a number: "))
print("Your new number is "+ str(num+10))
num = int(input("Choose a number: ")
print("Your new number is "+ str(num+10)
num = int(input("Choose a number: "))
print("Your new number is "+ str(num+10))
Q 2/7
Score 0
<P>Which code will <B>not</B> result in an error?</P>
45
<P>age = int(input("How old are you? "))</P><P>next = age+1</P><P>print (Next year you will be + str(next) + years old.)</P>
<P>age = int(input("How old are you? "))</P><P>next = age+1</P><P>print ("Next year you will be " str(next) " years old.")</P>
<P>age = int(input("How old are you? "))</P><P>next = age+1</P><P>print ("Next year you will be " + str(next) + " years old.")</P>
<P>age = int(input("How old are you? "))</P><P>next = age+1</P><P>print "Next year you will be " + str(next) + " years old."</P>
Q 3/7
Score 0
<P>Which of the following is the correct way to get information from a user?</P>
45
<P>input("What is your name? ")</P>
<P>print (input("What is your name? ")</P>
<P>name = input("What is your name? ")</P>
<P>name = "What is your name? "</P>
Q 4/7
Score 0
<P>Sort the variables by whether or not they are properly named.</P>
45
Users sort answers between categories
Q 5/7
Score 0
<P>Identify the variable type in this line of code:</P><P>num = "7.5"</P>
45
<P>integer</P>
<P>float</P>
<P>string</P>
Q 6/7
Score 0
<P>You want to ask a user for their top 3 vacation spots.</P><P>Which of these would be the correct way to do that?</P>
<P>At which line in this code will there be an error:</P><P>num1 = int(input("Choose a number: "))</P><P>num2 = input("Choose another number: ")</P><P>average = (num1+num2)/2</P><P>print (average)</P>
45
<P>num2 = input("Choose another number: ")</P>
<P>print (average)</P>
<P>average = (num1+num2)/2</P>
<P>num1 = int(input("Choose a number: "))</P>
7 questions
Q.Which code will not result in an error?
1
45 sec
Q.Which code will not result in an error?
2
45 sec
Q.Which of the following is the correct way to get information from a user?
3
45 sec
Q.Sort the variables by whether or not they are properly named.
4
45 sec
Q.Identify the variable type in this line of code:num = "7.5"
5
45 sec
Q.You want to ask a user for their top 3 vacation spots.Which of these would be the correct way to do that?
6
45 sec
Q.At which line in this code will there be an error:num1 = int(input("Choose a number: "))num2 = input("Choose another number: ")average = (num1+num2)/2print (average)