TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3812
To review
16
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3812
To review
16
36 questions
Hard
8 votes2222 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
5 votes2224 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 votes2223 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 votes2220 runs0 comment
Hard
5 votes299 runs0 comment
Hard
4 votes2243 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 votes2224 runs1 comment
Write a Python code that will wait for 40 seconds.
Antoine Brennerat Dec 2, 2021
Hard
4 votes2222 runs0 comment
What is the output of the following Python code? ``` G = '123' print(G + 1) ```
Antoine Brennerat Dec 2, 2021
Hard
4 votes2208 runs0 comment
Python: Decorator that prevents the creation of an instance of a class
Antoine Brennerat Dec 2, 2021
Hard
4 votes1317 runs1 comment
Hard
4 votes495 runs0 comment
Hard
3 votes2197 runs2 comments
Hard
2 votes2259 runs0 comment
What is the output of the following code? ``` print("\u0041") ```
Antoine Brennerat Dec 2, 2021
Hard
2 votes2205 runs1 comment
Hard
1 vote2261 runs1 comment
Hard
1 vote2243 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 vote2232 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