Save
PLS
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Alfie Folland_SCH
Visit profile
Cards (102)
What do the <> symbols indicate in PLS?
They indicate where
values
need to be supplied
View source
What character indicates a comment in PLS?
#
View source
What are identifiers in PLS?
Sequences
of letters, digits, and underscores
View source
What is the first character of an identifier?
It must start with a
letter
View source
How are data types assigned to variables in PLS?
Explicitly
during declaration or
implicitly
during initialization
View source
What are the supported primitive data types in PLS?
integer
(int)
real
(float)
Boolean
(bool)
character
(str)
View source
What is the purpose of conversion in PLS?
To transform the
data types
of variable contents
View source
How are constants named in PLS?
In all
uppercase
characters
View source
What does combining declaration and initialization imply?
The
data type
is implied when a value is assigned
View source
What are structured data types in PLS?
Sequence
of items, each typed
Start with an index of
zero
View source
What is a string in PLS?
A
sequence
of
characters
View source
What is an array in PLS?
A sequence of
homogeneous
items
View source
What is a record in PLS?
A sequence of
heterogeneous
items
View source
How many dimensions does PLS support?
Two
dimensions
View source
What does PLS not support regarding data structures?
Ragged
data structures
View source
What are the arithmetic operators in PLS?
/ :
division
* : multiplication
** :
exponentiation
+ : addition
- : subtraction
// :
integer division
% :
modulus
View source
What are the relational operators in PLS?
== :
equal to
!= :
not equal to
> :
greater than
>= :
greater than or equal to
< :
less than
<= :
less than or equal to
View source
What are the logical/Boolean operators in PLS?
and
: both sides must be true
or : either side must be true
not : inverts the value
View source
What is the purpose of assignment in PLS?
To set or change the value of a
variable
View source
How is sequence structured in PLS?
Instructions come
one after the other
View source
What indicates blocking of code segments in PLS?
Indentation
and
subprogram calls
View source
What is the selection structure in PLS?
if <expression>: <command>
if <expression>: <command> else: <command>
if <expression>: <command> elif <expression>: <command> else: <command>
View source
What does the 'if' statement do in PLS?
Executes command if
expression
is true
View source
What is the purpose of 'elif' in PLS?
To check another
expression
if the first is false
View source
What does the 'else' statement
do
in
PLS
?
Executes command if previous expressions are false
View source
What is the repetition structure in PLS?
while
<condition>: <command>
for
<id> in <structure>: <command>
View source
What does the 'while' loop do in PLS?
Executes command while
condition
is true
View source
What does the 'for' loop do in PLS?
Executes command
for
each
element
in
structure
View source
What is a count-controlled loop in PLS?
Executes command a
fixed
number
of
times
View source
What does the 'range' function do in PLS?
Generates
a
list
of
numbers
View source
What are the types of subprograms in PLS?
Procedures
(with or without parameters)
Functions
(with or without parameters)
View source
What does the 'def' keyword indicate in PLS?
Defines a
procedure
or
function
View source
What does the 'return' statement do in PLS?
Returns a
value
from a
function
View source
What are the input and output methods in PLS?
print
(<item>): Displays item on screen
input(<prompt>): Returns user input
View source
What file operations are supported in PLS?
open
,
close
,
read
,
write
,
append
View source
How do you open a file for reading in PLS?
<
fileid
> = open(<
filename
>, "r")
View source
What does <fileid>.readlines() do in PLS?
Returns a
list
of
lines
from the
file
View source
What does <fileid>.readline() do in PLS?
Returns a
line
from the
file
View source
How do you open a file for writing in PLS?
<
fileid
> = open(<filename>, "w")
View source
How do you close a file in PLS?
<
fileid
>
.close()
View source
See all 102 cards
See similar decks
Edexcel GCSE Business
2657 cards
Edexcel GCSE History
1115 cards
Edexcel GCSE Biology
2635 cards
Edexcel GCSE French
2689 cards
Edexcel GCSE Physics
3171 cards
Edexcel GCSE Geography
1933 cards
Edexcel GCSE Spanish
1470 cards
Edexcel GCSE Economics
3802 cards
Edexcel GCSE Economics
3657 cards
Edexcel GCSE Sociology
1559 cards
Edexcel GCSE Mathematics
1622 cards
Edexcel GCSE English Language
465 cards
Edexcel GCSE English Literature
1422 cards
Edexcel GCSE Business Studies
2637 cards
Edexcel GCSE Chemistry
1615 cards
Edexcel GCSE Computer Science
2949 cards
GCSE Physical Education
4412 cards
AQA GCSE Physical Education
4119 cards
AQA GCSE Criminology
731 cards
GCSE Biology
4243 cards
WJEC GCSE Chemistry
2012 cards