You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6f3b153
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: source/ch_2_whylearnjava.ptx
+91Lines changed: 91 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -97,4 +97,95 @@
97
97
98
98
99
99
</section>
100
+
<sectionxml:id="learn_languages_summary">
101
+
<title>Summary & Reading Questions</title>
102
+
<p><ollabel="1">
103
+
<li>
104
+
<p>Learning multiple programming languages helps programmers adapt to different styles and environments.</p>
105
+
</li>
106
+
<li>
107
+
<p>Python is a dynamic scripting language that is beginner-friendly, but it is less strict with types and generally slower than compiled languages.</p>
108
+
</li>
109
+
<li>
110
+
<p>Languages like Java and C++ are statically typed and offer better performance and maintainability for large-scale projects.</p>
111
+
</li>
112
+
<li>
113
+
<p>Java has a simpler syntax than C++ and includes automatic garbage collection, which reduces the complexity of memory management.</p>
114
+
</li>
115
+
<li>
116
+
<p>Java’s extensive standard library enables the development of sophisticated programs without relying on external dependencies.</p>
117
+
</li>
118
+
</ol></p>
119
+
<reading-questionsxml:id="rqs-learnlang2">
120
+
<exerciselabel="summary-lang-1">
121
+
<statement>
122
+
<p>Which of the following best describes Python as a programming language?</p>
123
+
</statement>
124
+
<choices>
125
+
<choice>
126
+
<statement><p>Statically typed and high-performance</p></statement>
127
+
<feedback><p>No. This better describes languages like Java or C++.</p></feedback>
128
+
</choice>
129
+
<choicecorrect="yes">
130
+
<statement><p>Dynamically typed and beginner-friendly</p></statement>
131
+
<feedback><p>That’s right! Python is dynamically typed and easy for beginners.</p></feedback>
132
+
</choice>
133
+
<choice>
134
+
<statement><p>Industrial strength and verbose</p></statement>
135
+
<feedback><p>No. Python is more informal and concise.</p></feedback>
136
+
</choice>
137
+
<choice>
138
+
<statement><p>Memory-managed and pointer-based</p></statement>
139
+
<feedback><p>No. That describes lower-level languages like C or C++.</p></feedback>
140
+
</choice>
141
+
</choices>
142
+
</exercise>
143
+
<exerciselabel="summary-lang-2">
144
+
<statement>
145
+
<p>Why is Java a better language for beginners compared to C++?</p>
146
+
</statement>
147
+
<choices>
148
+
<choice>
149
+
<statement><p>It requires more manual memory management</p></statement>
0 commit comments