Coding Quiz Zone
Open in Telegram
β¨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!
Show more1 546
Subscribers
No data24 hours
-57 days
-630 days
Posts Archive
1 546
Which of the following HTML
tag is used to create an unordered list?
1 546
Which of the following tag is used for inserting the largest heading in HTML?
1 546
Which of the following is not a difference between HTML and XHTML?
1 546
Which of the following is used to read an HTML page and render it?
1 546
Which of the following HTML element is used for canvas graphics?
1 546
The HTML element used to enter a scrolling area of text is ________.
1 546
10. Find the output of following code
def reverse_string(s):
return s[::-1]
# Example usage
input_string = "Hello, World!"
result = reverse_string(input_string)
print("Reversed string:", result)1 546
10.Find the output of the following code
if n in memo:
return memo[n]
if n <= 1:
return n
memo[n] = fibonacci(n - 1, memo) + fibonacci(n - 2, memo)
return memo[n]
# Calculate and print the 10th Fibonacci number
result = fibonacci(10)
print("Fibonacci of 10:", result)1 546
9. The following code is meant to sort a list. What will be the output?
Β
Β Β my_list = [1, 2, 3, 4] Β Β my_list.sort(key=lambda x: -x) Β Β print(my_list) Β Β
1 546
8. What will be the output of this code if executed?
Β
Β Β def add(x, y): Β Β Β Β Β Β return x + y Β Β print(add('2', '3')) Β Β
1 546
7. What will be the result of executing the following code?
Β
Β Β def outer_function(): Β Β Β Β Β Β def inner_function(): Β Β Β Β Β Β Β Β Β Β return "Inner" Β Β Β Β Β Β return inner_function() Β Β print(outer_function()) Β Β
1 546
5. What will be the output of the following code?
Β
Β Β a = {1, 2, 3} Β Β b = {3, 4, 5} Β Β print(a & b) Β Β
