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

11
CS383 Programming Languages Quiz 1

Upload: barbra-nelson

Post on 19-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

CS383 Programming Languages

Quiz 1

Page 2: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. Functions

b. Syntax

c. Type

d. Semantics

Page 3: 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

Page 4: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. summation

b. fibonacchi

c. factorial

d. sine

Page 5: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

4. What is not a major concern of syntax?

a. Syntax error detection

b. Grammar

c. Types

d. Vocabulary

Page 6: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. factorial

b. f

c. String

d. “abc”

Page 7: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. Functional programming

b. Logical programming

c. Imperative programming

d. Web programming

Page 8: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. Arrow (function) type

b. Boolean

c. String

d. Integer

Page 9: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. Yes

b. No

Page 10: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

9. Logic programs describes

a. How the problem is solved

b. What is the expected outcome

Page 11: CS383 Programming Languages Quiz 1. 1. Which one is not a basic property of programming languages? a.Functions b.Syntax c.Type d.Semantics

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

a. Clarity about binding

b. Close to human language

c. Support

d. Orthogonality