Which aggregate function returns the number of non-NULL values in a column? SQL Data AnalystEasy Try Now
What is the output of the following? try: x = 1 / 0 except ZeroDivisionError: x = -1 finally: print(x) Python DeveloperMedium Try Now
What is the output of the following? “`python class MyContext: def __enter__(self): print(‘enter’) return self def __exit__(self, exc_type, exc_val, exc_tb): print(‘exit’) return True with MyContext(): print(‘inside’) raise ValueError(‘oops’) print(‘after’) “` Python DeveloperHard Try Now
What is the Python `match` statement (structural pattern matching, Python 3.10+) and how does it differ from a chain of `if/elif`? Python DeveloperHard Try Now
What is the output of the following? “`python gen = (x for x in range(10) if x % 3 == 0) result = list(gen) print(result) print(list(gen)) “` Python DeveloperHard Try Now
What is the output of the following? “`python from functools import partial def power(base, exp): return base ** exp square = partial(power, exp=2) cube = partial(power, exp=3) print(square(4), cube(3)) “` Python DeveloperHard Try Now