SlideShare a Scribd company logo
1 of 2
1. Prof. Lennart Van der Zeil’s theorem says that any
programming language is complete if it can be used to write a
program to compute any computable number.
a. What is a computable number?
b. What is a non-computable number?
c. If all existing programming languages are complete why do
we need more than one?
2. Two methodologies are used to transform programs written in
a source language (also known as a programmer-oriented
language, or a horizontal language, or a high-level language)
into a target language (also known as a machine language, or a
vertical language, or a low-level language). There is a static
method called translation and a dynamic method called
interpretation. Yet FORTRAN while 98% static ., uses
interpretation for the Formatted I/O statement, similarly
COBOL uses interpretation for the MOVE and MOVE
CORRESPONDING statements; on the other hand, Java is fully
interpretative except that in some programs and certain data sets
it may invoke a JIT (Just In Time) compiler to execute a bi t of
static code. Why do language designers mix these modalities if
either is complete? Hint: This is a long question with a short
answer.
3. C and C++ store numerical arrays (matrices) in row major
order and each index range must begin with 0; whereas
FORTRAN stores arrays in column major order and the
(default) index range starts (almost always) with 1. Engineers
and scientists are often faced with the problem of converting a
working program, or much more often a subroutine, from one
language to another. Unfortunately, due to the index range
difference (0 to n-1) in C/C++ and (1 to N) in FORTRAN,
viewing one array as simply the transpose of the other will not
suffice. What steps would you take to convert such a subroutine
to compute the product of two matrices A(N,M) and B(M,N) to
produce C(N,N) from FORTRAN to C++?
4. What was the major reason Jim Gosling invented Java? Did
he succeed?
5. What are the four major features of C++ that were eliminated
in Java? Why were they taken out? Why do we not miss them?
6. What was Kim Polese’ role at SUN Microsystems and why
did she think Java should be positioned as a general purpose
computer programming language? How did she accomplish this
truly incredible feat, not done since Captain (later Admiral)
Grace Murray Hopper, USN standardized COBOL in the early
1960s.
7. Describe briefly the role of women in the development of
computer programming and computer programming languages.
(Ada Lovelace, Betty Holberton, Grace Hopper, Mandaly
Grems, Kim Polese, Laura Lemay)
8. What are the pros and cons of overloaded operators in C++?
Java has only one, what is it?
9. State your own arguments for allowing mixed mode
arithmetic statements. (See Ch 7)
10. What is BNF and why are meta-languages like BNF and
EBNF used?

More Related Content

More from AbbyWhyte974

1. Think about a persuasive speech that you would like to present
1. Think about a persuasive speech that you would like to present 1. Think about a persuasive speech that you would like to present
1. Think about a persuasive speech that you would like to present AbbyWhyte974
 
1. The two properties about a set of measurements of a dependent v
1. The two properties about a set of measurements of a dependent v1. The two properties about a set of measurements of a dependent v
1. The two properties about a set of measurements of a dependent vAbbyWhyte974
 
1. The Danube River flows through 10 countries. Name them in the s
1. The Danube River flows through 10 countries. Name them in the s1. The Danube River flows through 10 countries. Name them in the s
1. The Danube River flows through 10 countries. Name them in the sAbbyWhyte974
 
1. The 3 genes that you will compare at listed below. Take a look.
1. The 3 genes that you will compare at listed below. Take a look.1. The 3 genes that you will compare at listed below. Take a look.
1. The 3 genes that you will compare at listed below. Take a look.AbbyWhyte974
 
1. Student and trainer detailsStudent details Full nameStu
1. Student and trainer detailsStudent details  Full nameStu1. Student and trainer detailsStudent details  Full nameStu
1. Student and trainer detailsStudent details Full nameStuAbbyWhyte974
 
1. Student uses MS Excel to calculate income tax expense or refund
1. Student uses MS Excel to calculate income tax expense or refund1. Student uses MS Excel to calculate income tax expense or refund
1. Student uses MS Excel to calculate income tax expense or refundAbbyWhyte974
 
1. Socrates - In your view, what was it about Socrates’ teachings
1. Socrates - In your view, what was it about Socrates’ teachings 1. Socrates - In your view, what was it about Socrates’ teachings
1. Socrates - In your view, what was it about Socrates’ teachings AbbyWhyte974
 
1. Select a patient” (friend or family member) on whom to perform
1. Select a patient” (friend or family member) on whom to perform1. Select a patient” (friend or family member) on whom to perform
1. Select a patient” (friend or family member) on whom to performAbbyWhyte974
 
1. Respond to your classmates’ question and post. Submission to y
1. Respond to your classmates’ question and post.  Submission to y1. Respond to your classmates’ question and post.  Submission to y
1. Respond to your classmates’ question and post. Submission to yAbbyWhyte974
 
1. Review the HCAPHS survey document, by clicking on the hyperlink
1. Review the HCAPHS survey document, by clicking on the hyperlink1. Review the HCAPHS survey document, by clicking on the hyperlink
1. Review the HCAPHS survey document, by clicking on the hyperlinkAbbyWhyte974
 
1. Saint Leo Portal loginUser ID[email protected]
1. Saint Leo Portal loginUser ID[email protected]          1. Saint Leo Portal loginUser ID[email protected]
1. Saint Leo Portal loginUser ID[email protected] AbbyWhyte974
 
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...pleaAbbyWhyte974
 
1. Read the story first.2. Bold Face TermsMake a separate l
1. Read the story first.2. Bold Face TermsMake a separate l1. Read the story first.2. Bold Face TermsMake a separate l
1. Read the story first.2. Bold Face TermsMake a separate lAbbyWhyte974
 
1. Read and summarize ERD paragraphs # 59, 60, 61. 59. T
1. Read and summarize ERD paragraphs #  59, 60, 61. 59. T1. Read and summarize ERD paragraphs #  59, 60, 61. 59. T
1. Read and summarize ERD paragraphs # 59, 60, 61. 59. TAbbyWhyte974
 
1. PURPOSE To document and evaluate teaching skills necessary to
1. PURPOSE  To document and evaluate teaching skills necessary to1. PURPOSE  To document and evaluate teaching skills necessary to
1. PURPOSE To document and evaluate teaching skills necessary toAbbyWhyte974
 
1. Rate yourself according to your confidence level performing the
1. Rate yourself according to your confidence level performing the1. Rate yourself according to your confidence level performing the
1. Rate yourself according to your confidence level performing theAbbyWhyte974
 
1. President William McKinley, letter to Congress, April 25, 1898.
1. President William McKinley, letter to Congress, April 25, 1898.1. President William McKinley, letter to Congress, April 25, 1898.
1. President William McKinley, letter to Congress, April 25, 1898.AbbyWhyte974
 
1. Preparing for assessment. DateWeek 3Session titlePr
1. Preparing for assessment. DateWeek 3Session titlePr1. Preparing for assessment. DateWeek 3Session titlePr
1. Preparing for assessment. DateWeek 3Session titlePrAbbyWhyte974
 
1. Project Description Definition of ProjectThe supervision of w
1. Project Description Definition of ProjectThe supervision of w1. Project Description Definition of ProjectThe supervision of w
1. Project Description Definition of ProjectThe supervision of wAbbyWhyte974
 
1. PortfolioYou are expected to collate a portfolio of items to
1. PortfolioYou are expected to collate a portfolio of items to1. PortfolioYou are expected to collate a portfolio of items to
1. PortfolioYou are expected to collate a portfolio of items toAbbyWhyte974
 

More from AbbyWhyte974 (20)

1. Think about a persuasive speech that you would like to present
1. Think about a persuasive speech that you would like to present 1. Think about a persuasive speech that you would like to present
1. Think about a persuasive speech that you would like to present
 
1. The two properties about a set of measurements of a dependent v
1. The two properties about a set of measurements of a dependent v1. The two properties about a set of measurements of a dependent v
1. The two properties about a set of measurements of a dependent v
 
1. The Danube River flows through 10 countries. Name them in the s
1. The Danube River flows through 10 countries. Name them in the s1. The Danube River flows through 10 countries. Name them in the s
1. The Danube River flows through 10 countries. Name them in the s
 
1. The 3 genes that you will compare at listed below. Take a look.
1. The 3 genes that you will compare at listed below. Take a look.1. The 3 genes that you will compare at listed below. Take a look.
1. The 3 genes that you will compare at listed below. Take a look.
 
1. Student and trainer detailsStudent details Full nameStu
1. Student and trainer detailsStudent details  Full nameStu1. Student and trainer detailsStudent details  Full nameStu
1. Student and trainer detailsStudent details Full nameStu
 
1. Student uses MS Excel to calculate income tax expense or refund
1. Student uses MS Excel to calculate income tax expense or refund1. Student uses MS Excel to calculate income tax expense or refund
1. Student uses MS Excel to calculate income tax expense or refund
 
1. Socrates - In your view, what was it about Socrates’ teachings
1. Socrates - In your view, what was it about Socrates’ teachings 1. Socrates - In your view, what was it about Socrates’ teachings
1. Socrates - In your view, what was it about Socrates’ teachings
 
1. Select a patient” (friend or family member) on whom to perform
1. Select a patient” (friend or family member) on whom to perform1. Select a patient” (friend or family member) on whom to perform
1. Select a patient” (friend or family member) on whom to perform
 
1. Respond to your classmates’ question and post. Submission to y
1. Respond to your classmates’ question and post.  Submission to y1. Respond to your classmates’ question and post.  Submission to y
1. Respond to your classmates’ question and post. Submission to y
 
1. Review the HCAPHS survey document, by clicking on the hyperlink
1. Review the HCAPHS survey document, by clicking on the hyperlink1. Review the HCAPHS survey document, by clicking on the hyperlink
1. Review the HCAPHS survey document, by clicking on the hyperlink
 
1. Saint Leo Portal loginUser ID[email protected]
1. Saint Leo Portal loginUser ID[email protected]          1. Saint Leo Portal loginUser ID[email protected]
1. Saint Leo Portal loginUser ID[email protected]
 
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea
1. Reference is ch. 5 in the e-text, or ch. 2 in paper text...plea
 
1. Read the story first.2. Bold Face TermsMake a separate l
1. Read the story first.2. Bold Face TermsMake a separate l1. Read the story first.2. Bold Face TermsMake a separate l
1. Read the story first.2. Bold Face TermsMake a separate l
 
1. Read and summarize ERD paragraphs # 59, 60, 61. 59. T
1. Read and summarize ERD paragraphs #  59, 60, 61. 59. T1. Read and summarize ERD paragraphs #  59, 60, 61. 59. T
1. Read and summarize ERD paragraphs # 59, 60, 61. 59. T
 
1. PURPOSE To document and evaluate teaching skills necessary to
1. PURPOSE  To document and evaluate teaching skills necessary to1. PURPOSE  To document and evaluate teaching skills necessary to
1. PURPOSE To document and evaluate teaching skills necessary to
 
1. Rate yourself according to your confidence level performing the
1. Rate yourself according to your confidence level performing the1. Rate yourself according to your confidence level performing the
1. Rate yourself according to your confidence level performing the
 
1. President William McKinley, letter to Congress, April 25, 1898.
1. President William McKinley, letter to Congress, April 25, 1898.1. President William McKinley, letter to Congress, April 25, 1898.
1. President William McKinley, letter to Congress, April 25, 1898.
 
1. Preparing for assessment. DateWeek 3Session titlePr
1. Preparing for assessment. DateWeek 3Session titlePr1. Preparing for assessment. DateWeek 3Session titlePr
1. Preparing for assessment. DateWeek 3Session titlePr
 
1. Project Description Definition of ProjectThe supervision of w
1. Project Description Definition of ProjectThe supervision of w1. Project Description Definition of ProjectThe supervision of w
1. Project Description Definition of ProjectThe supervision of w
 
1. PortfolioYou are expected to collate a portfolio of items to
1. PortfolioYou are expected to collate a portfolio of items to1. PortfolioYou are expected to collate a portfolio of items to
1. PortfolioYou are expected to collate a portfolio of items to
 

1. Prof. Lennart Van der Zeil’s theorem says that any programming

  • 1. 1. Prof. Lennart Van der Zeil’s theorem says that any programming language is complete if it can be used to write a program to compute any computable number. a. What is a computable number? b. What is a non-computable number? c. If all existing programming languages are complete why do we need more than one? 2. Two methodologies are used to transform programs written in a source language (also known as a programmer-oriented language, or a horizontal language, or a high-level language) into a target language (also known as a machine language, or a vertical language, or a low-level language). There is a static method called translation and a dynamic method called interpretation. Yet FORTRAN while 98% static ., uses interpretation for the Formatted I/O statement, similarly COBOL uses interpretation for the MOVE and MOVE CORRESPONDING statements; on the other hand, Java is fully interpretative except that in some programs and certain data sets it may invoke a JIT (Just In Time) compiler to execute a bi t of static code. Why do language designers mix these modalities if either is complete? Hint: This is a long question with a short answer. 3. C and C++ store numerical arrays (matrices) in row major order and each index range must begin with 0; whereas FORTRAN stores arrays in column major order and the (default) index range starts (almost always) with 1. Engineers and scientists are often faced with the problem of converting a working program, or much more often a subroutine, from one language to another. Unfortunately, due to the index range difference (0 to n-1) in C/C++ and (1 to N) in FORTRAN, viewing one array as simply the transpose of the other will not suffice. What steps would you take to convert such a subroutine to compute the product of two matrices A(N,M) and B(M,N) to produce C(N,N) from FORTRAN to C++?
  • 2. 4. What was the major reason Jim Gosling invented Java? Did he succeed? 5. What are the four major features of C++ that were eliminated in Java? Why were they taken out? Why do we not miss them? 6. What was Kim Polese’ role at SUN Microsystems and why did she think Java should be positioned as a general purpose computer programming language? How did she accomplish this truly incredible feat, not done since Captain (later Admiral) Grace Murray Hopper, USN standardized COBOL in the early 1960s. 7. Describe briefly the role of women in the development of computer programming and computer programming languages. (Ada Lovelace, Betty Holberton, Grace Hopper, Mandaly Grems, Kim Polese, Laura Lemay) 8. What are the pros and cons of overloaded operators in C++? Java has only one, what is it? 9. State your own arguments for allowing mixed mode arithmetic statements. (See Ch 7) 10. What is BNF and why are meta-languages like BNF and EBNF used?