Hong Kong Baptist University, Hong Kong
BUSI 1007
Which of the following functions is a built-in function in python? (A) factorial() (B) seed() (C) print() (D) sqrt() 2. Which type of Programming does Python support? (A) object-oriented programming (B) structured programming (C) functional programming (D) all of the mentioned 3. Which of the following is an invalid statement?
...[Show More]
Which of the following functions is a built-in function in python? (A) factorial() (B) seed() (C) print() (D) sqrt() 2. Which type of Programming does Python support? (A) object-oriented programming (B) structured programming (C) functional programming (D) all of the mentioned 3. Which of the following is an invalid statement? (A) xy = 1,000,000 (B) x, y = 1000, 2000 (C) x y = 1000 2000 (D) x_y = 1,000,000 4. What will be the output of the following Python statement? (A) ab (B) bc (C) cd (D) dc 5. What will be the output of the following Python statement? (A) error (B) hello (C) good (D) bad if (9 < 0) and (0 < -9): print("hello") elif (9 > 0) or False: print("good") else: print("bad") x = "ab" y = "cd" z = x+y print(z[1:3])
[Show Less]