TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3891
To review
26
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3891
To review
26
40 questions
Hard
8 votes2364 runs2 comments
Why is the output of the following code undefined? ``` def f(n): return n + 1 f(n) ```
Antoine Brennerat Dec 2, 2021
Hard
7 votes2358 runs0 comment
Hard
6 votes2366 runs2 comments
Write a Python program to open a file in binary mode and write a string to it.
Antoine Brennerat Dec 2, 2021
Hard
5 votes2360 runs0 comment
In Python, what is the output of the following code? `valueA = 10; valueB = 10; valueA is valueB`
Antoine Brennerat Dec 2, 2021
Hard
5 votes2349 runs0 comment
Python: Decorator that prevents the creation of an instance of a class
Antoine Brennerat Dec 2, 2021
Hard
5 votes2338 runs1 comment
Hard
5 votes314 runs0 comment
Hard
4 votes2387 runs1 comment
Write a Python function that returns a list of the first n numbers of the Fibonacci sequence.
Antoine Brennerat Dec 2, 2021
Hard
4 votes2367 runs0 comment
What is the output of the following Python code? ``` G = '123' print(G + 1) ```
Antoine Brennerat Dec 2, 2021
Hard
4 votes2365 runs1 comment
Write a Python code that will wait for 40 seconds.
Antoine Brennerat Dec 2, 2021
Hard
4 votes2335 runs2 comments
Hard
4 votes1347 runs1 comment
Hard
4 votes531 runs0 comment
Hard
2 votes2399 runs0 comment
What is the output of the following code? ``` print("\u0041") ```
Antoine Brennerat Dec 2, 2021
Hard
1 vote2400 runs1 comment
Hard
1 vote2390 runs1 comment
What is the value of valueA after the following code is executed? ``` valueA = 10 valueB = 20 valueA = valueB ```
Antoine Brennerat Dec 2, 2021
Hard
1 vote2371 runs2 comments
Write a Python code that returns the first element of a list if the list is not empty, otherwise return None.
Antoine Brennerat Dec 2, 2021