CS 4337 Exam 1 Review

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/121

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:57 AM on 10/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

122 Terms

1
New cards

An advantage of an interpreter is that __________

a. when it finds errors, it displays feedback immediately

b. interpreted programs run faster than compiled programs

c. an interpreter produces an object program

d. all of the above

A

2
New cards

____ Widely used language that the industry recognizes as standards that is not OOP

cobol

3
New cards

____ is a set of technologies by Sun/Oracle that allows programmers to develop and deploy Web services for a company.

a. JIT

b. JavaScript

c. Java EE

d. JavaBuilder

C

4
New cards

____ is a set of technologies from Microsoft that allows almost any type of program to run on the Internet or an internal business network.

.NET

5
New cards

Examples of HTML ____ are to bold text,

to indicate a new paragraph, and


to display a horizontal rule across the page.

tags

6
New cards

A(n) ____ is a compiled program that runs on the client.

applet

7
New cards

A(n) ____ is an interpreted program that runs on the server.

script/servlet

8
New cards

One application of XML is the ____ specification, often used by news Web sites to publish headlines and stories.

a. RSS 2.0

b. DHTML 1.0

c. DMX 1.2

d. CSS 3.0

A

9
New cards

In object-oriented (OO) design, the concept of packaging data and procedures into a single object is called ____.

encapsulation

10
New cards

A program has its own documentation, called ____.

comments

11
New cards

Syntax errors will be caused by all of the following except ____.

a. misspelling a command

b. leaving out required

punctuation

c. typing command words out of order

d. using the wrong control structure

D

12
New cards

One purpose of using test data is to try to cause a ____, which is an error that occurs while a program is running.

a. run-time error

b. syntax error

c. one-time error

d. logic error

A

13
New cards

____ language instructions use a series of binary digits (1s and 0s) or similar to represent binary digits.

machine

14
New cards

A(n) ____ language is the second generation programming language, writing instructions using symbolic codes.

assembly

15
New cards

The machine language version that results from compiling a 3GL is called the ____.

a. dead code or dead program

b. source code or source program

c. live code or live program

d. object code or object program

D

16
New cards

____ language, known as the first generation of programming languages, is the only language a computer directly recognizes.

machine

17
New cards

A(n) ____ program is the program that contains the language instructions, or code, to be converted to machine language.

source

18
New cards

____, which is a programming language designed for business applications, evolved out of a joint effort between the United States government, businesses, and major universities.

cobol

19
New cards

The ____ programming language, developed by Dennis Ritchie at Bell Laboratories, originally was designed for writing system software.

c

20
New cards

____ is an object-oriented programming language developed by Sun Microsystems.

java

21
New cards

A(n) ____ programming language is a language that uses a graphical interface for creating all source code.

visual

22
New cards

____ is a simple, interactive problem-solving language developed by John Kemeny and Thomas Kurtz.

basic

23
New cards

____ is an interpreted scripting language that has a companion program called Tool Kit.

tcl

24
New cards

____ is an increasingly popular format for sharing data that allows Web page developers to create customized tags, as well as use predefined tags.

xml

25
New cards

____ is most popular in today's parsing technology.

a. top-down parser

b. hybrid parser

c. bottom-up parser

d. precedence parser

B

26
New cards

The major commercial language for the period 1960 through the 1990s was ______.

cobol

27
New cards

______ was developed as a systems programming language for the development of UNIX.

c

28
New cards

The major AI language for the period 1960 through the 1990s was ______.

lisp

29
New cards

For Web Languages, _____ is for hypertext

html

30
New cards

For Web Languages, _____ is the most popular server-side programming language

php

31
New cards

For Web Languages, _____ is the OO programming language introduced in 1995.

javascript

32
New cards

What a program looks like is called its ______.

syntax

33
New cards

John Backus was instrumental in the development of the first 3rd generation programming language: _____

fortran

34
New cards

_____ is a first machine-independent language and first language whose syntax was formally defined (BNF)

algol

35
New cards

The major scientific language for the period 1960 through the 1990s was _____.

fortran

36
New cards

______ is for the evaluation criteria for the conformance to specifications (i.e., performs to its specifications)

reliability

37
New cards

______ is the evaluation criteria for the ease with which programs can be understood

readability

38
New cards

______ is for the evaluation criteria for the ease with which a language can be used to create programs

writability

39
New cards

The execution or meaning of each feature in a language is called its ______.

semantics

40
New cards

One of the Functional languages is _______

lisp

41
New cards

_____ is about the presence of two or more distinct referencing methods for the same memory location

aliasing

42
New cards

_____ is the key component for stored program concept and is usually separated from CPU.

memory

43
New cards

One of the logic languages is ______

prolog

44
New cards

This ______ feature or criteria is about a relatively small set of primitive constructs which can be combined in a relatively small number of ways, and every possible combination is legal

orthogonality

45
New cards

The support for ______ is about the ability to define and use complex structures or operations in ways that allow details to be ignored

abstraction

46
New cards

eq checks if the arguments have the same ____

data in memory

47
New cards

eql check if arguments have the same ____

value & data type

48
New cards

equal checks if arguments have the same ____

printed representation

49
New cards

The '=' function checks if _____

two numbers are equal

50
New cards

12 and -1.53 are considered _____

numerical atoms

51
New cards

"Bob" and "a" are considered ____

literal atoms

52
New cards

In clisp, ____ tests if its argument is an atom

atom

53
New cards

In clisp, ___ returns the first element in a list

car

54
New cards

In clisp, ___ returns a list of the 2nd-nth element in a list

cdr

55
New cards

The ____ function determines if the parameter is an empty list or NIL

null

56
New cards

_____ checks if the parameter is a list

listp

57
New cards

____ assigns a key to a specific value

setq

58
New cards

In clisp, ____ allows you to define functions

defun

59
New cards

___ allows you to load a lisp source file

load

60
New cards

_______ applies functions to arguments. Takes 2+ arguments

funcall

61
New cards

In clisp, _______ allows you to log stuff into a file

dribble

62
New cards

In clisp, ____ is an n-branch conditional expression used.

cond

63
New cards

______ applies a function to the first element of each list, to then to the second element of each list, and so on

mapcar

64
New cards

____ takes list/expression and returns processed value

eval

65
New cards

Shortcode, speedcode, autocode, fortran, algol, and cobol were used during the ____'s

1950

66
New cards

basic, apl, oop, simula, and logo were used in the ____'s

1960

67
New cards

______ was the first OOP language

simula

68
New cards

C, SQL, Prolog, Matlab were popular languages in the ____'s

1970

69
New cards

Visual Terminals invented in ____'s

1970

70
New cards

C++, Objective-C, Perl, and Common Lisp were created in ____'s

1980

71
New cards

Haskell, Python, Visual Basic, PHP, Ruby, and Javascript were created in the ____'s

1990

72
New cards

C#, Actionscript, JVM languages, Go, and rust were created in the ____'s

2000

73
New cards

_____ is the idea that everything is a mathematical function

functional programming

74
New cards

Pure FPL characteristics are (safvism):

no side effects, no assignment statements, built on small frameworks, often no variables, implemented in interpreters, simple syntax, mathematically easier to handle

75
New cards

______ was mainly a scientific programming language

fortran

76
New cards

_____ was mainly a business-oriented programing language

cobol

77
New cards

____ is a language used for AI

lisp/python

78
New cards

____ is a language used for system programming

C

79
New cards

overall simplicity, Orthogonality , Data types, and Syntax considerations are the evaluation criteria for ____

Readability

80
New cards

Simplicity and orthogonality, abstraction support, and Expressivity are the evaluation criteria for _____

Writability

81
New cards

Type checking, exception handling, aliasing, and Readability and writability are the criteria for

Reliability

82
New cards

The Von Neumann computer characteristics are (dpm, cms, ipc):

data and programs stored in memory, cpu and memory separate, instructions and data piped to cpu

83
New cards

The basis of imperative languages derive from _____

von neumann computers

84
New cards

Examples of imperative languages are

C, java, c++

85
New cards

examples of functional languages are

lisp, haskell

86
New cards

____ is a logic language

prolog

87
New cards

____ is a markup language

jstl

88
New cards

The 3 implementation methods are:

compilation, pure interpretation, hybrid implementation

89
New cards

The Von Neumann Bottleneck is the ____

connection between memory and processor

90
New cards

____ languages are implemented in a JIT (just in time) system

.net

91
New cards

The design of the functional languages is based on _________

mathematical functions

92
New cards

FP languages are valuable in developing _____ and ____

executable specifications,prototype implementations

93
New cards

___ - static-scoped functional language with syntax closer to pascal than lisp. known as lisp with types.

ML

94
New cards

_____ is a purely functional programming language

haskell

95
New cards

___ is based on Ocaml, fundamentally a FL but has imperative features and OOP

F#

96
New cards

Imperative Langague Characteristics (essc):

efficient execution, complex semantics, complex syntax, concurrency is programmer designed

97
New cards

Fortran 1 was implemented in ____'s

1950

98
New cards

_____ is equivalent to context-free grammars developed by John Backus

BNF

99
New cards

_____ is lexeme or token, and shows only in right-hand side of a grammar rule

Terminal

100
New cards

_____ is a repeated application of grammar rules, from a start-symbol, ending with a input sentence

Derivation