Quizzes Start Python Beginners Quiz Python Beginners Quiz 1 / 14 Let's start with the world famous "Hello, World!".What is the correct syntax to print the above string? print("Hello, World!") print(Hello, World!) print"Hello, World!" 2 / 14 How do you assign a variable? num(15) num = "15" num = 15 3 / 14 How to import a module? importing modulename modulename import import modulename 4 / 14 How do you create a comment in Python? print("Comment") # Comment "" Comment 5 / 14 Which one is the correct way to create a list? list = ("data 1", "data 2", "data 3") list = {data 1, data 2, data 3} list = ["data 1", "data 2", "data 3"] 6 / 14 How do you check data type? checktype(data) check(data) type(data) 7 / 14 What will the following produce?x = 5y = 1 if x > y: print(True) False True None 8 / 14 Complete the following "for" loop (replace the question mark with the correct answer):for i ? list(): print(i) of to in 9 / 14 Choose the correct answer about "while" loops. loop num < 4: while num < 4: while num < 4 10 / 14 How do you create an input in Python? age = input("What is your age?: ") age = inputWhat is your age?) age = input"What is your age?: " 11 / 14 How do you call a function? call function_name() def function_name(): function_name() 12 / 14 You create a variable "x" and open a file (named "file.txt"):x = open("file.txt")How do you close the file? close x() x.close() close(x) 13 / 14 What error will the following output?print(b) ZeroDivisionError TypeError NameError 14 / 14 How do you create a class in Python? class (Car): class Car: class Car Your score isThe average score is 67% 0% Restart quiz by AICorr Team We are proud to offer our extensive knowledge to you, for free. The AICorr Team puts a lot of effort in researching, testing, and writing the content within the platform (aicorr.com). We hope that you learn and progress forward. <span class="nav-subtitle screen-reader-text">Page</span> Previous PostSummary Statistics: What are Summary StatsNext PostData Structures: Fundamental Building Blocks in Computer Science Related Posts Python File Handling Quiz Python Sets Quiz Python Tuples Quiz