Docsity

WGU D335 INTRO TO PYTHON OBJECTIVE ASSESSMENT COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS, Exams of Programming Paradigms

Toggle sidebar
bg1
WGU D335 INTRO TO PYTHON OBJECTIVE ASSESSMENT
COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS
Question 1.
Input-Process-Output thinking standard to determine coding structure.
ANSWER
IPO thinking standard
Question 2.
A special variable in Python that holds the name of the current module.
ANSWER
__name__
Question 3.
A special variable in Python that indicates the main module.
ANSWER
__main__
Question 4.
A resource for learning Python programming.
ANSWER
Python Crash Course Book ๐Ÿ
Question 5.
Application Programming Interfaces accessible to the public.
ANSWER
Public API's
1 / 13
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download WGU D335 INTRO TO PYTHON OBJECTIVE ASSESSMENT COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS and more Exams Programming Paradigms in PDF only on Docsity!

WGU D335 INTRO TO PYTHON OBJECTIVE ASSESSMENT

COMPLETE STUDY GUIDE WITH SOLVED QUESTIONS

Question 1.

Input-Process-Output thinking standard to determine coding structure.

ANSWER IPO thinking standard

Question 2.

A special variable in Python that holds the name of the current module.

ANSWER name

Question 3.

A special variable in Python that indicates the main module.

ANSWER main

Question 4.

A resource for learning Python programming.

ANSWER Python Crash Course Book ๐Ÿ

Question 5.

Application Programming Interfaces accessible to the public.

ANSWER Public API's

Time management method using a timer to break work into intervals.

ANSWER Pomodoro Technique

Question 7.

Data structure with key-value pairs used for mapping inputs to outputs.

ANSWER Dictionaries

Question 8.

An introductory course to computer science offered by Harvard University.

ANSWER CS

Question 9.

An efficient, comparison-based sorting algorithm.

ANSWER Merge Sort

Question 10.

Ordered collection of items in Python denoted by square brackets.

ANSWER Lists

Question 11.

Immutable ordered collection of items in Python denoted by parentheses.

ANSWER Tuples

Function to obtain the magnitude of an integer, removing the negative sign.

ANSWER Absolute value function

Question 19.

Function to round a value to a specified number of digits after the decimal point.

ANSWER Round function

Question 20.

Statements used for repeated execution of instructions in a program.

ANSWER Iteration Statements

Question 21.

An educational coding platform for honing programming skills.

ANSWER Codewars

Question 22.

An online platform offering data science and analytics courses.

ANSWER Data Camp

Question 23.

A comprehensive course for learning Python programming.

ANSWER Springboard Python course

A program that translates Python code into machine code.

ANSWER Python compiler

Question 25.

Extracting a portion of a sequence like a string or list in Python.

ANSWER Slicing

Question 26.

A notable resource for learning programming through tutorials and guides.

ANSWER Corey Schaefer

Question 27.

A collection of programming tutorials and resources.

ANSWER Bro Code Playlist

Question 28.

Converting a value to a different data type, e.g., int('1') returns 1 as an integer.

ANSWER Type conversion/casting

Question 29.

Enforcing order of operations using parentheses, e.g., 3 * (2+1) = 9.

ANSWER Precedence

Estimates average calories burned based on age, weight, heart rate, and time.

ANSWER Calories burned equation

Question 37.

Using math library for operations like power, absolute value, and square root.

ANSWER Math functions

Question 38.

Calculating frequencies of keys on a piano based on initial key frequency.

ANSWER Frequency calculation

Question 39.

Time taken for a substance to reduce to half its original value.

ANSWER Half-life

Question 40.

Outputting price change and estimated monthly mortgage based on current and last month's price.

ANSWER House real estate summary

Question 41.

Calculating product and average of floating-point numbers, rounding and formatting the output.

ANSWER Simple statistics

Determining the season based on input date and month, considering days in each month.

ANSWER Northern hemisphere seasons

Question 43.

Spring: March 20 - June 20, Summer: June 21 - September 21, Autumn: September 22 - December 20, Winter: December 21 - March 19.

ANSWER Seasons

Question 44.

A year with 366 days, occurring every 4 years and divisible by 4, except for century years not divisible by 400.

ANSWER Leap Year

Question 45.

Primary highways: 1-99, odd for north/south, even for east/west. Auxiliary: 100-999, servicing the rightmost two digits of the primary highway.

ANSWER Interstate Highway Numbers

Question 46.

Score names: 'Eagle' (2 less than par), 'Birdie' (1 less), 'Par' (equals par), 'Bogey' (1 more); 'Error' if par not 3, 4, or 5.

ANSWER Golf Scores

Question 47.

Used for multiple choices. 'if' for an option, 'elif' for alternatives, 'else' as the final option if none apply.

ANSWER Conditional Statements

Method to add elements to the end of a list.

ANSWER Append

Question 55.

Used to exit a loop based on a certain condition, instead of relying on the condition to become false.

ANSWER Break Statement

Question 56.

Representing an integer in reverse binary by outputting remainders of division by 2.

ANSWER Reverse Binary

Question 57.

Used to separate the main code from the function's code for unit testing.

ANSWER name == 'main'

Question 58.

Function taking miles per gallon, price per gallon, and miles driven to return the dollar cost.

ANSWER Driving Cost Function

Question 59.

Function returning 'Heads' or 'Tails' based on a random value of 1 or 0.

ANSWER Coin Flip Function

Testing small parts of a program in an isolated manner to ensure they work as expected.

ANSWER Unit Tests

Question 61.

Evaluates individual functions for correctness and proper naming, parameters, and return type.

ANSWER Unit test

Question 62.

Separates main code from functions' code for unit testing when running as a script.

ANSWER if name == 'main':

Question 63.

Function that converts weight in kilograms to pounds.

ANSWER kilo_to_pounds()

Question 64.

Function that swaps the positions of four integers.

ANSWER swap_values

Question 65.

Function that checks if a string represents an integer.

ANSWER check_integer_string

Data structure with key-value pairs, where keys must be unique.

ANSWER dictionary