Python Quiz Take the test 1) What is the output? print(type([]) is list) True False 2) What will this print? x = [1,2,3] y = x y.append(4) print(x) [1, 2, 3, 4] [1, 2, 3] 3) Which creates a set with one element? {1} {} 4) What does this output? def f(a, b=10): return a + b print(f(5)) 15 10 5) Correct exception handling? try / except try / catch 6) Is Python dynamically typed? Yes No 7) What is the output? print(bool("")) False True 8) Which is immutable? tuple list 9) What does len({1,2,2,3}) return? 3 4 10) Output? print(3 * "a") aaa Error 11) Which keyword creates a function? def func 12) What is returned by print()? None 0 13) Which creates a dictionary? {"a":1} {"a","b"} 14) Output? print(type(5)) int number 15) Which is a Python boolean? True TRUE 16) What is the output? print(bool(0)) False True 17) Which operator checks equality? == = 18) What does this return? len("Python") 6 5 19) Which is a valid list? [1, 2, 3] (1, 2, 3) 20) Output? print(type(True)) bool Boolean 21) Which keyword exits a loop? break stop 22) What does this print? print(10 // 3) 3 3.33 23) Which is a tuple? (1, 2) [1, 2] 24) Output? print(bool(" ")) True False 25) Which creates an empty list? [] () 26) What is the output? print(type(None)) NoneType null 27) Which is a Python comment? # comment // comment 28) What does this return? type("3") str int 29) Which is NOT a Python data type? char str 30) Output? print(bool([])) False True Submit Quiz Views: 4 Prev Post Υπολογισμός νεκρού σημείου λειτουργίας με εισαγωγή τιμής πώλησης, μεταβλητού κόστους, σταθερών εξόδων και προαιρετικά ποσότητας πωλήσεων January 18, 2026 Related Posts - Σχετικά Άρθρα Υπολογισμός νεκρού σημείου λειτουργίας με εισαγωγή τιμής πώλησης, μεταβλητού κόστους, σταθερών εξόδων και προαιρετικά ποσότητας πωλήσεων January 18, 2026 15 Multiple Choice Questions and Answers about Financial Analysis January 17, 2026 15 Ερωτήσεις Πολλαπλής Επιλογής για Ανάλυση Ισολογισμού, Αποτελεσμάτων Χρήσεως & Ταμειακών Ροών January 17, 2026 Comments are closed.
Υπολογισμός νεκρού σημείου λειτουργίας με εισαγωγή τιμής πώλησης, μεταβλητού κόστους, σταθερών εξόδων και προαιρετικά ποσότητας πωλήσεων January 18, 2026
15 Ερωτήσεις Πολλαπλής Επιλογής για Ανάλυση Ισολογισμού, Αποτελεσμάτων Χρήσεως & Ταμειακών Ροών January 17, 2026
Comments are closed.