Python Exam 2023 with 100% correct answers
Which of the following is correct about Python? a. Python is a high-level, interpreted, interactive and object-oriented scripting language. b. Python is designed to be highly readable. c. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. d. All of the above d. All of the above. Is Python case sensitive when dealing with identifiers? a. yes b. no c. it depends on context d. it depends on data type a. yes Which of the following is an invalid variable? a. my_string b. __a c. 1st_string d. foo_24 c. 1st_string All keywords in Python are in a. lower case b. UPPER CASE c. Capitalized d. None of the above d. None of the above ______________(str) is the function to run in the shell to find out details about how to use str() and the type of data it accepts and returns. help Which of the following is an invalid statement? a. abc = 1,000,000 b. a b c = c. a,b,c = 1, 2, 3 d. a_b_c = 4,000,000 b. a b c =
Document information
- Uploaded on
- July 28, 2023
- Number of pages
- 7
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers