100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 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








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

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

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

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
View profile
Follow You need to be logged in order to follow users or courses
Sold
281
Member since
2 year
Number of followers
28
Documents
25966
Last sold
5 days ago

3.6

57 reviews

5
23
4
10
3
11
2
3
1
10

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

Frequently asked questions