equal
deleted
inserted
replaced
|
1 <questionbank> |
|
2 <day1quiz1> |
|
3 |
|
4 <question> |
|
5 <description> |
|
6 How will you set the x and y axis limits so that the region of interest is in the rectangle $(0, -1.5)$ (left bottom coordinate) and $(2\pi, 1.5)$ (right top coordinate)? |
|
7 </description> |
|
8 <time_limit> |
|
9 30 |
|
10 </time_limit> |
|
11 <expected_answer> |
|
12 xlim\( 0 , 2 \* pi \) [;,\n+] ylim\( -1.5 , 1.5\) |
|
13 </expected_answer> |
|
14 </question> |
|
15 |
|
16 <question> |
|
17 <description> |
|
18 If a = [1, 2, 5, 9] then what is the value of a[0:-1]? |
|
19 </description> |
|
20 <time_limit> |
|
21 30 |
|
22 </time_limit> |
|
23 <expected_answer> |
|
24 \[ 1 , 2 , 5 \] |
|
25 </expected_answer> |
|
26 </question> |
|
27 |
|
28 <question> |
|
29 <description> |
|
30 A sample line from a Comma Separated Values (CSV) file: |
|
31 line = "Rossum, Guido, 42, 56, 34, 54" |
|
32 What code would you use to separate the line into fields? |
|
33 </description> |
|
34 <time_limit> |
|
35 30 |
|
36 </time_limit> |
|
37 <expected_answer> |
|
38 (line\.split\( ([",']) , \2 \)) |
|
39 </expected_answer> |
|
40 </question> |
|
41 |
|
42 <question> |
|
43 <description> |
|
44 If a = [1, 2, 5, 9] how do you find the length of this list? |
|
45 </description> |
|
46 <time_limit> |
|
47 30 |
|
48 </time_limit> |
|
49 <expected_answer> |
|
50 len\( a \) |
|
51 </expected_answer> |
|
52 </question> |
|
53 |
|
54 </day1quiz1> |
|
55 |
|
56 <day1quiz2> |
|
57 <question> |
|
58 <description> |
|
59 What is the maximum number that can be represented natively in Python. |
|
60 </description> |
|
61 <time_limit> |
|
62 30 |
|
63 </time_limit> |
|
64 <options> |
|
65 Infinite |
|
66 2**32 |
|
67 </options> |
|
68 <expected_answer> |
|
69 1 |
|
70 </expected_answer> |
|
71 </question> |
|
72 </day1quiz2> |
|
73 |
|
74 </questionbank> |