• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Starting out with Programming Logic and Design - Ch 2 Questions and Answers

Document preview thumbnail
Preview 1 out of 3 pages

Starting out with Programming Logic and Design - Ch 2 Questions and Answers

Content preview

Starting out with Programming Logic
and Design - Ch 2 Questions and
Answers

2.11 A string literal is usually enclosed inside a set of what characters? - ANSWER-
quotation marks

2.12 What is a variable? - ANSWER-a storage location in memory that is
represented by a name

2.13 Summarize three common rules for naming variables - ANSWER-- variable
names must be one word, no spaces
- in most languages punctuation characters cannot be used, stick to letters and
numbers
- in most languages first character of variable name cannot be a number

2.14 What variable naming convention do we follow in this book? - ANSWER-
camelCase

2.15 Look at the following pseudocode statement:
Input temperature
What happens when this statement executes? - ANSWER-- the program pauses and
waits for the user to type something on the keyboard, and the press the Enter button
- the the Enter key is pressed, the data that was typed is stored in the temperature
variable

2.16 Who is the user? - ANSWER-any hypothetical person that is using the program
and providing input for it

2.17 What is a prompt? - ANSWER-a message that tells or asks the user to enter a
specific value

2.18 What two steps usually take place when a program prompts the user for input?
- ANSWER-1. display a prompt on the screen
2. read a value from the keyboard

2.19 What does the term user-friendly mean? - ANSWER-used to describe programs
that are easy to use

2.20 What is an assignment statement - ANSWER-a statement that sets a variable
to a specified value

2.21 When you assign a value to a variable, what happens to any value that is
already stored in the variable? - ANSWER-it is replaced

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.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.
lectknancy
3.8
(82)
Sold
342
Followers
27
Items
26160
Last sold
3 days 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