100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CS 1101 Programming Fundamentals Final Exam Review Questions with 100% Correct Answers

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
03-04-2024
Written in
2023/2024

CS 1101 Programming Fundamentals Final Exam Review Questions with 100% Correct Answers What output will the following Python program produce? n = 10000 count = 0 while n: count = count + 1 n = n / 10 n=int(n) print(count) - answer5 What output will the following Python commands produce? >>> percentage = float ( 60 * 100) / 55 >>> print (percentage) - answer109. What does the following Python 3 function do? def subroutine(n): while n > 0: print (n,) n -= 1 - answerCounts from n down to 1 and displays each number What is the output of the following Python 3 statements? x=1 y=2 if x == y: print (x, "and", y, "are equal") else: if x < y: print (x, "is less than", y) else: print (x, "is greater than", y) - answer1 is less than 2 The statements inside of a Python loop are known as the ____ of the loop. - answerbody What is the output of the following Python program? pi = int(3.14159) print (pi) - answer3 What output will the following interactive Python statements produce? >>> n = 2 >>> n += 5 >>> n - answer7 What output will the following Python 3 program produce? x = 5 if x % 2 == 0: print (x) else: print (x, x%2) - answer5 1 What is the value of the variable index after the Python code below is executed? word = 'bAnana' index = ('a') - answer3 Repeated execution of a set of programming statements is called repetitive execution. Select one: - answerFalse With built in functions, it is generally acceptable to take a "Leap of Faith". - answerTrue Match the following terms and definitions The order in which statements are executed during a program run. Answer 1 Correct The first part of a compound statement begins with a keyword and ends with a colon ( : ) Answer 2 Correct A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses. Answer 3 Correct A variable defined inside a function that can only be used inside its function. Answer 4 Correct A graphical representation of functions, their variables, and the values to which they refer.

Show more Read less
Institution
CS 1101
Module
CS 1101









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS 1101
Module
CS 1101

Document information

Uploaded on
April 3, 2024
Number of pages
13
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TheStar Florida State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
585
Member since
1 year
Number of followers
178
Documents
23565
Last sold
14 hours ago
Stuvia Prodigy

Tested, Verified and Updated Study Materials with 100% Guaranteed Success.

3.8

117 reviews

5
56
4
21
3
20
2
3
1
17

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions