Test Your Knowledge Test your Python skills with the quiz below. Question 1 What is the output of print(2 ** 3)? 6 8 9 5 Question 2 Which of the following are valid dictionary methods in Python? (Select all that apply) keys() values() items() elements() Question 3 Which of the following are valid Python code? (Select all that apply) a = 25 b = 30 print(a + b) print("Hello World!") printf("Hello World!") println("Hello World!") Question 4 What is the error in the following Python code? a = 10 b = "5" print(a + b) A SyntaxError, because the code is improperly formatted. A TypeError, because you cannot add an integer and a string. No error, it will print 15. No error, it will print 105. Question 5 Which query correctly handles potential NULL values in string concatenation? SELECT first_name + ' ' + last_name AS full_name FROM guest WHERE guest_id IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); SELECT COALESCE(first_name, 'Unknown') + ' ' + COALESCE(last_name, 'Guest') AS full_name FROM guest WHERE registration_date >= '2023-01-01' AND status = 'active'; SELECT ISNULL(first_name + ' ' + last_name, 'Unknown Guest') AS full_name FROM guest WHERE email IS NOT NULL AND phone_number IS NOT NULL; SELECT CONCAT(IFNULL(first_name, ''), ' ', IFNULL(middle_name, ''), ' ', IFNULL(last_name, '')) AS full_name FROM guest_table WHERE created_at > NOWD() - INTERVAL 30 DAY; Question 6 What is the derivative of \[ f(x) = x^2 + 3x + 5 \] \(f'(x) = x + 3\) \(f'(x) = 2x + 3\) \(f'(x) = 2x^2 + 3x\) \(f'(x) = x^2 + 3\) Question 7 Which of the following integrals are correctly evaluated? (Select all that apply) \[\int_0^1 x^2 dx = \frac{1}{3}\] \[\int_0^{\pi} \sin(x) dx = 0\] \[\int_1^e \frac{1}{x} dx = 1\] \[\int_{-1}^{1} x dx = 1\] Submit Quiz