python fundamentals Flashcards

1
Q

2 modes for running python

A

interpreter mode
scripting

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

full form of html and dhtml

A

html- hypertext markup language
dhtml- dynamic markup language

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

what is dynamic hypertext markup language

A

an umbrella term for a collection of technologies used together in order to create an interactive or animated website.

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

difference between MLL and HLL

A

-machine level language is machine dependent
-a machine/computer can understand it
ex- machine language and assembly language

high-level language
-not machine dependent
-its closer to english therefore a user or a programmer can understand it easily.

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

what is data

A

a raw fact, observation, or an assumption
the quantities,characters or symbols on which operations are performed by a computer, which may be stored and transmitted in the form electrical signals and recorded on magnetic, optical or mechanical recording media

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

what is information

A

data which is processed, stored or transmitted on a computer

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

what are tokens

A

in a passage of text, individual words and punctuation marks are called tokens.
(smallest individual unit)

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

types of tokens in python

A

literals, operators, punctuators, keywords

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

difference between multiple and single string(s)

A

SINGLE
-basic strings
-one line
-u create them by using single or double quote

MULTIPLE
-multiple strings
-add a backlash at the end of a line to create multiple strings

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

comments #

A

they are used to explain python code

they’re placed at the end or the beginning of a line and python ignores it.

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

variables

A

-named memory locations
-containers which store values
-it is the basic unit of storage in a program

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

\r \t \v \ \n ' "

A

ASCII carriage return
ASCII horizontal tab
ASCII vertical tab
backlash
ASCII line feed (LF)
single quote
double quote

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

bool

A

its a data type which represents 1 of the 2 possible values
either false or true

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