Docsity

WGU D335 INTRODUCTION TO PROGRAMMING IN PYTHON EXAM EXPECTED QUESTIONS WITH VERIFIED, Exams of Object Oriented Programming

Toggle sidebar
bg1
WGU D335 INTRODUCTION TO PROGRAMMING IN
PYTHON EXAM EXPECTED QUESTIONS WITH
VERIFIED ANSWERS
• indentation error -✓✓lines inside the program are not properly indented
• syntaxes error -✓✓a violation of the program language rules on how symbols
can be defined
• row of text -✓✓line
• type error -✓✓An operation uses incorrect types - can occur if adding an integer
to a string.
• value that get past into parameters -✓✓argument
• keep multiple print statements on one line -✓✓end=' '
• A program consists of? -✓✓input, process, output
• Parameter(s) -✓✓what gets passed into a function
• statement -✓✓a program function. each statement appears as on its own line
• increasing variables by a value of 1 -✓✓incrementing
pf3
pf4

Partial preview of the text

Download WGU D335 INTRODUCTION TO PROGRAMMING IN PYTHON EXAM EXPECTED QUESTIONS WITH VERIFIED and more Exams Object Oriented Programming in PDF only on Docsity!

WGU D335 INTRODUCTION TO PROGRAMMING IN

PYTHON EXAM EXPECTED QUESTIONS WITH

VERIFIED ANSWERS

  • indentation error - ✓✓lines inside the program are not properly indented
  • syntaxes error - ✓✓a violation of the program language rules on how symbols can be defined
  • row of text - ✓✓line
  • type error - ✓✓An operation uses incorrect types - can occur if adding an integer to a string.
  • value that get past into parameters - ✓✓argument
  • keep multiple print statements on one line - ✓✓end=' '
  • A program consists of? - ✓✓input, process, output
  • Parameter(s) - ✓✓what gets passed into a function
  • statement - ✓✓a program function. each statement appears as on its own line
  • increasing variables by a value of 1 - ✓✓incrementing
  • stub function - ✓✓A function that acts as a placeholder and returns a simple value so another function can be tested
  • determines how a value can behave - ✓✓type( )
  • a number with a decimal point - ✓✓float( )
  • displays output to the screen and starts a new line - ✓✓print( )
  • line of executable code - ✓✓statement
  • returns a value when evaluated - ✓✓expression
  • text enclosed in quotes - ✓✓string literal
  • returns the index of the first occurrence of x in the string - ✓✓find(x)
  • \n - ✓✓output advanced to the next line
  • name error - ✓✓The program tries to use a variable that does not exist.
  • runtime error - ✓✓the program attempts an impossible operation
  • Value Error - ✓✓invalid value used
  • expression - ✓✓Any valid unit of code that resolves to a value.
  • logic error (bug) - ✓✓program runs but does the wrong thing
  • Sequence of instructions that solves a problem. - ✓✓Algorithm
  • any blank space or new line - ✓✓whitespace
  • converts a string into an integer - ✓✓int( )
  • denotes a comment - ✓✓# or """
  • textual representation of a program - ✓✓code