p2 Flashcards

1
Q

In ______ Modes, The Python syntax defines a set of rules that are used to _______ while _____ Program.

A
  • Programming
  • create Python statements
  • writing a Python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In _____ Modes, The Python Programming Language Syntax has many similarities to ___, ___, and ___ Programming Languages.

A
  • Programming
  • Perl, C, and Java
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In _____ Mode, If you have installed Python on your computer (___, ____, ____), you can invoke a Python interpreter using the _____.

A
  • Interactive
  • Windows, Linux, macOS
  • command line
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In _____ mode, Just type the command ____, and the ____ will show as follows.

A
  • Interactive
  • python
  • interpreter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In ______ Mode, If you try to type in a Python syntax, pressing ____ will automatically run it like a command.

A
  • Interactive
  • Enter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In ____ Mode, You may write your script on any notepad but remember to save the file with a _____” extension

A
  • Script
  • “.py”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In ____ Mode, In ____, you can do this by____ - clicking the empty space in the folder while ____ the Right- Shift key.

A
  • Script
  • Windows
  • right
  • holding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When the terminal/command prompt opens, type in python _____

A

filename.py.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An identifier is a name used to identify a _____, _____, _______, _____, or other object.

A
  • Variable, Function, Class, Module
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

An identifier starts with a letter ______ or an _____ followed by zero or more letters, underscores and digits (0 to 9).

A
  • A to Z / a to z
  • underscore (_)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Python does not allow punctuation characters such as ____, ____, ____ within identifiers.

A
  • @
  • $
  • %
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Class names start with an _____ letter. All other identifiers start with a _____ letter.

A
  • uppercase
  • lowercase
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Python accepts ____, ____, ____ quotes to denote string literals, as long as the same type of quote starts and ends the string.

A

single (‘), double (“) and triple (‘’’ or “””)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Python comments are very much similar to the comments available in ___, ___, ____ Programming languages.

A

PHP, BASH and Perl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The _____ allows multiple statements on the single line.

A

semicolon ( ; )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly