Module 1 Flashcards

(58 cards)

1
Q

What are the strengths of Python?

A
  • Ease of use
  • Readable
  • Complete
  • Cross-platform
  • Free
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This strength of Python talks about how Python uses familiar constructs like loops and arrays from other coding languages.

A

Ease of Use

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

This strength of Python talks about how Python is easier to debug, maintain, and modify.

A

Readable

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

This strength of Python talks about how Python’s standard library comes with modules.

A

Complete

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

This strength of Python talks about how Python works on Windows, Mac, Linux, UNIX, and other platforms.

A

Cross-platform

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

This strength of Python talks about how Python was developed under an open-source model.

A

Free

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

It is a browser-based application that provides an environment for running and testing Python codes.

A

Jupyter

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

True or False
Jupyter is ideal for documentation purposes which make both ease of sharing and code replicability possible.

A

True

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

What happens when you launch Jupyter?

A
  • opens a browser window
  • runs a command line interface (Jupyter Notebook server)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where can users access Jupyter Notebook?

A

localhost

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

This URL indicates the user’s connection to the Jupyter Notebook Server.

A

localhost:8888

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

It is a component of Jupyter which is accessible via web browser.

A

Dashboard

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

The dashboard displays files and folders located where?

A

home directory

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

It is a place to write in code or text.

A

Cell

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

A cell is indicated by a ___________, which is enclosed in a box.

A

cell block

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

What are the two types of a cell?

A
  • Code
  • Markdown
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

This cell is intended for typing in and running python codes.

A

Code Cell

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

This cell allows the user to create formatted text.

A

Markdown Cell

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

In a markdown cell, what is used to create a header for a section?

A

singe hash (#)

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

In a markdown cell, what is used to create a header for a subsection?

A

double hash (##)

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

In a markdown cell, what is used to create bold texts?

A

encapsulating double asterisks (text)

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

In a markdown cell, what is used to create italicized texts?

A

encapsulating single asterisks (text)

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

In a markdown cell, what is used to create highlighted texts?

A

encapsulating backticks (text)

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

What are the two modes in Jupyter?

25
This mode of Jupyter is indicated by a green line in the leftmost par of an active cell.
Edit
26
This mode of Jupyter is indicated by a blue line in the leftmost par of an active cell.
Command
27
What is the shortcut keys to run a code in a Jupyter cell?
Shift + Enter
28
This is the number that Jupyter assigns to remember which codes are executed first.
Execution Numbers
29
True or False Execution numbers are found in the leftmost part of the executed code cells.
False - found in the rightmost part
30
This is the basic output command of Python.
print()
31
True or False print() can't join plain text with values of numerical expression.
False - print("1 + 1 =", 1+1) is possible
32
What are the basic numerical operations in Python?
- Addition (+) - Subtraction (-) - Multiplication (*) - Division (/) - Exponentiation (**) - Modulo (%) - Integer Division (//)
33
It is an external python file that can be imported to a current python file.
Module | import module_name (import math)
34
True or False Modules are where functions and other resources are coded in.
True
35
True or False Modules allows the user to access a collection of scripts.
False - allows to access a collection of functions
36
What is the syntax of math functions?
math.function_name
37
True or False Python can be used to compare values.
True, Python can use Logical Operators
38
The keywords ____ and ____ when dealing with multiple comparisons.
and, or
39
The keyword ____ is used to denote a negation of a comparison result.
not
40
What command allows the user to see all the variables in the current Jupyter notebook?
%whos
41
What are the datatypes available in Python?
- Numeric (int, float, complex) - String (str) - Sequence (list, tuple, range) - Mapping (dict) - Boolean (bool) - Set (set, frozeenset)
42
What data type are int, float, and complex?
Numeric
43
What data type is str?
String
44
What data type are list, tuple, and range?
Sequence
45
What data type is dict?
Mapping
46
What data type is bool?
Boolean
47
What data type are set and frozeenset?
Set
48
This data type holds numeric values.
Numeric
49
This data type holds a sequence of characters.
String
50
This data type holds a collection of items.
Sequence
51
This data type holds data in key-value pair form.
Mapping
52
This data type holds either true or false.
Boolean
53
This data type holds a collection of unique items.
Set
54
This command is used to determine the type of data stored in a variable.
type()
55
This command is used to take user input.
input()
56
This command converts a value to an integer.
int()
57
This command converts a value to a float.
float()
58
This command rounds a value to a specified precision.
round()