AIML500-2.2 Quiz

1. Scenario: A company wants to classify customer emails as either “complaint” or “praise.” Which machine learning type should they use? A: Supervised learning 2. In unsupervised learning, what is the primary goal? A: Identifying hidden structures or patterns in…

COMP560 W6 ZyCh7_Files

1) When reading a file in Python, you must specify two items:A) a file name and mode 2) Before accessing a file, the program must:A) open the file3) After executing the following code snippet, what part is the file object?…

COMP560 W5 ZyCh8_Dictionaires

1) A set is a container that stores a collection of:A) unique values2) One key difference between a set and a list is:A) Set elements are not stored in any particular order3) Which statement correctly creates a set named colors that contains…

COMP560 W4 ZyCh9_Objects

1) Which of the following is considered by the text to be the most important consideration when designing a class?A) Each class should represent a single concept or object from the problem domain. 2) Which of the following questions should…

COMP560 W4 ZyCh11_Recursion

1) Consider the triangleArea function from the textbook shown below: Where is/are the recursive call(s)?A) line #7 2) Consider the triangleArea function from the textbook shown below: Where is/are the terminating condition(s)?A) lines #3 and #53) Consider the following code snippet for recursive addition:…

COMP560 W3 ZyCh5_functions

1) A ___________________________ is a sequence of instructions with a name. A) function 2) Consider the following function call round(3.14159, 3) what is the return value?A) 3.141 3) Consider the following function call ceil(3.14159) what is the return value?A) 4.0 4) Which of the…

COMP560 W3 ZyCh6_lists

1) What is a list in Python?A) a container that stores a collection of elements that are arranged in a linear or sequential order 2) Given the following list, what value is at index 5? A) 6 3) Consider the following line…

COMP560 W2 ZyCh2_NumberString

1) To store a value for later use in Python, the programmer needs to create a:A) variable2) How is a value stored in a variable?A) an assignment statement3) What is the value of the variable num after the following code snippet? A)…

COMP560 W2 Zych4_loops

1) How many times will the following loop run? i = 0 while i < 10 :    print(i)    i = i + 1 A) 10 2) How many times does the code snippet given below display “Loop Execution”?…

MGT 6990 Module 1 Quiz

A focus on study 2. Jose is volunteering every Tuesday at a local elementary school tutoring children in math.  He is not receiving any type of compensation (money, tuition & fees, books, supplies, room, food, or any other benefits).  Is…