What is a correct syntax to output 'Hello World' in Python?, print('Hello World'), echo 'Hello World', printf('Hello World'), cout << 'Hello World', System.out.println('Hello World'), Console.WriteLine('Hello World'), How do you insert COMMENTS in Python code?, // This is a comment, # This is a comment, <!-- This is a comment -->, /* This is a comment */, REM This is a comment, COMMENT This is a comment, Which of the following is a mutable data type in Python?, Tuple, List, String, Integer, Float, Boolean, How do you start a function in Python?, function myFunction(), def myFunction(), create myFunction(), start myFunction(), begin myFunction(), init myFunction(), Which keyword is used for function in Python?, func, define, def, function, declare, create, How do you create a variable with the numeric value 5?, x = 5, int x = 5, x := 5, x <- 5, x == 5, x = 5.0, Which operator is used to multiply numbers in Python?, *, x, ^, %, &, @, Which of the following is a valid variable name in Python?, 1variable, variable_1, variable-1, variable 1, variable.one, variable#1, What is the output of print(2 ** 3)?, 6, 8, 9, 5, 4, 10, Which method can be used to remove any whitespace from both ends of a string?, strip(), trim(), cut(), remove(), delete(), erase(), Which of the following is used to define a block of code in Python?, {}, (), [], Indentation, <>, //, What is the correct file extension for Python files?, .py, .python, .pt, .pyt, .pyth, .p, How do you create a dictionary in Python?, {key: value}, [key: value], (key: value), <key: value>, key: value, key = value, Which of the following is not a Python data type?, Set, Array, List, Tuple, Dictionary, String, Which function is used to get the length of a list in Python?, length(), len(), size(), count(), measure(), getLength(), What is the output of print(10 // 3)?, 3.33, 3, 3.0, 4, 2, 2.5, Which keyword is used to create a class in Python?, class, Class, define, create, object, new, How do you create a set in Python?, set(), {}, [], (), <>, set{}, What is the correct syntax to import a module named 'math'?, import math, include math, require math, use math, load math, attach math, Which of the following is used to handle exceptions in Python?, try/except, catch/throw, handle/error, try/catch, begin/rescue, error/handle.
0%
Python Coding Quiz
Chia sẻ
Chia sẻ
Chia sẻ
bởi
Tylerl27
Chỉnh sửa nội dung
In
Nhúng
Nhiều hơn
Tập
Bảng xếp hạng
Hiển thị thêm
Ẩn bớt
Bảng xếp hạng này hiện đang ở chế độ riêng tư. Nhấp
Chia sẻ
để công khai bảng xếp hạng này.
Chủ sở hữu tài nguyên đã vô hiệu hóa bảng xếp hạng này.
Bảng xếp hạng này bị vô hiệu hóa vì các lựa chọn của bạn khác với của chủ sở hữu tài nguyên.
Đưa các lựa chọn trở về trạng thái ban đầu
Chương trình đố vui
là một mẫu kết thúc mở. Mẫu này không tạo điểm số cho bảng xếp hạng.
Yêu cầu đăng nhập
Phong cách trực quan
Phông chữ
Yêu cầu đăng ký
Tùy chọn
AI Enhanced: Hoạt động này chứa nội dung do AI tạo.
Tìm hiểu thêm.
Chuyển đổi mẫu
Hiển thị tất cả
Nhiều định dạng khác sẽ xuất hiện khi bạn phát hoạt động.
)
Mở kết quả
Sao chép liên kết
Mã QR
Xóa
Bạn có muốn khôi phục tự động lưu:
không?