WGU D278 PRE-ASSESSMENT SCRIPTING AND

WGU EXAMS Aug 30, 2025
Loading...

Loading document viewer...

Page 0 of 0

Document Text

Page 1 of 79

1

WGU D278 PRE-ASSESSMENT SCRIPTING AND

PROGRAMMING FOUNDATIONS EXAM LATEST 2024-

2025 ALL 350 QUESTIONS AND CORRECT VERIFIED

ANSWERS ALREADY GRADED A+

WGU D278 Pre-Assessment Scripting and Programming Foundations exam

QUESTION: Given integer x = 3 and integer y = 5.

What is the value of the expression ( x / 2.0) + y?A 5.0 B 6.0 C 6.5

7 7.5 - ANSWER-6.5

QUESTION: Given float x = 10.2 and float y = 1.0.

What is the value of the expression x / y ?A 0.0 B 1.0

C 10 1 / 4

Page 2 of 79

2

D 10.2 - ANSWER-10.2

QUESTION: What kind of operator is the == in the expression i == 20?

A Assignment B Arithmetic C Equality D Logical - ANSWER-Equality

QUESTION: What is the purpose of parentheses () in a programming expression?

A To print expressions B To group expressions C To run expressions D To compose expressions - ANSWER-To group expressions

QUESTION: Given float x = 3.0.

Which expression evaluates to 2.0?A x / 3 * 2 + 2 2 / 4

Page 3 of 79

3 B x - 2/3 C x + 0.5 /2 D x / 2 + 0.5 /2 + .25 - ANSWER-D

QUESTION: Which expression evaluates to true only when the user is within 3 years of 21 years, given a variable x containing a user's age?A x >= 18) or ( x <= 24) B ( x >= 18) and ( x <= 24) C ( x < 18) or ( x > 24) D ( x < 18) and ( x > 24) - ANSWER-B

QUESTION: Which data type is used for items that are measured in length?

A Integer B Float C String D Boolean - ANSWER-B

QUESTION: Which data type should be used to keep track of how many planes are in a hangar? 3 / 4

Page 4 of 79

4 A Integer B Float C String D Boolean - ANSWER-A Which operator should be used to determine if a number is evenly divisible by 5?A + B - C *

D % - ANSWER-%

QUESTION: A car drove 200 miles using 10 gallons of fuel.

Which operation should be used to compute the miles per gallon, which is 20?A Addition B Subtraction C Multiplication D Division - ANSWER-Division

  • / 4

Download Document

Buy This Document

$30.00 One-time purchase
Buy Now
  • Full access to this document
  • Download anytime
  • No expiration

Document Information

Category: WGU EXAMS
Added: Aug 30, 2025
Description:

WGU D278 PRE-ASSESSMENT SCRIPTING AND PROGRAMMING FOUNDATIONS EXAM LATEST 2024- 2025 ALL 350 QUESTIONS AND CORRECT VERIFIED ANSWERS ALREADY GRADED A+ WGU D278 Pre-Assessment Scripting and Programmi...

Get this document $30.00