Froggy Jumps Basic Python Quiz ChallengeVersion en ligne Test your knowledge of Basic Python concepts with this fun quiz! par ROSSY 1 What is the correct syntax to output 'Hello, World!' in Python? a echo 'Hello, World!' b print('Hello, World!') c console.log('Hello, World!') 2 Which of the following is used to define a function in Python? a def b func c function 3 What data type is used to represent a sequence of characters in Python? a Integer b List c String 4 How do you create a list in Python? a my_list = () b my_list = {} c my_list = [] 5 Which keyword is used to create a loop in Python? a repeat b loop c for 6 What symbol is used for comments in Python? a # b -- c // 7 How do you start a conditional statement in Python? a if b when c case 8 What is the output of 2 ** 3 in Python? a 8 b 6 c 9 9 Which function is used to read input from the user in Python? a read() b input() c scan() 10 What is the correct way to import a module in Python? a require module_name b include module_name c import module_name 11 Output dari : print(3 * '5') a 15 b 555 c error 12 Tipe data apa yang dihasilkan oleh ekspresi berikut ini : x = 10 / 2 a int b float c real 13 Apa yang akan dihasilkan oleh pernyataan berikut ini : print("Hello"[1:4]) a Hel b Ell c Ello 14 Mana yang merupakan metode yang valid untuk menambahkan elemen ke dalam list? a list.append() b list.extend() c list.add() 15 set1 = {1, 2, 3} set2 = {3, 4, 5} Apa hasil dari operasi set1 & set2? a {1, 2, 3, 4, 5} b {1, 2, 4, 5} c {3} 16 Fungsi apa yang digunakan untuk melihat beberapa baris pertama dari DataFrame pada Pandas? a df.show() b df.head() c df.top()