MTA Introduction to Programming Using Python Test 1 Training exam questions and verified correct answers
Evaluate each situation regarding data types and answer yes if its true or no if it is false - correct answer NO - When declaring variables in Python, a data type must be specified. YES - Python makes the distinction between integers and floating variables. YES - When setting a boolean variable, the value must start with a capital letter Look at the following code and indicate, for each area, the proper concatenating symbol. price = 18.00product = "Yellow Golf Balls"print(product [ ________ ] " are on sale for " [ _________ ] price ".") - correct answer " , " & " , " (COMMAS) Which variable names reflect an improper variable name declaration? Choose two answers - correct answer last-name last Name Drag the appropriate function to the missing code are to convert the price variable to a value of 19. inventoryCount = 19.95 print("We have " ______ (inventoryCount)" complete units in stock.") - correct answer int Using drag and drop, drag the following lines of code into the correct order to produce this output: Bears Jaguars Lions Panthers - correct answer Step 1 - animals = ["Bears", "Lions", "Jaguars", "Tigers"] Step 2 - d("Panthers") Step 3 - e("Tigers")
Document information
- Uploaded on
- December 20, 2023
- Number of pages
- 9
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers