Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Introduction to Computer Programming (Quiz questions Exam 1) Questions and Answers 100% Solved

Document preview thumbnail
Preview 2 out of 13 pages

Introduction to Computer Programming (Quiz questions Exam 1)

Content preview

Introduction to Computer Programming
(Quiz questions Exam 1)

C. A String - answer What kind of information is being stored in the variable x?
x = "1005"

A. An integer
B. A floating point
number
C. A String

C. your grade = 98 - answer Which of the following is both a good and valid variable
name?

A. 3rdAve = "Bowery"
B. my name = "Sally"
C. your_grade = 98
D. greeting! = "Hi, there!"
E. x = "John"
F. time? = 4.00
G. "my name" = "Mary"

C. your_grade = 98 - answerConsider the following statement in Python:

a = 123
The variable 'a' is storing a:

A. A string
B. A numeric value
C. A logical value

A. A programmatic construct that lets the programmer store information during the
execution of a program - answerA "variable" is:

A. A programmatic construct that lets the programmer store information during the
execution of a program
B. A sequence of numbers that represents numeric information
C. A sequence of characters that represents textual information
D. A reusable command that the programmer can "call" to execute a series of
statements

, False - answerYou would use Python's "Interactive Mode" to write a long program that
contains many lines of code.
True
False

True - answerPython supports two different division operators
True
False

C. x = 1000 - answerAssume you wanted to perform some mathematical calculation
using the variable "x" (such as adding 5 to its value) - which line of code would allow
you to do this?

A. x = "1000"
B. x = "one thousand"
C. x = 1000

B. Argument - answerConsider this statement in Python:
print ("One", "Two", "Three")
"One" is considered a/n:

A. The name of a function
B. Argument
C. A numeric literal
D. A variable

A. True - answerThe following variable "answer" will have a floating point number stored
as its data type: answer = 4.0 + 2 * 2 - 5

A. True
B. False

A. one - answerHow many arguments does the "input" function expect to receive?
A. one
B. two
C. zero
D. any number of arguments

D. Interactive - answermagine that you have a single line of Python code that reads:

print ("Hello, world!")
If you wanted to run this statement and immediately see the result you could do so by
using __________ mode in IDLE.

A. Functional
B. Object Oriented

Document information

Uploaded on
November 2, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$19.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
julianah420
4.2
(158)
Sold
715
Followers
328
Items
35985
Last sold
2 weeks ago




Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions