QUIZ #3: IDENTIFICATION. Write Your Answer in A Clean Short Bond Paper
QUIZ #3: IDENTIFICATION. Write Your Answer in A Clean Short Bond Paper
Oak
Applets
4. What feature of Java which programs are not required to delete objects allocated in the memory?
Garbage Collected
5. What feature of Java which programs developed can run on any computer
system with no changes long as JRE is installed in the computer?
RESEARCH
1. Five (5) example of high-level programming languages (not mentioned in this module) and its
features.
Features of Python
As a programming language, the features of Python brought to the table are many. Some
of the most significant features of Python are
Easy to Code
Python is a very developer-friendly language which means that anyone and
everyone can learn to code it in a couple of hours or days. As compared to other
object-oriented programming languages like Java, C, C++, and C#, Python is one of
the easiest to learn.
Object-Oriented Approach
One of the key aspects of Python is its object-oriented approach. This
basically means that Python recognizes the concept of class and object encapsulation
thus allowing programs to be efficient in the long run.
High-Level Language
Python has been designed to be a high-level programming language, which
means that when you code in Python you don’t need to be aware of the coding
structure, architecture as well as memory management.
Integrated by Nature
Python is an integrated language by nature. This means that the python
interpreter executes codes one line at a time. Unlike other object-oriented
programming languages, we don’t need to compile Python code thus making the
debugging process much easier and efficient. Another advantage of this is, that upon
execution the Python code is immediately converted into an intermediate form also
known as byte-code which makes it easier to execute and also saves runtime in the
long run.
Highly Portable
Suppose you are running Python on Windows and you need to shift the same
to either a Mac or a Linux system, then you can easily achieve the same in Python
without having to worry about changing the code. This is not possible in other
programming languages, thus making Python one of the most portable languages
available in the industry.
Highly Dynamic
As mentioned in an earlier paragraph, Python is one of the most dynamic
languages available in the industry today. What this basically means is that the type
of a variable is decided at the run time and not in advance. Due to the presence of this
feature, we do not need to specify the type of the variable during coding, thus saving
time and increasing efficiency.
Features of Fortran
Modules.
Modules enables you to program in an object oriented style,
similar to C++. Modules can also be used to hide global variables, thereby
making the Fortran 77 common construct outdated.
Operator Overloading.
You can define your own meaning of operators like + and = for
your own data types (objects).
3. PHP - is known as a general-purpose scripting language that can be used to develop dynamic
and interactive websites.
PHP Features
PHP is very popular language because of its simplicity and open source. There are
some important features of PHP given below:
Performance
PHP script is executed much faster than those scripts which are written
in other languages such as JSP and ASP. PHP uses its own memory, so the
server workload and loading time is automatically reduced, which results in
faster processing speed and better performance.
Open Source
PHP source code and software are freely available on the web. You
can develop all the versions of PHP according to your requirement without
paying any cost. All its components are free to download and use.
Embedded
PHP code can be easily embedded within HTML tags and script.
Platform Independent
PHP is available for WINDOWS, MAC, LINUX & UNIX operating
system. A PHP application developed in one OS can be easily executed in
other OS also.
Database Support
PHP supports all the leading databases such as MySQL, SQLite,
ODBC, etc.
Error Reporting –
PHP has predefined error reporting constants to generate an error
notice or warning at runtime. E.g., E_ERROR, E_WARNING, E_STRICT,
E_PARSE.
Security
PHP is a secure language to develop the website. It consists of
multiple layers of security to prevent threads and malicious attacks.
Control
Different programming languages require long script or code, whereas
PHP can do the same work in a few lines of code. It has maximum control
over the websites like you can make changes easily whenever you want.
4. Ruby – is a dynamic, open source programming language with a focus on simplicity and
productivity. It has an elegant syntax that is natural to read and easy to write.
Features of Ruby
Object Oriented
Ruby is purely object oriented programming language. Each and every
value is an object. Every object has a class and every class has a super class.
Every code has their properties and actions. Ruby is influenced with Smalltalk
language. Rules applying to objects applies to the entire Ruby.
Flexibility
Ruby is a flexible language as you can easily remove, redefine or add
existing parts to it. It allows its users to freely alter its parts as they wish.
Mixins
Ruby has a feature of single inheritance only. Ruby has classes as well as
modules. A module has methods but no instances. Instead, a module can be mixed
into a class, which adds the method of that module to the class. It is similar to
inheritance but much more flexible.
Visual Appearance
Ruby generally prefers English keyword and some punctuation is used to
decorate Ruby. It doesn't need variable declaration.
Ruby Variables
Ruby variables are loosely typed language, which means any variable can
hold any type of object. When a method is called on an object, Ruby only looks
up at the name irrespective of the type of object. This is duck typing. It allows you
to make classes that pretend to be other classes.
Variable Constant
In Ruby, constants are not really constant. If an already initialized constant
will be modified in a script, it will simply trigger a warning but will not halt your
program.
5. Delphi - is a software product that uses the Delphi dialect of the Object Pascal programming
language and provides an integrated development environment for rapid application development
of desktop, mobile, web, and console software, currently developed and maintained by
Embarcadero Technologies.
Features of Delphi
Readable Code
Delphi is a simple high level language compared to the complexity
of code used with other high level programming languages. Its syntax is
very clear and easy to read even by non-technical developers
Literal is a source code representation of a fixed value. They are represented directly in
the code without any computation. Literals can be assigned to any primitive type
variable. Java Literals can be classified into six types, as below:
Integral Literals
Floating-point Literals
Char Literals
Boolean Literals
Null Literals
Data types are those which specify the type of data represented by the variable and literal
is the that is stored in to the variable. Data types are divided into two groups:
Primitive data types - includes byte, short, int, long, float, double, boolean and char
Non-primitive data types - such as String, Arrays and Classes (you will learn more
about these in a later chapter)
QUIZ #4:
I. MODIFIED TRUE OR FALSE. Write the word TRUE if the statement is correct and if
otherwise change the underlined word/s to make the statement correct.
1. Trace the output program. Write your answer inside the box.
System.out.println(s);
System.out.print(“Welcome to ”);
System.out.println(“Java Programming!”);
System.out.print(“_*_*_*_*”);
}
}
RESEARCH
Please do research on the following. Write it in a clean short bond paper.
1. Arithmetic Operators
These operators involve the mathematical operators that can be used to perform various simple or
advance arithmetic operations on the primitive data types referred to as the operands. These operators
consist of various unary and binary operators that can be applied on a single or two operands
respectively.
Logical Operators
These operators are used to perform logical “AND”, “OR” and “NOT” operation, i.e. the function
similar to AND gate and OR gate in digital electronics. They are used to combine two or more
conditions/constraints or to complement the evaluation of the original condition under particular
consideration. One thing to keep in mind is the second condition is not evaluated if the first one is false,
i.e. it has a short-circuiting effect. Used extensively to test for several conditions for making a decision.