Search Header Logo
VannKit Python: Comments (lesson 1)

VannKit Python: Comments (lesson 1)

Assessment

Presentation

Computers

4th Grade - University

Easy

Created by

Fabian Manning

Used 3+ times

FREE Resource

4 Slides • 7 Questions

1

​Comments

Comments are statements which you want the computer to ignore.​​

Note:

The computer reads a program line by line​. So when it reaches a line starting with a comment, it will skip that line.

Some text here about the topic of discussion

2

​Comments

​Comments are identified two ways:

1) Using the hash symbol............... #

2) Using three single quotes before and after the string......

'''...''' (three single quotations) or

"""...""" (three double quotations)

Some text here about the topic of discussion

3

​Comments: Using the hash symbol............... #

U

Some text here about the topic of discussion

media

4

​Comments:

Using three single quotes before and after the string...... ''' '''

Some text here about the topic of discussion

media

5

Multiple Choice

Comments are identified using

1

#

2

Hash

3

''' '''

4

three single quotes

5

All of the above

6

Multiple Choice

When the computer is reading programe, when it reaches a line with a comment symbol, what does it do?

1

Print the comment information

2

Ignore the comment line and go to the next line

3

It does nothing

4

It starts over

7

Multiple Choice

How do you insert COMMENTS in Python code?

1

/*This is a comment*/

2

//This is a comment

3

#This is a comment

8

Multiple Choice

a # in Python means the user is trying to...

1

hashtag

2

ratio

3

comment

4

tic-tac-toe

9

Multiple Select

How To Write Comment on Python ?

1

Comments starts with a # for one line

2

Start and End with (triple quotes) for multiline Comments

3

Comments starts with a // for one line

4

Comments starts with a ' for one line

10

Multiple Choice

Question image

This is Sample of ?

1

Multi Line Comment

2

Single Line Comment

3

Number Value

4

String Value

11

Multiple Choice

What symbol do you use to make a comment in Python?
1
@
2
¬
3
;
4
#

​Comments

Comments are statements which you want the computer to ignore.​​

Note:

The computer reads a program line by line​. So when it reaches a line starting with a comment, it will skip that line.

Some text here about the topic of discussion

Show answer

Auto Play

Slide 1 / 11

SLIDE