Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Science II: Programming B Unit 5: Programming B Midterm Quiz 26. Sometimes, an error message will indicate the line after the error occurred. (1

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Computer Science II: Programming B Unit 5: Programming B Midterm Quiz 26. Sometimes, an error message will indicate the line after the error occurred. (1 point) True False 27. One advantage of .jpg files is that they can be compressed. (1 point) True False 28. Which of the following shows the statements in the correct order? (1 point) if. elif, else else, if, if elif. else, if else. elif. if -- - - LO U I Computer Science II: Programming B Unit 5: Programming B Midterm Quiz 29. What are the two kinds of scope that a variable can have? (1 point) alpha or numeric global or local string or integer functional or recursive 30. Which of these tests correctly to see if points are greater than cost? (1 point) points > cost points > costs points cost 31. Indenting is optional in Python (1 point) True False yuyu Wuler LUIZ 32. Which of these is an integer? (1 point) Hello 27.5 27 False 33. What is the main difference between a text editor and a full word processing program, such as (1 point) Microsoft Office Word? A text editor has more features. A text editor can only be used to edit text, not to write new text. A word processing program has more features. A text editor is only used by professional editors. 34. If you want a function to retum a value that you can use outside of the function, you have to have a return statement in the function. (1 point) .. EnEV. rruylamHg Materm Wuiz (1 point 34. If you want a function to return a value that you can use outside of the function, you have to have a return statement in the function. True False (1 point) 35. Baheela is going to be managing a programming project for the first time and wants to learn more about the best rules to establish for labelling variables. Which webinar is MOST likely to be helpful? Naming Conventions for Project Managers Choosing a Higher-Level Language for Project Managers Iterative Functions for Project Managers Bignum Variables for Project Managers 36. It is considered bad form to give a local variable and a global variable the same name. (1 point) True False troy y Unit o: Programming B Midterm Quiz 37. Which of the following is NOT an example of input? (1 point) keyboard strokes a pop-up box mouse clicks voice command 38. The Central Processing Unit is an electronic circuit that carries out the instructions that need to (1 poin be performed. True False 39. You cannot use a global variable inside of a function. (1 point) True False ---MUCHIWUIZ Computer Science II: Programming B Unit 5: Programming B Midterm Quiz True False COO 40. Which of these statements tests to see if score is greater than or equal to 1000? (1 point) score > 1000 score >= 1000 score =>= 1000 score => 1000 m mm - 41. Python does not permit changing the value of an item in a list. (1 point) True False 42. Jamal is writing a program and wants to be sure that the user will only input a grade level that is 9. 10. 11. or 12. Which of the following should Jamal use so that the user has to keep entering innut until they choose 9. 10. 11. or 12? 42. Jamal is writing a program and wants to be sure that the user will only input a grade level that (1 po is 9, 10, 11, or 12. Which of the following should Jamal use so that the user has to keep entering input until they choose 9, 10, 11, or 12? a for loop a while loop a nested loop an array GOD 43. What kind of variable is False? ( point) float integer string Boolean 44. What is a database used for? (1 point) Apps Lesson 1: Programming B Midterm Quiz Computer Science II: Programming B Unit 5: Programming B Midterm Quiz 44. What is a database used for? (1 point) speeding up a program's execution increasing the computer's memory storing information compiling code 45. Concatenation is the process of combining strings. (1 point) True False 46. 10 and I are both short for Internet Operations. (1 point) True False computer Science Il: Programming B Unit 5: Programming B Midterm Quiz 47. What is an example of haptic feedback? (1 point) vibrations blinking lights singing hamsters a pop-up box 48. If you only want a variable to be active within a function, you should use a global variable. (1 por True False 49. Which of these show the correct way to write the first line of code to define a function? (1 point) def triangle_area (b. h): define triangle_area (b, h): def triangle_area/b, h) def triangle_areab. h]: OOO Computer Science II: Programming B Unit 5: Programming B Midterm Quiz 50. What is the output of this program? (1 point) def status(lives, score, damage): if lives

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions