Pertanyaan 1Pilihan gandaWhat is the correct way to define a variable in Python?var x = 5x := 5x = 5int x = 5
Pertanyaan 2Pilihan gandaWhich function is used to get input from a user in Python?input()scanf()get()read()
Pertanyaan 3Pilihan gandaWhat is the output of the following code: print('Hello, World!')?Hello, WorldHello, World!Syntax ErrorHello World!
Pertanyaan 4Pilihan gandaWhich of the following is a conditional statement in Python?forwhileifdefine
Pertanyaan 5Pilihan gandaWhich loop is used for iterating over a sequence (such as a list or string)?forwhiledo-whileforeach
Pertanyaan 6Pilihan gandaWhat is the purpose of a function in Python?To store dataTo perform a specific taskTo write commentsTo output data
Pertanyaan 7Pilihan gandaWhat is the syntax to import a module in Python?#include <module>import moduleusing modulemodule import
Pertanyaan 9Pilihan gandaWhat is a package in Python?A collection of modulesA single functionA variableA library
Pertanyaan 10Pilihan gandaWhat is the correct syntax to define a function with two parameters in Python?def function(param1 param2):def function(param1, param2):function(param1, param2):def function[]:(param1, param2)