Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Final Exam Review Fall 2003: Compilers, interpreters, and languages, oh my!

Questions, comments, answers?

Back to Fall2003 Final Exam Review

1-If you had a program written in C and you ran it through a C compiler, what would you expect to get out?
2-If you had a program written in Java and you ran it through a Java compiler, what would you expect to get out?
3-Why in the world would anyone want to use a virtual machine interpreter, and what does that have to do with programmable toaster ovens and cell phones?
4-What's a scripting language?

1.A list of instructions (machine language) represented by different bytes. Each byte is a different instruction telling the computer to do one, very, very simple task.

2.The java virtual machine language that runs in the JVM (Java virtual machine).

3.Each kind of computer (PC, Apple, Linux, anything with a processor) has it’s own JVM. This way, the same java program can run on any machine as long as a JVM is installed! So even watches or toasters, as long as they have a processor and JVM, can run java. This is important because then you don’t have to rewrite an entire program just to have it run on something different. Modularity.

4.A language that stays in it’s human readable mode, and is translated as the instructions are executed. This is opposed to a compiled language, which after being compiled only needs the instructions executed with no translation necessary. Because of this, interpreted languages are slower than languages like C which are compiled directly to machine instructions before being run.


On #4, you're confusing "interpreted programs" with "scripting languages." It's true that most scripting languages are interpreted, but scripting languages are designed to be used by single developers or small teams, as opposed to be using for large software development (like C, C++, and Java). A million lines of Python or JavaScript would be REALLY hard to write and debug. Java and C++ are designed to make it easier to develop and debug million line programs (with tens or even hundreds of programmers). Mark Guzdial


so is python and javascript are "scripting languages" ...?

Scripting languages are meant for non-professional programmers to solve simple tasks.


so what makes a language interpretive or scripting ? its ability to be debugged??? what defines a scripting language? besides how it is used?
Typing, like described below, is part of it. Also, in development O-O languages, variables are declared public or private, to control how others use your code. Scripting languages have less baggage and thus are easier to use. Mark Guzdial


4. What's a scripting language? A interpretive language that is weakly typed or untyped. Strongly typed means that it has to specifically say that a variable holds only this, and just this. Python is weakly typed language; don’t have to convert integers to floating points. Non typed means you can put anything into anything.

Ahhh the end!!

Dun dun da Dun dun dun da da dun dun dun bum baum...bum bum bum bum...done!



Link to this Page