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)

WGU D278 Scripting and Programming - Foundations 2025. 444 Questions And Answers

Rating
-
Sold
-
Pages
69
Grade
A+
Uploaded on
22-07-2025
Written in
2024/2025

WGU D278 Scripting and Programming - Foundations 2025. 444 Questions And Answers WGU D278 Scripting and Programming - Foundations 2025. 444 Questions And Answers WGU D278 Scripting and Programming - Foundations 2025. 444 Questions And Answers

Show more Read less
Institution
WGU D278
Course
WGU D278

Content preview

WGU D278 Scripting and Programming -
Foundations
Basic instruction types are: *** Input: A program gets data, perhaps from a file, keyboard, touchscreen,
network, etc.

Process: A program performs computations on that data, such as adding two values like x + y.

Output: A program puts that data somewhere, such as to a file, screen, network, etc.



Programs use variables to refer to data, *** like x, y, and z below. The name is due to a variable's value
"varying" as a program assigns a variable like x with new values.



A basic computer program. *** 1) A basic computer program's instructions get input, process, and put
output. This program first assigns x with what is typed on the keyboard input, in this case 2.

2) The program's next instruction gets the next input, in this case 5.

3) The program then does some processing, in this case assigning z with x + y (so 2 + 5 yields 7).

4) Finally, the program puts z (7) to output, in this case to a screen



algorithm. *** A sequence of instructions that solves a problem



A flowchart *** is a graphical language for creating or viewing computer programs. Numerous flowchart
languages exist.



A program *** is a list of statements, each statement carrying out some action and executing one at a
time. OR A sequence of statements



For Coral, an interpreter *** runs a program's statements.



Run and execute *** are words for carrying out a program's statements

,Statement *** A specific action in a program.



A first program. *** 1) This program declares two integer "variables" for holding values, named wage
and salary.

2) A program's execution begins from the Start node. The first statement assigns wage with 20.

3) Execution proceeds to the next statement, which gets wage's value, and multiplies by 40 and 52 to
yield 41600. The statement assigns salary with that 41600.

4) The next statement puts text "Salary is" to output. The last statement puts variable salary's value,
which is 41600, to output. Execution ends when "End" is reached.



Variable *** A name that can hold a value.



Run *** The act of carrying out each statement's action.



Interpreter *** A tool that runs a program's statements.



Programming terms. ***



Getting input *** 1) A parallelogram represents an input (or output) statement.

2) The statement assigns the variable on the left (wage) with the next value in the program's input (20).

3) This program uses that gotten value in a subsequent calculation.



Basic input ***



Basic input example: Dog years to human years. ***

,In a Coral flowchart, *** a parallelogram represents an output statement, written as: Put item to
output.



string literal *** consists of text (characters) within double quotes, as in "Go #57!".



character *** includes any letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.).



cursor *** indicates where the next output item will be placed in the output. The system automatically
moves the cursor after the previously-output item.



newline *** is a special two-character sequence \n whose appearance in an output string literal causes
the cursor to move to the next output line. The newline exists invisibly in the output.



Outputting string literals. *** 1) This program puts "Keep calm" at the current cursor location in output,
which initially is the beginning of the output device. The cursor automatically goes to the text's end.

2) A \n in a string literal is a special two-character sequence that outputs a 'newline' character, which is
invisible but moves the cursor to the start of the next line.

3) The next output statement starts at the cursor's current location, which is now the second line



comment *** is text a programmer adds to a program, to be read by humans to better understand the
code, but ignored by the program when executing. In Coral, a comment starts with // and includes all
the subsequent text on that line. The comment must be on its own line.



Comments are for humans, and ignored during execution. *** 1) A comment begins with //.
Programmers use comments to describe intent to another human reading the program.

2) During execution, the comments are entirely ignored.



Valid and invalid comments ***

, Whitespace *** refers to blank spaces (space and tab characters) between items within a statement,
and to newlines. Whitespace helps improve readability for humans, but for execution purposes much
whitespace is ignored.



Computing history ***



An embedded computer *** is a computer inside another device. Typically, these devices have a
dedicated function such as a coffee maker or washing machine



The number of embedded computers are greater than the number of desktops and laptop computers.
*** In 2012, there were 350 million desktops and laptops, compared to 17 billion embedded computers
shipped.



Bit and Byte *** A single 0 or 1 is called a bit. 1011 is four bits. Eight bits, like 11000101, are called a
byte.



ASCII bit codes for common characters (ignore Dec for now). ***



***



Characters and numbers are encoded and stored in the computer's memory *** 1) Each character has a
unique bit code.

2) Words are stored as a sequence of bit codes in the computer's memory.

3) Symbols and spaces are also characters, and stored in the memory as bit codes.

4) Numbers are stored in binary. 12 is 0001100 in binary



Learning programming tends to aid in precise, logical thought, aspects of computational thinking *** 1)
Common English usage may be vague. Are workers, painters, and contractors the same people or
different? What exactly is white and brown?

Written for

Institution
WGU D278
Course
WGU D278

Document information

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

Subjects

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

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.
lectjoseph Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
80
Member since
3 year
Number of followers
23
Documents
5500
Last sold
2 days ago

learning is hard ,but with me it will be easier. Timely ,detailed and organized study guides and notes that will save you a lot of study time. Reviews are highly appreciated. Wishing you the best

3.5

10 reviews

5
4
4
1
3
2
2
2
1
1

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