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 OBJECTIVE ASSESSMENT QUESTIONS AND FINAL EXAM REVIEW AT THE END

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

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS OBJECTIVE ASSESSMENT QUESTIONS AND FINAL EXAM REVIEW AT THE END

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
39
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

WGU C173 SCRIPTING AND PROGRAMMING – FOUNDATIONS
OBJECTIVE ASSESSMENT QUESTIONS AND
FINAL EXAM REVIEW AT THE END

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 %: 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: D
g g




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




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




1g/g18

,A Integer
g




B Float
g




C String
g




D Boolean: b
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




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: C
g g g




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




dent. The minimum age requirement is 35.
g 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




2g/g18

,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: A
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.0g




C 6.5g




7 7.5: C
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.0g




C 10 g




D 10.2: D
g g




9. What kind of operator is the == in the expression i == 20?
g g g g g g g g g g g g




A Assignment
g




B Arithmetic
g




C Equality
g




D Logical: C
g g




3g/g18

, 10. What is the purpose of parentheses () in a programming expression?
g g g g g g g g g g




A To print expressions
g g g




B To group expressions
g g g




C To run expressions
g g g




D To compose expressions: B
g g g g




11. Given float x = 3.0. g g g g




Which expression evaluates to 2.0? g g g g




Ax /3*2+ 2 g g g g g g g




B x - 2/3 g g g




C x + 0.5 /2 g g g g




D x / 2 + 0.5 /2 + .25: D
g g g g g g g g g




12. Which expression evaluates to true only when the user is within 3 years of 2
g g g g g g g g g g g g g g




1 years, given a variable x containing a user's age?
g g g g g g g g g




A x >= 18) or ( x <= 24)
g g g g g g g g




B ( x >= 18) and ( x <= 24)
g g g g g g g g g




4g/g18
R274,19
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document 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.
LectScott Harvard University
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
16 hours ago

3,8

56 reviews

5
27
4
11
3
6
2
3
1
9

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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