National Youth Software Programming (Python) Grade Examination Level 1 Exam Questions December 2022 - Continuously Updated.....

1. Regarding the comments on the Python language, which of the following options is wrong? ( )

A.Python language has two comment methods: single-line comments and multi-line comments

B. Single-line comments in Python language start with #

C.Python multi-line comments use ### as a mark

D. Comments are used to explain the principle or purpose of the code
Correct answer: C

2. Which graph is most likely to be drawn after the following code is executed? ( )

import turtle
turtle.forward(200)
turtle.left(144)
turtle.forward(200)
turtle.left(144)
turtle.forward(200)
turtle.left(144)
turtle.forward(200)
turtle.left(144)
turtle.forward(200)
turtle.hideturtle()

A.insert image description here

B.insert image description here

C.insert image description here

D.

Guess you like

Origin blog.csdn.net/owbc_/article/details/128806628