Access over 35 million academic & study documents

Its320 mod 1 mastery ex

Content type
User Generated
Rating
Showing Page:
1/5
Correct answers are hidden.
Score for this attempt: 10 out of 10
Submitted Jan 16 at 3pm
This attempt took 1 minute.
Question 1
1 / 1 pts
True or false? In Python, you have to declare a variable’s type such as “integer” or
“string.”
True
Correct! Variables in Python are not typed as they are in compile languages such as C and
Java.
False
Question 2
1 / 1 pts
Which statement prints: I hate spam! in Python 3?
print(I hate spam!)
print “I hate spam!”
print(“I hate spam!”)
print(“I like spam!”)
Correct! A Python 3 print statement uses parentheses to enclose the content that you
wish to print.
Question 3
1 / 1 pts
The essential components of a Python class include what? Select all that apply.

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/5
Variables
Methods
if statements
loop statements
Correct! Python classes essentially consist of variables and methods.
Question 4
1 / 1 pts
_____ is the operation of setting a variable to a value.
Multiplication
Definition
Assignment
User story
Correct! Python variables are assigned values.
Question 5
1 / 1 pts
True of false? Python scripts can either be procedural or object oriented.
True

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/5

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 5 pages?
Access Now
Unformatted Attachment Preview
Correct answers are hidden. Score for this attempt: 10 out of 10 Submitted Jan 16 at 3pm This attempt took 1 minute. Question 1 1 / 1 pts True or false? In Python, you have to declare a variable’s type such as “integer” or “string.” True Correct! Variables in Python are not typed as they are in compile languages such as C and Java. False Question 2 1 / 1 pts Which statement prints: I hate spam! in Python 3? print(I hate spam!) print “I hate spam!” print(“I hate spam!”) print(“I like spam!”) Correct! A Python 3 print statement uses parentheses to enclose the content that you wish to print. Question 3 1 / 1 pts The essential components of a Python class include what? Select all that apply. Variables Methods if statements loop statements Correct! Python classes essentially consist of variables and methods. Question 4 1 / 1 pts _____ is the operation of setting a variable to a value. Multiplication Definition Assignment User story Correct! Python variables are assigned values. Question 5 1 / 1 pts True of false? Python scripts can either be procedural or object oriented. True Correct! You have the option of making your Python programs object oriented or procedural. False Question 6 1 / 1 pts True or false? Every Python script must have a main method. True False Actually, Python scripts may contain methods that are called by another script with a main method. See the coding participation activities, Chapter 1 Programming in Python 3 with ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Just what I needed…Fantastic!

Studypool
4.7
Indeed
4.5
Sitejabber
4.4