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
Exam (elaborations)

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

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
22-03-2025
Written in
2024/2025

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

Institution
Programming Logic And Design
Course
Programming Logic and Design

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

Written for

Institution
Programming Logic and Design
Course
Programming Logic and Design

Document information

Uploaded on
March 22, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.99
Get access to the full document:

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


Also available in package deal

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.
lectknancy Boston University
Follow You need to be logged in order to follow users or courses
Sold
326
Member since
2 year
Number of followers
27
Documents
26133
Last sold
6 days ago

3.7

79 reviews

5
38
4
13
3
11
2
4
1
13

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 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