Limited time offer 20% OFF StudySoup Subscription details

Georgia Tech - CS 1301 - Study Guide - Midterm

Created by: Sarah Notetaker Elite Notetaker

Georgia Tech - CS 1301 - Study Guide - Midterm

School: Georgia Institute of Technology
Department: Computer Science and Engineering
Course: Intro to Computing
Term: Spring 2019
Tags:
Name: Study Guide for first CS 1301 Midterm
Description: This study guide contains practice questions similar to that of those in practice tests and recitation with the answers and explanations to the answers.
Uploaded: 02/03/2019
This preview shows pages 1 - 3 of a 12 page document. to view the rest of the content
background image CS 1301 
Language: Python 3
1. What will the following function produce? a. 2
b. 0
c. 6
d. 3
e. None of the above
2. Which of the following answer choice would print “Georgia Institute of  Technology”  to the Python Shell? a. name[0:18], name[17:]
b. name[18], name[19]
c. name[:16], name[18:]
d. name[:17], name[17:]
e. None of the above
3. With the space provided next to each function, evaluate the code and write what would  appear in the Python Shell if it were executed; if an error occurs then just write error: a.
background image b. c. d. 4. Which of the following expressions would cause a RUNTIME error? a. bool(1)
b. int(‘3.0’ + 2)
c. str(‘2’ + ‘4.0’)
d. float(‘4’ + ‘3.4’)
e. None of the above
5. Which of the following is True? a. bool(1) == bool(2)
b. not(True and False or True) and not(False and True)
c. True or False and not False
d. A and C
e. B and C
background image 6. Evaluate each of the expressions below. Write the resulting value and data type of each  expression in the corresponding area. If the resulting value will result in an error then 
simply write error.
Expression Resulting Value Data Type “heRo”.upper() int(4 + “3.0”) “racecar”[::­1] 8/4 4==4 or False and True 5.0 + int(7.99999) SuperMan.lower() 5**float(1) “Hello” ­ “o” int(“9.7”) “hometown”[2::2] “baby” + “steps” 7. What word maybe used inside a loop to end the loop? a. continue
b. pass
c. return
d. break
e. None of the above
8. Which of the following terms when used inside a sting causes the string to start a new  line? a. Break
b. “\n”
c. “\t”
d. Continue

This is the end of the preview. Please to view the rest of the content
Join more than 18,000+ college students at Georgia Institute of Technology who use StudySoup to get ahead
12 Pages 225 Views 180 Unlocks
  • Better Grades Guarantee
  • 24/7 Homework help
  • Notes, Study Guides, Flashcards + More!
Join more than 18,000+ college students at Georgia Institute of Technology who use StudySoup to get ahead
School: Georgia Institute of Technology
Department: Computer Science and Engineering
Course: Intro to Computing
Term: Spring 2019
Tags:
Name: Study Guide for first CS 1301 Midterm
Description: This study guide contains practice questions similar to that of those in practice tests and recitation with the answers and explanations to the answers.
Uploaded: 02/03/2019
12 Pages 225 Views 180 Unlocks
  • Better Grades Guarantee
  • 24/7 Homework help
  • Notes, Study Guides, Flashcards + More!
Join StudySoup for FREE
Get Full Access to GATech - Study Guide - Midterm
Join with Email
Already have an account? Login here
×
Log in to StudySoup
Get Full Access to GATech - Study Guide - Midterm

Forgot password? Reset password here

Reset your password

I don't want to reset my password

Need help? Contact support

Need an Account? Is not associated with an account
Sign up
We're here to help

Having trouble accessing your account? Let us help you, contact support at +1(510) 944-1054 or support@studysoup.com

Got it, thanks!
Password Reset Request Sent An email has been sent to the email address associated to your account. Follow the link in the email to reset your password. If you're having trouble finding our email please check your spam folder
Got it, thanks!
Already have an Account? Is already in use
Log in
Incorrect Password The password used to log in with this account is incorrect
Try Again

Forgot password? Reset it here