Computer Science  >  QUESTIONS & ANSWERS  >  WGU C173 Scripting and Programming Questions and Answers Already Passed (All)

WGU C173 Scripting and Programming Questions and Answers Already Passed

Document Content and Description Below

WGU C173 Scripting and Programming Questions and Answers Already Passed % ✔✔Which operator should be used to determine if a number is evenly divisible by 5? division ✔✔A car drove 200 miles ... using 10 gallons of fuel. Which operation should be used to compute the miles per gallon, which is 20? Float ✔✔A variable should hold a person's height in meters. Which data type should the variable be? String array ✔✔A variable should hold the names of all past U.S. presidents. Which data type should the variable be? Constant integer secondsPerMinute ✔✔A program uses the number of seconds in a minute in various calculations. How should the item that holds the number of seconds in a minute be declared? Constant integer minAge ✔✔A program determines if a user's age is high enough to run for U.S. president. The minimum age requirement is 35. How should the item that holds the minimum age be declared? 6.5 ✔✔Given integer x = 3 and integer y = 5. What is the value of the expression ( x / 2.0) + y? 10.2 ✔✔Given float x = 10.2 and float y = 1.0.What is the value of the expression x / y? Equality ✔✔What kind of operator is the == in the expression i == 20? to group expressions ✔✔What is the purpose of parentheses () in a programming expression? x / 2 + 0.5 /2 + .25 ✔✔Given float x = 3.0. Which expression evaluates to 2.0? ( x >= 18) and ( x <= 24) ✔✔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? Float ✔✔Which data type is used for items that are measured in length Integer ✔✔Which data type should be used to keep track of how many planes are in a hangar? Hours and minutes ✔✔A function should convert hours and minutes to seconds, such as converting 1 hour and 10 minutes to 4,200 seconds. What should be the input to the function? x ✔✔A function returns a number x cubed. For example, if x is 3, the function returns 3 * 3 * 3, or 27. What should be the input to the function? Diff ✔✔A function calculates the weight difference (Diff) given two sample weights (S1 and S2). What should be the output from the function? 10 ✔✔function P(integer x) returns integer y y = 2 * x What does P(5) evaluate to? HeyHeyHey ✔✔Function F() Put "Hey" to output What entire output appears after three successive calls to F()? a valid identifier ✔✔What is a valid user-defined function name? [Show More]

Last updated: 3 years ago

Preview 1 out of 12 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of WGU C173 Scripting and Programming Questions and Answers Already Passed document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Also available in bundle (1)

Click Below to Access Bundle(s)

WGU C173 Scripting and Programming Bundled Exams Questions and Answers Already Solved

WGU C173 Scripting and Programming Bundled Exams Questions and Answers Already Solved

By Nutmegs 3 years ago

$15

7  

Reviews( 0 )

$10.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

145
0

Document information


Connected school, study & course


About the document


Uploaded On

Sep 30, 2022

Number of pages

12

Written in

All

Seller


Profile illustration for Nutmegs
Nutmegs

Member since 4 years

607 Documents Sold

Reviews Received
77
14
8
2
21
Additional information

This document has been written for:

Uploaded

Sep 30, 2022

Downloads

 0

Views

 145

Document Keyword Tags


$10.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·