quiz حل الأسئلة الجامعية manage_search الأرشيف

تم الحل ✓
categoryبرمجة وتطوير البرمجيات schoolبكالوريوس event_available2026-07-14

السؤال

Transcribed Image Text:

What is the output of the following code? dict 1={} dict 1["x"]=[5] print (dict_1["x"][5]) a) 5 b) [5] c) 0 d) The code generates an error What is the output of the following code? list 1=[] list 1.append([1, (2, 3), 4]) print (list_1 [0] [1] [1]) a) The code generates an error b) (2, 3) c) 3 d) 2 What is the output of the following code? string = 'chegg' for c in string[::-1]: print (c, end = "") == string = string. upper () a) CHEGG b) ggehc c) gGEHC d) g What is the output of the following code? print (10**2//-3) a) -20 b) 33 c) -33 d) -34 What is the output of the following code? print (10**2//-3) a) -20 b) 33 c) -33 d) -34

check_circle الجواب — حل مفصل خطوة بخطوة

hourglass_top