cs383 programming languages quiz 1. 1. which one is not a basic property of programming languages?...

Post on 19-Jan-2016

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

CS383 Programming Languages

Quiz 1

1. Which one is not a basic property of programming languages?

a. Functions

b. Syntax

c. Type

d. Semantics

2. What is this course about?

a. programming in a language

b. how to compile a program

c. how to interpret a program

d. the design and implementation of languages

3. What was the running example used in this lecture?

a. summation

b. fibonacchi

c. factorial

d. sine

4. What is not a major concern of syntax?

a. Syntax error detection

b. Grammar

c. Types

d. Vocabulary

5. Which of the following is not a name in Java?

a. factorial

b. f

c. String

d. “abc”

6. Which of the following is not a programming paradigm?

a. Functional programming

b. Logical programming

c. Imperative programming

d. Web programming

7. Which of the following is not a type in imperative programs?

a. Arrow (function) type

b. Boolean

c. String

d. Integer

8. Is state change a major feature in function languages?

a. Yes

b. No

9. Logic programs describes

a. How the problem is solved

b. What is the expected outcome

10. What doesn’t make a successful programming language?

a. Clarity about binding

b. Close to human language

c. Support

d. Orthogonality

top related