FINM 32500 Python Programming Quiz (Autumn 2024) PDF

Summary

This document is a past exam quiz for FINM 32500, Computing for Finance in Python, at the University of Chicago (Autumn 2024). The quiz focuses on key concepts of object-oriented programming (OOP) in Python, including classes, objects, and relevant methods. The questions cover different OOP aspects and test the user's understanding of object-oriented programming principles.

Full Transcript

11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python assignmentW1b Due Sep 14 at 11:59pm Points 55 Questions 55 Time Limit None Attempt History Attempt...

11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python assignmentW1b Due Sep 14 at 11:59pm Points 55 Questions 55 Time Limit None Attempt History Attempt Time Score LATEST Attempt 1 16 minutes 54 out of 55 Score for this quiz: 54 out of 55 Submitted Sep 13 at 8:35pm This attempt took 16 minutes.  Question 1 1 / 1 pts What is the main concept of Object-Oriented Programming? Functions Data types Correct! Objects and classes Loops  Question 2 1 / 1 pts Which of the following defines a class in Python? def ClassName: Correct! class ClassName: class ClassName() define ClassName  Question 3 1 / 1 pts What is a constructor in Python? Correct! A function that initializes objects A method that adds functionality to classes https://canvas.uchicago.edu/courses/58420/quizzes/126967 1/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python A function that is called when an object is deleted A method that defines a class  Question 4 1 / 1 pts What is the default constructor in Python? __constructor__ __start__ Correct! __init__ __new__  Question 5 1 / 1 pts What is an object in Python? Correct! An instance of a class A function in a class A blueprint of a class A module  Question 6 1 / 1 pts What is inheritance in OOP? Correct! Creating a new class from an existing class Defining multiple functions in a class A way to modify an existing object Creating unrelated classes  Question 7 1 / 1 pts What does 'self' refer to in a method of a class? The class itself Correct! The current instance of the class A static variable A global variable https://canvas.uchicago.edu/courses/58420/quizzes/126967 2/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 8 1 / 1 pts What is encapsulation in OOP? Correct! Hiding data implementation Creating multiple classes Allowing access to all variables Defining private methods  Question 9 1 / 1 pts What is polymorphism in OOP? Correct! Defining multiple methods with the same name Creating a class from another class Overloading methods Changing the return type of functions  Question 10 1 / 1 pts What is method overriding? Creating a method with the same name in the parent class Defining a new method in the same class Replacing a class attribute Correct! Redefining a method in a subclass  Question 11 1 / 1 pts What is the purpose of 'super()' in Python? Correct! To call a parent class method To create a subclass To delete an object To override a method  https://canvas.uchicago.edu/courses/58420/quizzes/126967 3/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 12 1 / 1 pts What is multiple inheritance? Correct! A class inheriting from multiple parent classes Multiple objects inheriting from a single class A class with multiple methods None of the above  Question 13 1 / 1 pts What is the concept of 'composition' in OOP? A class being composed of several functions Correct! A class containing objects of other classes Creating multiple objects of a class Inheriting from multiple classes  Question 14 1 / 1 pts Which of the following is a private method in Python? def _method(self): Correct! def __method(self): def method(self): def method_():  Question 15 1 / 1 pts What is the difference between a class and an object? Classes are instances of objects Correct! Classes are blueprints, objects are instances Objects are functions, classes are methods There is no difference  Question 16 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/126967 4/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is the purpose of a destructor in OOP? To create an object Correct! To delete an object To override a method To inherit a class  Question 17 1 / 1 pts Which of the following defines a method in a class? def method_name: method_name(): Correct! def method_name(self): def method_name(self) {}  Question 18 1 / 1 pts What does the 'isinstance()' function check? If a function belongs to a class Correct! If an object is an instance of a class If a class belongs to a module If a method is static  Question 19 1 / 1 pts What is a static method in Python? Correct! A method that doesn't require an instance A method that modifies class variables A method that is called when the object is created A method that requires an object instance  Question 20 1 / 1 pts What is the purpose of the '__str__' method in a class? Correct! https://canvas.uchicago.edu/courses/58420/quizzes/126967 5/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python To return a string representation of an object To modify an object To initialize an object To compare objects  Question 21 1 / 1 pts What is abstraction in OOP? Defining complex objects Correct! Hiding implementation details Allowing access to class variables Creating multiple instances of a class  Question 22 1 / 1 pts What is the concept of 'inheritance' in OOP used for? Correct! To allow one class to inherit methods and properties from another To hide class properties To prevent access to certain methods To compare objects of different types  Question 23 1 / 1 pts Which of the following is a correct way to create an instance of a class? obj = new ClassName() Correct! obj = ClassName() obj = create(ClassName) obj = ClassName.new()  Question 24 1 / 1 pts What is an abstract method in Python? A method that cannot be inherited Correct! A method that must be overridden in a subclass https://canvas.uchicago.edu/courses/58420/quizzes/126967 6/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python A method that is hidden from other classes A method that cannot be defined  Question 25 1 / 1 pts What does the 'pass' keyword do in a method? It passes control to the parent class It creates a private method It defines an abstract method Correct! It does nothing  Question 26 1 / 1 pts What is the purpose of a class variable? Correct! To store data shared among all instances To store instance-specific data To modify instance variables To define class-level functions  Question 27 1 / 1 pts What does 'private' mean in OOP? Correct! The method can only be accessed by the class itself The method is accessible by all classes The method is accessible by subclasses The method is hidden from the entire program  Question 28 1 / 1 pts What is a mixin in Python? Correct! A class used to define methods that can be reused in other classes A special kind of object A method that overrides another method A way to create an instance of a class https://canvas.uchicago.edu/courses/58420/quizzes/126967 7/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 29 1 / 1 pts What is the purpose of inheritance in OOP? Correct! To avoid redundant code To create new objects To define functions To encapsulate methods  Question 30 1 / 1 pts Which of the following is a feature of OOP? Correct! Encapsulation Iteration Exception handling Compilation  Question 31 1 / 1 pts What is the difference between a class method and an instance method? Class methods can access instance variables Class methods can modify object state Correct! Class methods do not require an instance of the class Instance methods are private  Question 32 1 / 1 pts What is method overloading? Correct! Defining multiple methods with the same name but different arguments Creating multiple classes with the same name Defining a method in a subclass Overriding a method from the parent class  https://canvas.uchicago.edu/courses/58420/quizzes/126967 8/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 33 1 / 1 pts What is the output of 'print(obj)' if the __str__ method is not defined? The object’s string representation Correct! The object’s memory address An error None  Question 34 1 / 1 pts How do you define a class-level variable in Python? Inside the __init__ method Correct! Outside any methods but inside the class Inside a method As a function parameter  Question 35 1 / 1 pts What does 'cls' refer to in a class method? Correct! The class itself The object instance The method The parent class  Question 36 1 / 1 pts What is the output of 'isinstance(obj, ClassName)' if obj is an instance of ClassName? Correct! True False Error None  Question 37 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/126967 9/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What does it mean to instantiate a class? To create a function inside a class Correct! To create an object from a class To call a class method To define a class  Question 38 1 / 1 pts What is the main benefit of inheritance? Correct! It allows for code reuse It allows for code encapsulation It hides data It prevents errors  Question 39 0 / 1 pts What is a property in Python? Correct Answer A method that can be accessed like an attribute An attribute of a class You Answered A method that initializes an object An external function  Question 40 1 / 1 pts What is an abstract class? A class that cannot be instantiated A class that must be inherited A class that defines abstract methods Correct! All of the above  Question 41 1 / 1 pts What is an interface in OOP? https://canvas.uchicago.edu/courses/58420/quizzes/126967 10/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! A class that defines methods without implementation A method to access private attributes A way to create multiple objects A method for handling exceptions  Question 42 1 / 1 pts What is method resolution order (MRO)? Correct! The order in which methods are inherited in a hierarchy The order in which objects are instantiated The order in which functions are called The order in which classes are defined  Question 43 1 / 1 pts What does '__del__' do in Python? Initializes an object Correct! Deletes an object Modifies an object Creates an object  Question 44 1 / 1 pts What is a class in Python? Correct! A blueprint for creating objects An instance of an object A method to define functions A module in Python  Question 45 1 / 1 pts What is the correct way to declare a class attribute? Inside the constructor Correct! https://canvas.uchicago.edu/courses/58420/quizzes/126967 11/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Outside any method but inside the class Inside the __str__ method As a function argument  Question 46 1 / 1 pts Which of the following is true about instance attributes? They are shared among all instances Correct! They are unique to each instance They cannot be modified They are static  Question 47 1 / 1 pts What is the purpose of encapsulation in OOP? Correct! To hide data and methods from other classes To allow access to all variables To inherit methods from other classes To define private methods  Question 48 1 / 1 pts What is method overriding in Python? Overriding a class variable Correct! Defining a new method with the same name in a subclass Modifying an instance variable Creating a new class  Question 49 1 / 1 pts What is a data member in OOP? Correct! A variable that holds data for an object A method of a class A constructor https://canvas.uchicago.edu/courses/58420/quizzes/126967 12/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python An object reference  Question 50 1 / 1 pts What is a base class? Correct! A class that is inherited from A class that is defined without methods A class that is used to create objects A class that contains abstract methods  Question 51 1 / 1 pts What is the purpose of the '__call__' method? To call a function in the class Correct! To make an instance callable like a function To override a class method To create a new object  Question 52 1 / 1 pts What is multiple inheritance? Correct! Inheriting from more than one base class Inheriting from the same class multiple times Overriding multiple methods in a class Creating multiple objects of a class  Question 53 1 / 1 pts What is the difference between '__str__' and '__repr__'? __str__ is used for debugging, __repr__ is user-friendly Correct! __str__ returns a readable string, __repr__ returns an official string Both return the same output __repr__ is used only for classes  https://canvas.uchicago.edu/courses/58420/quizzes/126967 13/14 11/28/24, 1:51 PM assignmentW1b: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 54 1 / 1 pts What is a virtual method in OOP? Correct! A method that is overridden in a subclass A method that doesn't exist A method that exists in an abstract class A method that is not implemented  Question 55 1 / 1 pts Which of the following defines method overloading? Correct! Multiple methods with the same name and different parameters Multiple methods with different names Overriding methods in a subclass A method that modifies attributes Quiz Score: 54 out of 55 https://canvas.uchicago.edu/courses/58420/quizzes/126967 14/14 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  This quiz has been regraded; your score was not affected. assignmentW1a Due Sep 14 at 11:59pm Points 58 Questions 58 Time Limit None Attempt History Attempt Time Score Regraded LATEST Attempt 1 25 minutes 52 out of 58 52 out of 58 Score for this quiz: 52 out of 58 Submitted Sep 13 at 8:18pm This attempt took 25 minutes.  Question 1 0 / 1 pts What is the correct way to define a function in Python? You Answered def myFunc: Correct Answer def myFunc() function myFunc() func myFunc()  Question 2 1 / 1 pts Which of the following is a mutable data type? Tuple Correct! List String Integer  Question 3 1 / 1 pts What does the 'append()' method do for a list? https://canvas.uchicago.edu/courses/58420/quizzes/126966 1/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Removes the last item Correct! Adds a new item to the end Removes a specific item Clears the list  Question 4 0 / 1 pts How can you remove a key-value pair from a dictionary? dict.remove() dict.delete() You Answered del dict[key] Correct Answer dict.pop(key)  Question 5 1 / 1 pts What is the output of 'len([1, 2, 3, 4])'? 5 Correct! 4 3 Error  Question 6 1 / 1 pts What is the output of 'my_tuple = (1, 2); my_tuple = 3'? (3, 2) (1, 2) Correct! Error None  Question 7 0 / 1 pts Which method is used to combine two dictionaries? https://canvas.uchicago.edu/courses/58420/quizzes/126966 2/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python You Answered merge() combine() Correct Answer update() append()  Question 8 0 / 1 pts What is a tuple in Python? Mutable ordered collection Correct Answer Immutable ordered collection Mutable unordered collection You Answered Immutable unordered collection  Question 9 1 / 1 pts What is the key difference between lists and tuples? Lists are immutable, tuples are mutable Correct! Lists are mutable, tuples are immutable Tuples use more memory than lists Tuples support more operations than lists  Question 10 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. How do you create an empty list in Python? list() Correct! [] {} empty()  https://canvas.uchicago.edu/courses/58420/quizzes/126966 3/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 11 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. How do you create an empty dictionary in Python? dict() Correct! {} [] empty()  Question 12 1 / 1 pts What is the purpose of 'def' in Python? To define a variable To declare a class Correct! To define a function To create a loop  Question 13 1 / 1 pts What is the correct way to install a package in Python? install package-name Correct! pip install package-name package install package-name python -install package-name  Question 14 1 / 1 pts What will 'list1 = [1, 2]; list2 = list1; list2.append(3); print(list1)' output? [1, 2] Correct! [1, 2, 3] Error https://canvas.uchicago.edu/courses/58420/quizzes/126966 4/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 15 1 / 1 pts What does the 'pop()' method do in a list? Removes the first item Correct! Removes the last item Adds an item Clears the list  Question 16 1 / 1 pts What is the correct way to return a value from a function? stop value exit value Correct! return value yield value  Question 17 1 / 1 pts Which of the following is used to create a package in Python? __package__ __name__ Correct! __init__.py setup.py  Question 18 1 / 1 pts Which method adds an item to a dictionary? add() insert() Correct! update() append()  https://canvas.uchicago.edu/courses/58420/quizzes/126966 5/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 19 1 / 1 pts What is the output of 'd = {1: 'a', 2: 'b'}; print(d)'? Correct! Error None a b  Question 20 1 / 1 pts Which of the following is immutable? List Dictionary Correct! Tuple Set  Question 21 1 / 1 pts What is the difference between 'remove()' and 'pop()' in a list? remove() removes by index, pop() removes by value Correct! remove() removes by value, pop() removes by index Both remove by value Both remove by index  Question 22 1 / 1 pts What does the 'items()' method return for a dictionary? Keys only Values only Correct! Key-value pairs as tuples A list of values  Question 23 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/126966 6/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  This question has been regraded. How can you access a specific value from a dictionary? dict.key Correct! dict[key] dict.get() dict.values()  Question 24 1 / 1 pts Which keyword is used to create a function? define function Correct! def func  Question 25 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. What is the correct way to declare an empty tuple? Correct! () [] {} tuple()  Question 26 1 / 1 pts What does the 'keys()' method return for a dictionary? Correct! A list of keys A list of values A list of key-value pairs A list of dictionaries https://canvas.uchicago.edu/courses/58420/quizzes/126966 7/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 27 1 / 1 pts How can you import a specific function from a module? import function from module import module.function Correct! from module import function import function  Question 28 1 / 1 pts How do you install a package using pip? Correct! pip install package_name python install package_name package install package_name install pip package_name  Question 29 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. Which method is used to remove a key-value pair from a dictionary? del dict[key] dict.remove(key) dict.delete(key) Correct! dict.pop(key)  Question 30 0 / 1 pts What is the correct way to create a function that takes a list as input? def func([list]): You Answered def func(list=[]): Correct Answer https://canvas.uchicago.edu/courses/58420/quizzes/126966 8/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python def func(list): def func(list{}):  Question 31 1 / 1 pts What happens if you try to change an item in a tuple? It will be changed Correct! It will raise an error It will silently fail A new tuple will be created  Question 32 1 / 1 pts Which of the following is a mutable object? Correct! List Tuple String Integer  Question 33 1 / 1 pts What is the output of 'print([1, 2] + [3, 4])'? Correct! [1, 2, 3, 4] [1, 2] [3, 4] Error [1, 2, [3, 4]]  Question 34 1 / 1 pts What will 'list1 = [1, 2, 3]; list2 = list1; list2 = 10; print(list1)' output? [1, 2, 3] Correct! [10, 2, 3] [1, 2, 10] Error https://canvas.uchicago.edu/courses/58420/quizzes/126966 9/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 35 1 / 1 pts What is the output of 'd = {1: 'a', 2: 'b'}; d = 'c'; print(d)'? {1: 'a', 2: 'b'} Correct! {1: 'c', 2: 'b'} Error None  Question 36 1 / 1 pts Which statement is correct about tuples? Tuples are mutable Correct! Tuples can contain duplicate elements Tuples are unordered Tuples do not support indexing  Question 37 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. Which of the following can be used to unpack a tuple? tuple Correct! *tuple []tuple unpack(tuple)  Question 38 1 / 1 pts What is the purpose of the 'in' operator in Python? Correct! To check for inclusion in a collection To compare values To iterate over a collection https://canvas.uchicago.edu/courses/58420/quizzes/126966 10/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python To add elements to a collection  Question 39 1 / 1 pts What is the result of 'list1 = [1, 2]; list1.append([3, 4]); print(list1)'? [1, 2, 3, 4] Correct! [1, 2, [3, 4]] [1, 2, 3] Error  Question 40 1 / 1 pts How do you access the second element of a list in Python? list Correct! list list list  Question 41 1 / 1 pts Which of the following is a key difference between dictionaries and lists? Dictionaries are ordered, lists are not Dictionaries are mutable, lists are not Correct! Dictionaries are key-value pairs, lists are not Dictionaries are immutable, lists are not  Question 42 1 / 1 pts What will 'my_list = [1, 2]; my_list.insert(1, 5); print(my_list)' output? Correct! [1, 5, 2] [5, 1, 2] [1, 2, 5] [1, 2]  https://canvas.uchicago.edu/courses/58420/quizzes/126966 11/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 43 1 / 1 pts What does 'len()' return when applied to a dictionary? Correct! The number of key-value pairs The number of keys The number of values The length of the keys  Question 44 1 / 1 pts Which of the following is true about Python functions? They must always return a value They cannot have default arguments Correct! They can have variable-length arguments They cannot be recursive  Question 45 1 / 1 pts What does 'from math import sqrt' do in Python? Imports the entire math module Correct! Imports only the sqrt function Creates a new function Imports sqrt as a package  Question 46 0 / 1 pts What is the correct way to access a package after installation? You Answered import package-name from package import name package import Correct Answer import package  https://canvas.uchicago.edu/courses/58420/quizzes/126966 12/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 47 1 / 1 pts How do you check if a key exists in a dictionary? dict.exists(key) Correct! if key in dict dict.has_key(key) if dict[key]  Question 48 1 / 1 pts What is the result of 'd = {'a': 1, 'b': 2}; d['c'] = 3; print(d)'? Correct! {'a': 1, 'b': 2, 'c': 3} Error {'a': 1, 'b': 2} None  Question 49 1 / 1 pts Which of the following methods is used to remove all elements from a list? Correct! list.clear() list.remove() list.delete() list.pop()  Question 50 1 / 1 pts What is the purpose of the '__init__.py' file in a Python package? Initialize a variable Initialize a module Correct! Indicate that the directory is a package Create a class  Question 51 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/126966 13/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is the output of 'my_dict = {'a': 1, 'b': 2}; print(my_dict['a'])'? Error Correct! 1 2 None  Question 52 1 / 1 pts Which of the following is used to import a module? def module module.import Correct! import module import module as name  Question 53 1 / 1 pts What is the output of 'list1 = [1, 2, 3]; print(list1[-1])'? Error 1 Correct! 3 None  Question 54 1 / 1 pts What is the output of 'my_tuple = (1, 2, 3); print(len(my_tuple))'? Error 2 Correct! 3 None  Question 55 1 / 1 pts How do you update a key-value pair in a dictionary? dict.add() https://canvas.uchicago.edu/courses/58420/quizzes/126966 14/15 11/28/24, 1:51 PM assignmentW1a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! dict.update() dict.set() dict.insert()  Question 56 1 / 1 pts What is the difference between a module and a package in Python? Modules contain packages, packages contain modules Modules can contain functions, packages contain classes Correct! Modules are single files, packages are directories There is no difference  Question 57 1 / 1 pts What does the 'index()' method do for a list? Adds an item at a specific position Correct! Returns the index of a value Removes an item by index Clears the list  Question 58 1 / 1 pts How do you install a specific version of a package using pip? pip install package=version pip install version package Correct! pip install package==version pip install package -v version Quiz Score: 52 out of 58 https://canvas.uchicago.edu/courses/58420/quizzes/126966 15/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  This quiz has been regraded; your new score reflects 2 questions that were affected. assignmentW2a Due Sep 18 at 11:59pm Points 56 Questions 56 Time Limit None Attempt History Attempt Time Score Regraded LATEST Attempt 1 26 minutes 53 out of 56 54 out of 56 Score for this quiz: 54 out of 56 Submitted Sep 17 at 4:54pm This attempt took 26 minutes.  Question 1 1 / 1 pts What is the main purpose of OOP? To structure a program into procedures Correct! To model real-world entities and their interactions To organize data into tables To optimize memory usage  Question 2 1 / 1 pts What is an object in OOP? Correct! An instance of a class A class method A module A variable  Question 3 1 / 1 pts What is a class in Python? Correct! https://canvas.uchicago.edu/courses/58420/quizzes/126971 1/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python A blueprint for creating objects A function for defining objects A container for data An instance of an object  Question 4 1 / 1 pts Which of the following is not a feature of OOP? Inheritance Encapsulation Polymorphism Correct! Recursion  Question 5 1 / 1 pts What does 'self' refer to in a class method? The base class The class itself Correct! The current instance of the class The superclass  Question 6 1 / 1 pts What is the purpose of a constructor in Python? To destroy an object To create a class Correct! To initialize an object To inherit from a class  Question 7 1 / 1 pts Which method is used as a constructor in Python? __new__ Correct! __init__ https://canvas.uchicago.edu/courses/58420/quizzes/126971 2/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python __constructor__ __build__  Question 8 1 / 1 pts How do you create a class in Python? Correct! class ClassName: def ClassName: new ClassName: class ClassName[]:  Question 9 1 / 1 pts What is encapsulation in OOP? The ability to inherit methods Correct! The hiding of implementation details The ability to define multiple methods The reusability of code  Question 10 1 / 1 pts What is polymorphism in OOP? Correct! The ability to process objects differently based on their data type The ability to inherit properties from multiple classes The use of multiple constructors in a class The hiding of internal details  Question 11 1 / 1 pts Which of the following best describes inheritance in OOP? Correct! A class can inherit methods and properties from another class A class can define multiple methods with the same name A class can override built-in functions A class can access private variables https://canvas.uchicago.edu/courses/58420/quizzes/126971 3/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 12 1 / 1 pts Which of the following is a base class in Python? Correct! A class that is inherited from A class that cannot be instantiated A class that only defines abstract methods A class that overrides other classes  Question 13 1 / 1 pts Which of the following is a derived class in Python? A class that overrides base methods A class that is inherited from Correct! A class that inherits from another class A class that does not use inheritance  Question 14 1 / 1 pts What is method overriding? Defining a new method in a class Correct! Defining a method with the same name in a derived class Defining multiple methods with the same name Inheriting from multiple classes  Question 15 1 / 1 pts What is the purpose of 'super()' in Python? Correct! To call a method from the parent class To define a new method in a class To override a method in the base class To access private members of the parent class  https://canvas.uchicago.edu/courses/58420/quizzes/126971 4/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 16 1 / 1 pts What is a destructor in Python? A function that destroys objects immediately after creation Correct! A function that cleans up resources before an object is deleted A function that prevents inheritance A function that modifies private variables  Question 17 1 / 1 pts When is the destructor '__del__()' method called? When an object is initialized When an object is created Correct! When an object is garbage collected or goes out of scope When an object is passed to a function  Question 18 0 / 1 pts What is the purpose of private member variables in OOP? Correct Answer To allow access only within the class To make variables public You Answered To prevent other classes from accessing them To make variables global  Question 19 1 / 1 pts How do you define a private member variable in Python? Correct! Prefix with a double underscore (__) Use the keyword 'private' Prefix with a single underscore (_) Define it inside the '__init__()' method  https://canvas.uchicago.edu/courses/58420/quizzes/126971 5/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 20 1 / 1 pts What is the difference between a class attribute and an instance attribute? Correct! Class attributes are shared by all instances, while instance attributes are unique to each instance Instance attributes are shared by all instances, while class attributes are unique to each instance Both class and instance attributes are shared by all instances There is no difference between class and instance attributes  Question 21 Original Score: 1 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. What is the correct syntax for defining a class method in Python? def method(): Correct! def method(self): def method(cls): def method(self, cls):  Question 22 1 / 1 pts What is operator overloading? Defining new operators Changing the data type of an operator Correct! Using existing operators for user-defined types Overloading constructors with operators  Question 23 1 / 1 pts Which special method is used to overload the '+' operator in Python? Correct! __add__() __plus__() __operator__() __concat__() https://canvas.uchicago.edu/courses/58420/quizzes/126971 6/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 24 1 / 1 pts What is abstraction in OOP? The ability to modify private members The ability to access class members directly Correct! The process of hiding implementation details and showing only functionality The use of multiple inheritance  Question 25 1 / 1 pts What is method overloading? Correct! Defining multiple methods with the same name but different parameters Using the same method name in both base and derived classes Defining a method in a class Using different names for the same method  Question 26 1 / 1 pts What does the 'isinstance()' function do in Python? Correct! Checks if an object belongs to a certain class or type Compares two objects Checks if two objects have the same attributes Initializes an object  Question 27 1 / 1 pts What is the purpose of the '__str__()' method in a class? Correct! To return a human-readable string representation of the object To delete an object To overload an operator To compare two objects  https://canvas.uchicago.edu/courses/58420/quizzes/126971 7/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 28 1 / 1 pts What is the correct way to inherit from a class in Python? class SubClass inherits BaseClass: Correct! class SubClass(BaseClass): class SubClass -> BaseClass: class BaseClass -> SubClass:  Question 29 1 / 1 pts What is multiple inheritance in OOP? Correct! A class inheriting from multiple parent classes Multiple classes inheriting from a single class Inheriting multiple constructors in a class A class overriding multiple methods  Question 30 1 / 1 pts How do you create an instance of a class in Python? Correct! object = ClassName() object = ClassName.new() object = ClassName[] object = new ClassName()  Question 31 1 / 1 pts What is the difference between method overriding and method overloading? Correct! Overriding is redefining a method in a derived class, while overloading is defining multiple methods with the same name but different parameters Overriding allows inheritance, while overloading prevents it Overriding changes method signatures, while overloading modifies classes There is no difference  https://canvas.uchicago.edu/courses/58420/quizzes/126971 8/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 32 0 / 1 pts How do you access a class attribute in Python? You Answered object.attribute Correct Answer ClassName.attribute self.attribute cls.attribute  Question 33 1 / 1 pts Which method is used to overload the '==' operator in Python? Correct! __eq__() __equal__() __compare__() __comp__()  Question 34 1 / 1 pts What does encapsulation ensure in OOP? Correct! Only relevant details are exposed to the user, while implementation details are hidden A class can inherit from multiple classes An object can have multiple types The memory usage is optimized  Question 35 1 / 1 pts Which keyword is used to indicate inheritance in Python? super inherits extends Correct! None (use parentheses with the base class)  https://canvas.uchicago.edu/courses/58420/quizzes/126971 9/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 36 1 / 1 pts What is the output of the '__str__()' method used for? Correct! To return the string representation of an object when printed To define private members To overload built-in operators To modify class attributes  Question 37 1 / 1 pts What is the correct way to access a private member variable in Python? Correct! Using a getter method Directly accessing the variable Using 'self.__variable' outside the class Using a public method  Question 38 1 / 1 pts What is the purpose of 'self' in a class? Correct! To access class attributes and methods To define private methods To modify global variables To access global functions  Question 39 1 / 1 pts Which of the following best describes 'inheritance' in OOP? Correct! It allows a class to use methods and properties of another class It prevents access to private variables It allows defining methods with the same name in different classes It helps in operator overloading  Question 40 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/126971 10/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is the correct way to declare an abstract class in Python? Use the 'abstract' keyword Use the 'class AbstractClass:' syntax Correct! Inherit from 'ABC' (Abstract Base Class) Use the '__abstract__' method  Question 41 1 / 1 pts What is the purpose of the 'super()' function in Python? Correct! To access the parent class's constructor or methods To modify private members To define multiple constructors To create an abstract class  Question 42 1 / 1 pts What is method chaining in Python? Correct! Returning an object from a method so that multiple methods can be called in a chain Calling multiple methods with the same name Overriding multiple methods in a class Inheriting multiple methods from the base class  Question 43 1 / 1 pts What does '__repr__()' method do in Python? Correct! Returns an official string representation of an object Deletes an object Defines private methods Overloads operators  Question 44 1 / 1 pts What is the role of a static method in Python? Correct! https://canvas.uchicago.edu/courses/58420/quizzes/126971 11/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python A method that belongs to the class rather than an instance A method that belongs to an object instance A method that overrides built-in methods A method that destroys an object  Question 45 1 / 1 pts How do you define a static method in Python? Using 'def' without 'self' Correct! Using '@staticmethod' decorator Using 'def' with 'self' Using '@classmethod' decorator  Question 46 1 / 1 pts Which method is used to overload the '*' operator in Python? __mult__() Correct! __mul__() __multiply__() __star__()  Question 47 1 / 1 pts What is the purpose of '__init__()' in Python? Correct! To initialize an object's state when it is created To overload an operator To destroy an object To compare two objects  Question 48 1 / 1 pts Which of the following is true about destructors in Python? Correct! They are automatically called when an object is garbage collected They must be called explicitly https://canvas.uchicago.edu/courses/58420/quizzes/126971 12/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python They are called before the constructor They cannot be defined for user-defined classes  Question 49 1 / 1 pts What is the difference between a public and a private member in Python? Correct! Private members are accessible only within the class, while public members are accessible outside the class Public members are faster than private members Private members can be accessed from outside the class using 'self' There is no difference  Question 50 1 / 1 pts Which method is used to overload the '-' operator in Python? __subtract__() __minus__() Correct! __sub__() __neg__()  Question 51 1 / 1 pts What is the main advantage of polymorphism in OOP? Correct! It allows different classes to be treated as instances of the same class through a common interface It provides a way to access private variables It optimizes memory usage It restricts inheritance  Question 52 1 / 1 pts How do you define a class-level attribute in Python? Inside the constructor Correct! Outside any method but inside the class Inside a method with 'self' Using '@classmethod' decorator https://canvas.uchicago.edu/courses/58420/quizzes/126971 13/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 53 1 / 1 pts What is the role of the '__call__()' method in Python? Correct! It allows an object to be called like a function It initializes an object It destroys an object It compares two objects  Question 54 1 / 1 pts Which OOP principle allows a subclass to provide a specific implementation for a method that is already defined in its superclass? Polymorphism Encapsulation Abstraction Correct! Method overriding  Question 55 Original Score: 0 / 1 pts Regraded Score: 1 / 1 pts  This question has been regraded. Which of the following methods is called when a new object is created in Python? Correct! __new__() __init__() __call__() __repr__()  Question 56 1 / 1 pts What does 'cls' refer to in a class method? Correct! The class itself The object instance https://canvas.uchicago.edu/courses/58420/quizzes/126971 14/15 11/28/24, 1:51 PM assignmentW2a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python The method name The base class Quiz Score: 54 out of 56 https://canvas.uchicago.edu/courses/58420/quizzes/126971 15/15 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Assignment W3a Due Sep 27 at 11:59pm Points 70 Questions 70 Time Limit None Attempt History Attempt Time Score LATEST Attempt 1 69 minutes 69 out of 70 Score for this quiz: 69 out of 70 Submitted Sep 27 at 4:54pm This attempt took 69 minutes.  Question 1 1 / 1 pts What is Algorithmic Trading? Trading based on gut feeling Correct! Trading using computer algorithms Manual trading Trading based on financial news  Question 2 1 / 1 pts Which of the following is a key component of Financial Trading? Cultural Activities Social Interactions Correct! Financial Instruments Arts and Culture  Question 3 1 / 1 pts What has gained prominence with the evolution of technology in trading? Manual Trading Cultural Activities Correct! https://canvas.uchicago.edu/courses/58420/quizzes/128305 1/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Electronic Trading Social Interactions  Question 4 1 / 1 pts What is the primary objective of Financial Trading? Risk Management Profit Generation Liquidity Provision Correct! All of the above  Question 5 1 / 1 pts Algorithmic Trading is a subset of which broader category? Manual Trading Cultural Activities Correct! Automated Trading Social Interactions  Question 6 1 / 1 pts What has Algorithmic Trading introduced to the financial markets? Inefficiency Higher costs Correct! Efficiency Less liquidity  Question 7 1 / 1 pts Which of the following is NOT a component of Algorithmic Trading? Algorithmic Strategies Market Factors Analysis Correct! Financial News Analysis Mathematical Models https://canvas.uchicago.edu/courses/58420/quizzes/128305 2/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 8 1 / 1 pts What type of strategies are at the core of Algorithmic Trading? Correct! Algorithmic Strategies Gut Feeling Strategies Manual Strategies Cultural Strategies  Question 9 1 / 1 pts Which strategy involves taking advantage of price discrepancies in different markets? Momentum Trading Mean Reversion Correct! Statistical Arbitrage Liquidity Trading  Question 10 1 / 1 pts What does Momentum Trading rely on? Price discrepancies Historical average prices Correct! The continuation of a market trend Market liquidity  Question 11 1 / 1 pts Which strategy assumes that prices will revert to their historical averages? Momentum Trading Correct! Mean Reversion Statistical Arbitrage Liquidity Trading  https://canvas.uchicago.edu/courses/58420/quizzes/128305 3/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 12 1 / 1 pts Which strategy focuses on providing liquidity to the market? Momentum Trading Mean Reversion Correct! Liquidity Trading Statistical Arbitrage  Question 13 1 / 1 pts What does Algorithmic Trading use to analyze market factors? Gut feeling Correct! Statistical Analysis Manual Analysis None of the above  Question 14 1 / 1 pts What is one of the benefits of Algorithmic Trading? Increased Costs Correct! Enhanced Market Liquidity Reduced Efficiency Slower Trade Execution  Question 15 1 / 1 pts Which market factors do algorithms analyze in Algorithmic Trading? Cultural Trends Market Timing Correct! Price and Volume Social Interactions  Question 16 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/128305 4/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is a common feature of algorithms used in trading? Human Emotions Correct! Predefined Criteria Random Decisions Social Factors  Question 17 1 / 1 pts Which of the following is a sophisticated method used in Algorithmic Trading? Random Trade Execution Manual Trading Correct! High-Frequency Trading Social Trading  Question 18 1 / 1 pts High-Frequency Trading involves executing trades at what speed? Human Speed Correct! Lightning Speed Slow Speed Manual Speed  Question 19 1 / 1 pts Which technology has significantly impacted Algorithmic Trading? Manual Calculations Internet of Things (IoT) Correct! Artificial Intelligence (AI) Blockchain  Question 20 1 / 1 pts What does AI in trading algorithms help with? Random Decisions https://canvas.uchicago.edu/courses/58420/quizzes/128305 5/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! Predicting Market Trends Manual Trading Social Interactions  Question 21 1 / 1 pts What is a potential risk of Algorithmic Trading? Increased Market Stability Correct! Market Manipulation Lower Transaction Costs Reduced Market Liquidity  Question 22 0 / 1 pts How can Algorithmic Trading contribute to market volatility? By stabilizing prices Correct Answer By executing large volumes of trades rapidly By reducing trade volumes You Answered By enhancing liquidity  Question 23 1 / 1 pts Which of the following is a regulatory concern related to Algorithmic Trading? Increased Manual Trading Correct! Market Abuse Enhanced Market Transparency Reduced Trade Execution Speed  Question 24 1 / 1 pts What is a challenge in developing effective trading algorithms? Understanding Cultural Trends Correct! https://canvas.uchicago.edu/courses/58420/quizzes/128305 6/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Access to High-Quality Data Manual Trade Execution Social Interactions  Question 25 1 / 1 pts What is a future trend in Algorithmic Trading? Decline in Technology Use Increase in Manual Trading Correct! Integration of Machine Learning Reduced Automation  Question 26 1 / 1 pts Which area is expected to grow in importance for Algorithmic Trading? Social Interactions Gut Feeling Decisions Correct! Big Data Analysis Cultural Activities  Question 27 1 / 1 pts What is the expected impact of regulatory changes on Algorithmic Trading? No Impact Correct! Increased Compliance Requirements Reduced Oversight Enhanced Market Manipulation  Question 28 1 / 1 pts What will be crucial for the success of future trading algorithms? Manual Execution Correct! Data Quality and Availability Cultural Understanding https://canvas.uchicago.edu/courses/58420/quizzes/128305 7/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Social Factors  Question 29 1 / 1 pts Which is an ethical concern in Algorithmic Trading? Market Efficiency Correct! Fairness in Trading Profit Generation Speed of Execution  Question 30 1 / 1 pts How can Algorithmic Trading impact employment in finance? Increase in Manual Jobs Correct! Reduction in Certain Job Roles No Impact Enhanced Job Security  Question 31 1 / 1 pts What is a social implication of widespread Algorithmic Trading? Correct! Reduced Market Access Increased Financial Inclusion Enhanced Manual Trading No Change  Question 32 1 / 1 pts Why is transparency important in Algorithmic Trading? To hide trading strategies Correct! To ensure market fairness To increase costs To reduce efficiency  https://canvas.uchicago.edu/courses/58420/quizzes/128305 8/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 33 1 / 1 pts Which company is known for its use of Algorithmic Trading? Facebook Google Correct! Renaissance Technologies Amazon  Question 34 1 / 1 pts What is a notable success factor for Renaissance Technologies in Algorithmic Trading? Manual Trade Execution Cultural Trends Analysis Correct! Data-Driven Decision Making Social Media Strategies  Question 35 1 / 1 pts Which industry has been significantly impacted by Algorithmic Trading? Healthcare Education Correct! Finance Agriculture  Question 36 1 / 1 pts How does Algorithmic Trading benefit institutional investors? By reducing trade execution speed Correct! By providing data-driven insights By increasing manual trade volume By focusing on social trends  Question 37 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/128305 9/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is essential for the development of robust trading algorithms? Cultural Trends Analysis Correct! High-Quality Market Data Manual Trade Execution Social Interactions  Question 38 1 / 1 pts What is a practical challenge in implementing Algorithmic Trading systems? Reduced Automation Correct! Managing Data Latency Increasing Manual Intervention Social Networking  Question 39 1 / 1 pts What type of data is crucial for Algorithmic Trading? Social Media Data Correct! Historical Market Data Cultural Trends Data Manual Trade Logs  Question 40 1 / 1 pts Which tool is commonly used for backtesting trading algorithms? Social Media Platforms Correct! Statistical Software Cultural Analysis Tools Manual Calculation Methods  Question 41 1 / 1 pts What is the main advantage of using statistical arbitrage? It is based on historical averages https://canvas.uchicago.edu/courses/58420/quizzes/128305 10/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! It takes advantage of price discrepancies It follows market trends It provides market liquidity  Question 42 1 / 1 pts Which programming language is commonly used for developing trading algorithms? JavaScript Correct! Python HTML CSS  Question 43 1 / 1 pts What is one of the key features of high-frequency trading? Slow trade execution Correct! Large volume of trades in a short time Manual trade execution No use of algorithms  Question 44 1 / 1 pts Which regulatory body oversees trading activities in the US? Correct! SEC (Securities and Exchange Commission) FDA (Food and Drug Administration) FCC (Federal Communications Commission) FAA (Federal Aviation Administration)  Question 45 1 / 1 pts What is a common use of machine learning in trading algorithms? Manual Trade Execution Correct! Predicting Market Movements https://canvas.uchicago.edu/courses/58420/quizzes/128305 11/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Cultural Trends Analysis Social Media Monitoring  Question 46 1 / 1 pts Which financial instrument is often traded using algorithms? Art Pieces Correct! Stocks Real Estate Collectibles  Question 47 1 / 1 pts What is a benefit of using big data in algorithmic trading? Reduced Data Volume Correct! Improved Trade Predictions Slower Trade Execution Manual Data Analysis  Question 48 1 / 1 pts Which of the following is a challenge in high-frequency trading? Slow Execution Speed Correct! Latency Issues Low Trade Volume Manual Intervention  Question 49 1 / 1 pts What role do mathematical models play in algorithmic trading? They are rarely used Correct! They help predict market trends They increase manual trade volume They analyze social interactions https://canvas.uchicago.edu/courses/58420/quizzes/128305 12/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python  Question 50 1 / 1 pts Which of the following is a benefit of using automated trading systems? Increased Emotional Trading Correct! Reduced Human Error Slower Trade Execution Manual Trade Management  Question 51 1 / 1 pts What type of market data is essential for real-time trading algorithms? Historical Data Only Correct! Real-Time Market Data Social Media Data Cultural Trends Data  Question 52 1 / 1 pts Which strategy involves trading based on historical price data? Correct! Mean Reversion Momentum Trading Statistical Arbitrage Liquidity Trading  Question 53 1 / 1 pts What is a benefit of algorithmic trading for retail investors? Reduced Market Access Correct! Enhanced Trade Execution Speed Increased Costs Reduced Market Transparency  https://canvas.uchicago.edu/courses/58420/quizzes/128305 13/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 54 1 / 1 pts How can algorithms help in managing trading risks? By ignoring market data Correct! By analyzing market trends and volatility By executing random trades By focusing on cultural trends  Question 55 1 / 1 pts What is a common technique used in backtesting trading strategies? Manual Calculation Cultural Analysis Correct! Simulating Historical Data Social Media Monitoring  Question 56 1 / 1 pts Which of the following is a key factor in developing trading algorithms? Understanding Cultural Trends Correct! Access to High-Quality Data Manual Trade Execution Social Interactions  Question 57 1 / 1 pts Which type of trading involves executing a large number of orders in fractions of a second? Manual Trading Correct! High-Frequency Trading Cultural Trading Social Trading  Question 58 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/128305 14/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is the purpose of using stop-loss orders in trading algorithms? Correct! To limit potential losses To increase trade volume To ignore market trends To enhance emotional trading  Question 59 1 / 1 pts What is a key benefit of using algorithmic trading in financial markets? Increased Human Error Correct! Improved Market Efficiency Slower Trade Execution Reduced Trade Volume  Question 60 1 / 1 pts Which of the following is an example of an algorithmic trading strategy? Random Trade Execution Cultural Trends Analysis Correct! Statistical Arbitrage Social Media Monitoring  Question 61 1 / 1 pts Change the symbol to 'AAPL' and run the backtesting code. What is the portfolio value on day 65? $12,500 $11,800 $10,700 Correct! $10,959.53  Question 62 1 / 1 pts Using the 'AAPL' symbol, how many 'Buy' signals are generated in the first 100 days of the dataset? 12 https://canvas.uchicago.edu/courses/58420/quizzes/128305 15/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python 8 Correct! 50 100  Question 63 1 / 1 pts For the 'AAPL' symbol, what is the closing price on the 50th day in the dataset? $50.34 $55.67 Correct! $8.00 $52.10  Question 64 1 / 1 pts Using the 'AAPL' symbol, what is the cash balance on day 120 after running the backtest? $6,200 $8,500 Correct! $4.81 $7,800  Question 65 1 / 1 pts For the 'AAPL' symbol, on which day does the first 'Sell' signal occur? Day 40 Day 65 Correct! Day 1 Day 30  Question 66 1 / 1 pts Using the 'AAPL' symbol, what is the total number of 'Hold' signals in the dataset? 180 220 200 https://canvas.uchicago.edu/courses/58420/quizzes/128305 16/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! 0  Question 67 1 / 1 pts For the 'AAPL' symbol, what is the holdings value on the 100th day? $4,800 $5,600 Correct! $10,568.31 $4,000  Question 68 1 / 1 pts Using the 'AAPL' symbol, what is the final cash balance at the end of the backtesting period? $9,500 $12,200 Correct! $80,619.15 $10,800  Question 69 1 / 1 pts Using the 'AAPL' symbol, how many shares are held on the 200th day? 5 10 15 Correct! 13,053.845820426941  Question 70 1 / 1 pts Change the strategy to buy on every even day and sell on every odd day using the 'AAPL' symbol. What is the portfolio value on the last day of the backtesting period? $19,000 $17,500 Correct! $80,619.15 https://canvas.uchicago.edu/courses/58420/quizzes/128305 17/18 11/28/24, 1:52 PM Assignment W3a: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python $18,000 Quiz Score: 69 out of 70 https://canvas.uchicago.edu/courses/58420/quizzes/128305 18/18 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python assignmentW4d Arbitrage Strategies Due Oct 5 at 11:59pm Points 26 Questions 26 Time Limit None Attempt History Attempt Time Score LATEST Attempt 1 5,510 minutes 26 out of 26 Score for this quiz: 26 out of 26 Submitted Oct 4 at 5:04pm This attempt took 5,510 minutes.  Question 1 1 / 1 pts Which trading strategy exploits price discrepancies between two historically correlated assets? Index Arbitrage Correct! Pairs Trading Market Neutral Strategy Volatility Arbitrage  Question 2 1 / 1 pts What is an example of pairs trading? Correct! Trading the price divergence and convergence between two stocks like AAPL and MSFT Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 3 1 / 1 pts Which strategy arbitrages price differences between an index and its constituent stocks? Pairs Trading Correct! Index Arbitrage https://canvas.uchicago.edu/courses/58420/quizzes/128307 1/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Market Neutral Strategy Volatility Arbitrage  Question 4 1 / 1 pts What is an example of index arbitrage? Trading the price divergence between two stocks Correct! Buying the index futures and selling the underlying basket of stocks Maintaining a balanced long and short position Trading options to capture mispricing in volatility forecasts  Question 5 1 / 1 pts Which strategy aims to be neutral to market movements by maintaining a balanced long and short position? Pairs Trading Index Arbitrage Correct! Market Neutral Strategy Volatility Arbitrage  Question 6 1 / 1 pts What is an example of a market neutral strategy? Correct! Constructing a portfolio with equal long and short positions in correlated stocks to hedge market risk Buying the index futures and selling the underlying basket of stocks Trading options to capture mispricing in volatility forecasts Trading the price divergence between two stocks  Question 7 1 / 1 pts Which strategy exploits the difference between implied volatility and realized volatility? Pairs Trading Index Arbitrage Market Neutral Strategy Correct! https://canvas.uchicago.edu/courses/58420/quizzes/128307 2/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Volatility Arbitrage  Question 8 1 / 1 pts What is an example of volatility arbitrage? Correct! Trading options to capture the mispricing in volatility forecasts Constructing a portfolio with equal long and short positions Buying the index futures and selling the underlying basket of stocks Trading the price divergence between two stocks  Question 9 1 / 1 pts Which strategy profits from price discrepancies that arise before and after mergers and acquisitions? Pairs Trading Correct! Merger Arbitrage Market Neutral Strategy Volatility Arbitrage  Question 10 1 / 1 pts What is an example of merger arbitrage? Correct! Buying the stock of a company being acquired and shorting the stock of the acquiring company Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 11 1 / 1 pts Which strategy arbitrages the price difference between a convertible bond and the underlying stock? Pairs Trading Correct! Convertible Arbitrage Market Neutral Strategy Volatility Arbitrage  https://canvas.uchicago.edu/courses/58420/quizzes/128307 3/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 12 1 / 1 pts What is an example of convertible arbitrage? Correct! Buying undervalued convertible bonds while shorting the corresponding stocks Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 13 1 / 1 pts Which strategy focuses on price movements due to specific events (e.g., earnings announcements, economic reports)? Pairs Trading Correct! Event Arbitrage Market Neutral Strategy Volatility Arbitrage  Question 14 1 / 1 pts What is an example of event arbitrage? Correct! Taking positions based on expected market reaction to a company's earnings report Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 15 1 / 1 pts Which strategy profits from the mispricing of dividend-paying stocks? Pairs Trading Correct! Dividend Arbitrage Market Neutral Strategy Volatility Arbitrage  https://canvas.uchicago.edu/courses/58420/quizzes/128307 4/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 16 1 / 1 pts What is an example of dividend arbitrage? Correct! Buying a stock just before its ex-dividend date and selling it after capturing the dividend payout Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 17 1 / 1 pts Which strategy uses statistical techniques to identify and exploit recurring price patterns? Pairs Trading Correct! Statistical Pattern Recognition Market Neutral Strategy Volatility Arbitrage  Question 18 1 / 1 pts What is an example of statistical pattern recognition? Correct! Identifying and trading based on patterns like mean reversion, momentum, and other statistical anomalies Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 19 1 / 1 pts Which strategy uses high-speed trading systems to exploit small price discrepancies that exist for very short periods? Pairs Trading Correct! High-Frequency Trading (HFT) Arbitrage Market Neutral Strategy Volatility Arbitrage  https://canvas.uchicago.edu/courses/58420/quizzes/128307 5/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 20 1 / 1 pts What is an example of high-frequency trading (HFT) arbitrage? Correct! Latency arbitrage, where trades are executed based on minimal time differences between markets Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 21 1 / 1 pts Which strategy trades a group of correlated stocks together to exploit statistical relationships? Pairs Trading Correct! Basket Trading Market Neutral Strategy Volatility Arbitrage  Question 22 1 / 1 pts What is an example of basket trading? Correct! Constructing a long/short basket of stocks to capture sector-based mispricings Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 23 1 / 1 pts Which strategy arbitrages discrepancies between an ETF and its underlying securities? Pairs Trading Correct! ETF Arbitrage Market Neutral Strategy Volatility Arbitrage  Question 24 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/128307 6/7 11/28/24, 1:52 PM assignmentW4d Arbitrage Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python What is an example of ETF arbitrage? Correct! Buying the ETF and shorting the underlying securities, or vice versa, to profit from the price difference Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts  Question 25 1 / 1 pts Which strategy exploits mispricings within or between different sectors? Pairs Trading Correct! Sector Arbitrage Market Neutral Strategy Volatility Arbitrage  Question 26 1 / 1 pts What is an example of sector arbitrage? Correct! Taking long positions in undervalued sectors and short positions in overvalued sectors Buying the index futures and selling the underlying basket of stocks Constructing a portfolio with equal long and short positions Trading options to capture mispricing in volatility forecasts Quiz Score: 26 out of 26 https://canvas.uchicago.edu/courses/58420/quizzes/128307 7/7 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python assignmentW4b Event Study Strategies Due Oct 5 at 11:59pm Points 30 Questions 30 Time Limit None Attempt History Attempt Time Score LATEST Attempt 1 3,955 minutes 29 out of 30 Score for this quiz: 29 out of 30 Submitted Oct 4 at 5:10pm This attempt took 3,955 minutes.  Question 1 1 / 1 pts Which strategy uses standard deviation bands around a moving average to identify overbought or oversold conditions? Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD) Correct! Bollinger Bands Stochastic Oscillator  Question 2 1 / 1 pts What is an example of Bollinger Bands? Correct! Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory Buy when the %K line crosses below the %D line below 20, and sell when the %K line crosses above the %D line above 80  Question 3 1 / 1 pts https://canvas.uchicago.edu/courses/58420/quizzes/128309 1/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Which strategy measures the magnitude of recent price changes to evaluate overbought or oversold conditions? Correct! Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD) Bollinger Bands Stochastic Oscillator  Question 4 1 / 1 pts What is an example of Relative Strength Index (RSI)? Correct! Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory Buy when the %K line crosses below the %D line below 20, and sell when the %K line crosses above the %D line above 80  Question 5 1 / 1 pts Which strategy uses the difference between a short-term EMA and a long-term EMA to identify overbought or oversold conditions? Relative Strength Index (RSI) Correct! Moving Average Convergence Divergence (MACD) Bollinger Bands Stochastic Oscillator  Question 6 1 / 1 pts What is an example of Moving Average Convergence Divergence (MACD)? Correct! Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 https://canvas.uchicago.edu/courses/58420/quizzes/128309 2/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the %K line crosses below the %D line below 20, and sell when the %K line crosses above the %D line above 80  Question 7 1 / 1 pts Which strategy compares a particular closing price of a security to a range of its prices over a certain period of time? Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD) Bollinger Bands Correct! Stochastic Oscillator  Question 8 1 / 1 pts What is an example of Stochastic Oscillator? Correct! Buy when the %K line crosses below the %D line below 20, and sell when the %K line crosses above the %D line above 80 Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 9 0 / 1 pts Which strategy uses the crossing of short-term and long-term moving averages to identify mean reversion opportunities? Correct Answer Simple Moving Average (SMA) You Answered Moving Average Convergence Divergence (MACD) Bollinger Bands Stochastic Oscillator  https://canvas.uchicago.edu/courses/58420/quizzes/128309 3/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 10 1 / 1 pts What is an example of Simple Moving Average (SMA)? Correct! Buy when the price crosses above the short-term SMA after being below it, and sell when the price crosses below the short-term SMA after being above it Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 11 1 / 1 pts Which strategy involves identifying two historically correlated assets and trading the divergence and convergence in their prices? Simple Moving Average (SMA) Moving Average Convergence Divergence (MACD) Correct! Pairs Trading Stochastic Oscillator  Question 12 1 / 1 pts What is an example of Pairs Trading? Correct! Buy the underperforming asset and short the outperforming asset when the price spread widens beyond a certain threshold, and unwind the positions when the prices converge Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 13 1 / 1 pts Which strategy uses volatility-based envelopes set above and below an exponential moving average to identify overbought or oversold conditions? https://canvas.uchicago.edu/courses/58420/quizzes/128309 4/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! Keltner Channels Moving Average Convergence Divergence (MACD) Pairs Trading Stochastic Oscillator  Question 14 1 / 1 pts What is an example of Keltner Channels? Correct! Buy when the price touches the lower Keltner Channel, and sell when the price touches the upper Keltner Channel Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 15 1 / 1 pts Which strategy uses the highest high and the lowest low of the last n periods to create upper and lower bands? Keltner Channels Correct! Donchian Channels Pairs Trading Stochastic Oscillator  Question 16 1 / 1 pts What is an example of Donchian Channels? Correct! Buy when the price touches the lower Donchian Channel, and sell when the price touches the upper Donchian Channel Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  https://canvas.uchicago.edu/courses/58420/quizzes/128309 5/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 17 1 / 1 pts Which strategy measures the deviation of the price from its average price over a given period? Keltner Channels Donchian Channels Correct! Commodity Channel Index (CCI) Stochastic Oscillator  Question 18 1 / 1 pts What is an example of Commodity Channel Index (CCI)? Correct! Buy when the CCI crosses below -100 (indicating oversold conditions), and sell when the CCI crosses above 100 (indicating overbought conditions) Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 19 1 / 1 pts Which strategy uses the VWAP as a benchmark to identify overbought or oversold conditions? Correct! Volume-Weighted Average Price (VWAP) Reversion Donchian Channels Commodity Channel Index (CCI) Stochastic Oscillator  Question 20 1 / 1 pts What is an example of Volume-Weighted Average Price (VWAP) Reversion? Correct! Buy when the price is significantly below the VWAP, and sell when the price is significantly above the VWAP Buy when the RSI crosses below 30, and sell when the RSI crosses above 70 Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band https://canvas.uchicago.edu/courses/58420/quizzes/128309 6/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 21 1 / 1 pts Which strategy measures the number of standard deviations a data point is from the mean? Volume-Weighted Average Price (VWAP) Reversion Donchian Channels Correct! Z-Score Stochastic Oscillator  Question 22 1 / 1 pts What is an example of Z-Score? Correct! Buy when the z-score of the price is below -2 (indicating oversold conditions), and sell when the z-score is above 2 (indicating overbought conditions) Buy when the price is significantly below the VWAP, and sell when the price is significantly above the VWAP Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band Buy when the MACD line crosses below the signal line in oversold territory, and sell when the MACD line crosses above the signal line in overbought territory  Question 23 1 / 1 pts Which strategy uses percentage-based envelopes set above and below a moving average to identify overbought or oversold conditions? Volume-Weighted Average Price (VWAP) Reversion Correct! Envelope Channels Z-Score Stochastic Oscillator  Question 24 1 / 1 pts What is an example of Envelope Channels? https://canvas.uchicago.edu/courses/58420/quizzes/128309 7/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Correct! Buy when the price touches the lower envelope, and sell when the price touches the upper envelope Buy when the z-score of the price is below -2 (indicating oversold conditions), and sell when the z-score is above 2 (indicating overbought conditions) Buy when the price is significantly below the VWAP, and sell when the price is significantly above the VWAP Buy when the price touches the lower Bollinger Band, and sell when the price touches the upper Bollinger Band  Question 25 1 / 1 pts Which strategy uses Average True Range (ATR) to create channels around a moving average to identify overbought or oversold conditions? Volume-Weighted Average Price (VWAP) Reversion Envelope Channels Correct! ATR Channels Z-Score  Question 26 1 / 1 pts What is an example of ATR Channels? Correct! Buy when the price touches the lower ATR channel, and sell when the price touches the upper ATR channel Buy when the z-score of the price is below -2 (indicating oversold conditions), and sell when the z-score is above 2 (indicating overbought conditions) Buy when the price is significantly below the VWAP, and sell when the price is significantly above the VWAP Buy when the price touches the lower envelope, and sell when the price touches the upper envelope  Question 27 1 / 1 pts Which strategy uses statistical methods to predict the mean price level and identify deviations? Volume-Weighted Average Price (VWAP) Reversion Envelope Channels ATR Channels Correct! Regression to the Mean  https://canvas.uchicago.edu/courses/58420/quizzes/128309 8/9 11/28/24, 1:54 PM assignmentW4b Event Study Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Question 28 1 / 1 pts What is an example of Regression to the Mean? Correct! Buy when the price deviates significantly below the predicted mean, and sell when the price deviates significantly above the predicted mean Buy when the price touches the lower ATR channel, and sell when the price touches the upper ATR channel Buy when the z-score of the price is below -2 (indicating oversold conditions), and sell when the z-score is above 2 (indicating overbought conditions) Buy when the price is significantly below the VWAP, and sell when the price is significantly above the VWAP  Question 29 1 / 1 pts Which strategy uses various oscillators like the Ultimate Oscillator, Williams %R, etc., to identify overbought or oversold conditions? Volume-Weighted Average Price (VWAP) Reversion Envelope Channels ATR Channels Correct! Oscillator-Based Mean Reversion  Question 30 1 / 1 pts What is an example of Oscillator-Based Mean Reversion? Correct! Buy when the oscillator indicates oversold conditions, and sell when it indicates overbought conditions Buy when the price deviates significantly below the predicted mean, and sell when the price deviates significantly above the predicted mean Buy when the price touches the lower ATR channel, and sell when the price touches the upper ATR channel Buy when the z-score of the price is below -2 (indicating oversold conditions), and sell when the z-score is above 2 (indicating overbought conditions) Quiz Score: 29 out of 30 https://canvas.uchicago.edu/courses/58420/quizzes/128309 9/9 11/28/24, 1:55 PM assignmentW4a Momentum Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python assignmentW4a Momentum Strategies Due Oct 5 at 11:59pm Points 32 Questions 32 Time Limit None Score for this survey: 32 out of 32 Submitted Oct 4 at 5:06pm This attempt took 5,468 minutes.  Question 1 1 / 1 pts Which strategy uses the crossing of short-term and long-term moving averages to signal buy or sell opportunities? You Answered Simple Moving Average (SMA) Crossover Exponential Moving Average (EMA) Crossover Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD)  Question 2 1 / 1 pts What is an example of Simple Moving Average (SMA) Crossover? You Answered Buy when the 50-day SMA crosses above the 200-day SMA, and sell when the 50-day SMA crosses below the 200-day SMA Buy when the 12-day EMA crosses above the 26-day EMA, and sell when the 12-day EMA crosses below the 26-day EMA Buy when the RSI crosses above 30, and sell when the RSI crosses below 70 Buy when the MACD line crosses above the signal line, and sell when the MACD line crosses below the signal line  Question 3 1 / 1 pts Which strategy is similar to SMA crossover but gives more weight to recent prices? Simple Moving Average (SMA) Crossover You Answered Exponential Moving Average (EMA) Crossover https://canvas.uchicago.edu/courses/58420/quizzes/128308 1/9 11/28/24, 1:55 PM assignmentW4a Momentum Strategies: FINM 32500 2,1 (Autumn 2024) Computing for Finance in Python Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD)  Question 4 1 / 1 pts What is an example of Exponential Moving Average (EMA) Crossover? Buy when the 50-day SMA crosses above the 200-day SMA, and sell when the 50-day SMA crosses below the 200-day SMA You Answered Buy when the 12-day EMA crosses above the 26-day EMA, and sell when the 12-day EMA crosses below the 26-day EMA Buy when the RSI crosses above 30, and sell when the RSI crosses below 70 Buy when the MACD line crosses above the signal line, and sell when the MACD line crosses below the signal line  Question 5 1 / 1 pts Which strategy measures the magnitude of recent price changes to evaluate overbought or oversold conditions? Simple Moving Average (SMA) Crossover Exponential Moving Average (EMA) Crossover You Answered Relative Strength Index (RSI) Moving Average Convergence Divergence (MACD)  Question 6 1 / 1 pts What is an example of Relative Strength Index (RSI)? You Answered Buy when the RSI crosses above 30, and sell when the RSI cro

Use Quizgecko on...
Browser
Browser