Chapter 2: Java, JavaScript, Python Flashcards

(21 cards)

1
Q

What was the first application for Java?

A

Embedded consumer electronic devices

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

What characteristic of Java is most evident in JavaScript?

A

Use of similar syntax

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

How does the typing system of PHP and JavaScript differ from that of Java?

A

PHP and JavaScript are dynamically typed, while Java is strongly typed

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

What array structure is included in C# but not in C, C++, or Java?

A

Rectangular arrays

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

What two languages was the original version of Perl meant to replace?

A

sh (shell) and awk

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

For what application area is JavaScript most widely used?

A

Web programming for creating dynamic HTML documents

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

What is the relationship between JavaScript and PHP, in terms of their use?

A

JavaScript runs client-side in the browser; PHP runs server-side on the Web server

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

PHP’s primary data structure is a combination of what two data structures from other languages?

A

JavaScript arrays and Perl hashes

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

What data structure does Python use in place of arrays?

A

Lists

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

What characteristic does Ruby share with Smalltalk?

A

Pure object-oriented language

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

What characteristic of Ruby’s arithmetic operators makes them unique among other languages?

A

They are method calls and can be redefined by the user

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

What data structures are built into Lua?

A

Tables

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

Is Lua normally compiled, purely interpreted, or impurely interpreted?

A

Impurely interpreted

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

What feature of Delphi’s classes is included in C#?

A

Properties

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

What deficiency of C’s switch statement is addressed by C#?

A

Elimination of implicit fall-through between cases

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

What is the primary platform on which C# is used?

A

The .NET Framework

17
Q

What are the inputs to an XSLT processor?

A

An XML data document and an XSLT document

18
Q

What is the output of an XSLT processor?

A

Another XML document, often HTML

19
Q

What element of the JSTL is related to a subprogram?

A

The if element

20
Q

To what is a JSP document converted by a JSP processor?

21
Q

Where are servlets executed?

A

On a Web server