Home
Subjects
Textbook solutions
Create
Study sets, textbooks, questions
Log in
Sign up
Upgrade to remove ads
Only $35.99/year
CS 115.01-FINAL EXAM-QUIZ
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Quizzes from the entire semester of CS115.01 Karen St. John
Terms in this set (101)
Q1: The most recent lecture was most closely related to which of the following topics?
Using the print() function
Q1: Flowchartting is a tool that some programmers use to design programs.
True
Q1: A statement is a program instruction, usually appearing as a line of code.
True
Q1: The print() function in Python can be used to display text to the screen.
True
Q1: One way to help communicate design ideas is to use an informal language that has no syntax rules and is not meant to be compiled of executed. This is called Basic Shell Programming.
False
Q3: The equal sign (=) in Python is the assignment operator.
True
Q3: Given the following code, what type is the variable x when the user enters 4?
x=input("Enter a number:")
str
Q3: What is the output of the following code:
x=1.5+1.5
print(x)
3.0
Q3: What is the output of the following code:
num1=2
num1=3
print(num1)
3
Q3: What is the output of the following code:
a=4
b=5
c=a+b
print(c)
9
Q6: In Python, what are the >,<,>=,<=,==,!= operators called?
relational operators
Q6: What is the output of the following code?
print(7%2)
1
Q6: After the following line of code, what is the data type for variable x?
x="hello"
string
Q6: After the following line of code, what is the data type for variable x?
x=input("enter a number")
String
Q6: After the following lines of code, what is the data type for variable x?
y=6.786
x=format(y,'.2f')
String(I got this wrong but I thinks this is right)
Other Quizlet sets
SWD391 FE
120 terms
Biology exam 4 learning catalytic questions
57 terms
Chapter 3: Biology and Behavior
11 terms