100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS FINAL PREP EXAM

Rating
-
Sold
-
Pages
95
Grade
A+
Uploaded on
13-01-2025
Written in
2024/2025

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS FINAL PREP EXAM

Institution
WGU C173
Course
WGU C173











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

Written for

Institution
WGU C173
Course
WGU C173

Document information

Uploaded on
January 13, 2025
Number of pages
95
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS

FINAL PREP EXAM


1. Which operator should be used to determine if a number is evenly divisible b
g g g g g g g g g g g g g




y 5?
g




A+ g




B- g




C* g




D %: %
g g




2. A car drove 200 miles using 10 gallons of fuel.
g g g g g g g g g




Which operation should be used to compute the miles per gallon, which is 20?
g g g g g g g g g g g g g




A Addition
g




B Subtraction
g




C Multiplication
g




D Division: Division
g g




1g/g38

,3. ^^ A variable should hold a person's height in meters.
g g g g g g g g g




Which data type should the variable be?
g g g g g g




A Integer
g




B Float
g




C String
g




D Boolean: Float
g g




4. ^^ A variable should hold the names of all past U.S. presidents.
g g g g g g g g g g g




Which data type should the variable be?
g g g g g g




A Integer array
g g




B Float array
g g




C String array
g g




D Boolean array: String array
g g g g




2g/g38

,5. A program uses the number of seconds in a minute in various calculations.
g g g g g g g g g g g g




How should the item that holds the number of seconds in a minute be de- clared?
g g g g g g g g g g g g g g g




A Constant float userTime
g g g




B Variable float userTime
g g g




C Constant integer secondsPerMinute
g g g




D Variable integer secondsPerMinute: Constant integer secondsPerMinute
g g g g g g




6. A program determines if a user's age is high enough to run for U.S. presi-
g g g g g g g g g g g g g g




gdent. The minimum age requirement is 35.
g g g g g g




How should the item that holds the minimum age be declared?
g g g g g g g g g g




3g/g38

, A Constant integer minAge
g g g




B Variable integer minAge
g g g




C Constant integer 35
g g g




D Variable integer 35: Constant integer minAge
g g g g g g




7. Given integer x = 3 and integer y = 5.
g g g g g g g g g




What is the value of the expression ( x / 2.0) + y?
g g g g g g g g g g g g




A 5.0 g




B 6.0 g




C 6.5 g




7 7.5: 6.5 g g




8. Given float x = 10.2 and float y = 1.0.
g g g g g g g g g




What is the value of the expression x / y ?
g g g g g g g g g g




A 0.0 g




B 1.0 g




C 10 g




D 10.2: 10.2 g g




4g/g38

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.
LectScott Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
421
Member since
2 year
Number of followers
132
Documents
2228
Last sold
14 hours ago

3.8

56 reviews

5
27
4
11
3
6
2
3
1
9

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