Skip to content

Commit 1e33d2c

Browse files
author
Randall Nagy
committed
1 parent 5025990 commit 1e33d2c

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

CardGame/QuestCore/2022_12_17_DrawnText.data

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,3 +1272,45 @@ An Expression may have many Statements, but a Statement cannot have many Express
12721272

12731273
(1) True
12741274
(2) False
1275+
*****
1276+
KA3047: Expressions -v- Statements
1277+
An Expression may have many Statements, but a Statement cannot have many Statements
1278+
1279+
(1) True
1280+
(2) False
1281+
*****
1282+
KA3048: Compile
1283+
Pythons built-in compile()
1284+
1285+
(1) 'eval', 'exec', 'single'
1286+
(2) 'debug', 'eval', 'single'
1287+
(3) 'compile', 'run', 'debug'
1288+
(4) 'secure', 'lock', 'unlock'
1289+
(5) Compiles & executes code
1290+
*****
1291+
KA3049: Compile
1292+
Pythons built-in compile()
1293+
1294+
(1) Returns a 'code class'
1295+
(2) Realized using exec()
1296+
(3) Realized using eval()
1297+
(4) Two of the above
1298+
(5) All of the above
1299+
*****
1300+
KA3050: Compile
1301+
a=4;eval(compile('a+=5','','exec'))
1302+
1303+
(1) a == 9
1304+
(2) a == 4
1305+
(3) SyntaxError
1306+
(4) Two of the above
1307+
(5) None of the above
1308+
*****
1309+
KA3051: Compile
1310+
a=4;eval(compile('a+=5','','eval'))
1311+
1312+
(1) a == 9
1313+
(2) a == 4
1314+
(3) SyntaxError
1315+
(4) Two of the above
1316+
(5) None of the above
Loading

CardGame/QuestCore/KA3048-Compile.png

594 KB
Loading

CardGame/QuestCore/KA3049-Compile.png

593 KB
Loading

CardGame/QuestCore/KA3050-Compile.png

591 KB
Loading

CardGame/QuestCore/KA3051-Compile.png

591 KB
Loading

0 commit comments

Comments
 (0)