
Lecture 1 - part 2 - CIS430
Presentation
•
Computers
•
University
•
Practice Problem
•
Medium
Sherif Abdelhamid
Used 2+ times
FREE Resource
6 Slides • 4 Questions
1
ISBN 0-321-49362-1
Chapter 1
Preliminaries
2
Copyright © 2015 Pearson. All rights reserved.
1-2
Chapter 1 Topics
•
Reasons for Studying Concepts of
Programming Languages
•
Programming Domains
•
Language Evaluation Criteria
•
Influences on Language Design
•
Language Categories
•
Language Design Trade-Offs
•
Implementation Methods
•
Programming Environments
3
Copyright © 2015 Pearson. All rights reserved.
1-3
Language Categories
•Imperative
– Central features are variables, assignment statements, and
iteration
– Include languages that support object-oriented programming
– Include scripting languages
– Include the visual languages
– Examples: Python, C, Java, Perl, JavaScript, Visual BASIC .NET,
C++
•Functional
– Main means of making computations is by applying functions to
given parameters
– Examples: LISP, Scheme, ML, F#
•Logic
– Rule-based (rules are specified in no particular order)
– Example: Prolog
•Markup
– A set of rules that defines how the layout and presentation of
text and images should appear in a digital document.
– Examples: XML, HTML, LaTeX, MathML, JSON
4
Multiple Choice
XML stands for?
Hypertext Markup Language
Extensible Machine Language
Extensible Markup Language
None of these
5
Copyright © 2015 Pearson. All rights reserved.
1-4
Language Design Trade-Offs
• Reliability vs. cost of execution
– Example: Java demands all references to array elements
be checked for proper indexing, which leads to increased
execution costs
• Readability vs. writability
Example: APL provides many powerful operators (and a large
number of new symbols), allowing complex computations
to be written in a compact program but at the cost of poor
readability
n ← 4 5 6 7
n+4
8 9 10 11
• Writability (flexibility) vs. reliability
– Example: C++ pointers are powerful and very flexible but
are unreliable
6
Multiple Choice
LISP belongs to which programming language category?
Imperative
Functional
Markup
Logic
7
APL - Readability vs. writability
1-5
8
APL - Readability vs. writability
VAR
sum,ARRAY data[1..500] OF REAL
i INTEGER;
BEGIN
WRITE('Number of data=..');
READLN(n);
sum:=0;
FOR i:=1 TO n DO
BEGIN
READ(data[i]);
sum:=sum+data[i]
END;
WRITELN(sum);
END.
but in APL you simply program the sum of inputs (no need for loops) as: ,
and the mean is also very tersely formulated as:
1-6
(+/X)÷⍴X
9
Multiple Choice
It is easier to be an expert in APL compared to Pascal?
True
False
10
Multiple Choice
If x is an array in APL, then ⍴X means?
Sum of the elements in array x
Number of the elements in array x
Average of the elements in array x
Product of the elements in array x
ISBN 0-321-49362-1
Chapter 1
Preliminaries
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
7 questions
Disruptive of Communication Technology
Presentation
•
University
7 questions
Translation and interpretation
Presentation
•
University
7 questions
Writing a formal letter/email
Presentation
•
University
10 questions
Solving Equations
Presentation
•
6th Grade
7 questions
Inservice day - engaging learners
Presentation
•
Professional Development
8 questions
Research and teaching practicum I
Presentation
•
University
6 questions
English Proficiency
Presentation
•
University
7 questions
SP8: Coaching
Presentation
•
KG - University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University