0% found this document useful (0 votes)
12 views6 pages

Task 01 - Guinea Assignment

The document discusses the most commonly used programming languages: Python, Java, C#, C++, and PHP. For each language, it provides advantages and disadvantages as well as syntax examples. It describes key features and uses of each language.

Uploaded by

Kieth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

Task 01 - Guinea Assignment

The document discusses the most commonly used programming languages: Python, Java, C#, C++, and PHP. For each language, it provides advantages and disadvantages as well as syntax examples. It describes key features and uses of each language.

Uploaded by

Kieth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

STUDENTS NAME

FULL NAME: Kiethlene Oyoc Guinea DATE: January 16, 2024


SUBJECT: ITE - 12 SECTION: EJ1
INSTRUCTOR
Paolo Pacaldo
:
SCORE:

Most Commonly Used Programming Languages

1. Python
Python is an interpreted, object-oriented, high-level programming
language with dynamic semantics developed by Guido van Rossum. It was
originally released in 1991. Designed to be easy as well as fun, the name
"Python" is a nod to the British comedy group Monty Python.

Advantages

o Python is a high-level programming language that has English-


like syntax. This makes it easier to read and understand the code.
o Python is a very productive language. Due to the simplicity of
Python, developers can focus on solving the problem.
o Python is an interpreted language which means that Python
directly executes the code line by line. In case of any error, it stops
further execution and reports back the error which has occurred.
o This makes it free to use and distribute. You can download the
source code, modify it and even distribute your version of Python.

Disadvantages

o The dynamic nature of Python is also responsible for the slow


speed of Python because it must do the extra work while executing
code.
o Python programming language uses a large amount of memory.
o Python is not memory efficient, and it has slow processing
power as compared to other languages.

Syntax:

>>> print(“Hello, World!”)

Hello, World!

References:
https://techvidvan.com/tutorials/python-advantages-and-disadvantages/
https://www.w3schools.com/python/python_syntax.asp
https://www.teradata.com/glossary/what-is-python
2. Java
Java is a widely used object-oriented programming language and software
platform that runs on billions of devices, including notebook computers,
mobile devices, gaming consoles, medical devices and many others. The
rules and syntax of Java are based on the C and C++ languages.

Advantages

o The syntax of Java is straightforward, easy to write, learn, maintain,


and understand, the code is easily debuggable.
o An object-oriented language that helps us to enhance the flexibility
and reusability of the code.
o Java reduces security threats and risks by avoiding the use of
explicit pointers.
o Java is a distributed language as it provides a mechanism for
sharing data and programs among multiple computers that
improve the performance and efficiency of the system.

Disadvantages

o Java is memory-consuming and significantly slower than native


languages such as C or C++.
o Java mainly works on storage and does not focus on the backup of
data. This is a major drawback that makes it lose interest and
ratings among users.
o Java requires a significant or major amount of memory space as
compared to other languages like C and C++.
o Java codes are verbose, meaning that there are many words in it
and there are many long and complex sentences that are difficult to
read and understand.

Syntax:

public class Main {

public static void main(String[] args) {

System.out.println("Hello World");

References:
https://techvidvan.com/tutorials/pros-and-cons-of-java/
https://www.w3schools.com/java/java_syntax.asp
https://www.ibm.com/topics/java
3. C#

C#, pronounced "C-sharp," is an object-oriented programming language


from Microsoft that enables developers to build applications that run on
the .NET platform. C# has its roots in the C family of programming
languages and shares many of the same characteristics as those found in C
and C++, as well as in Java and JavaScript.

Advantages

o It has a built-in garbage collector and is type safe.


o As an object-oriented programming language, C# produces easier-
to-test and read applications.
o It enables response to any occurring issues and provides a leaner
approach to writing code.
o Being a high-level language, C# is easier to understand than a low-
level language.
o With the .NET framework, C# developers can rely on the
powerful .NET Core framework designed to build web services and
applications.

Disadvantages

o C# requires code compilation every time you make any changes.


Which can lead to errors and bugs.
o Using .NET libraries can add another layer of complexity to learning
C#.
o Since C# is part of the .NET framework, it needs the Windows
platform for execution.

Syntax:
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
References:
https://www.techtarget.com/whatis/definition/C-Sharp
https://www.sololearn.com/blog/c-plus-plus-or-c-sharp/
https://www.w3schools.com/cs/cs_syntax.php
4. C++
C++ (or “C-plus-plus”) is a generic programming language for building
software. It's an object-oriented language. In other words, it emphasizes
using data fields with unique attributes (a.k.a. objects) rather than logic or
functions. A common example of an object is a user account on a website.

Advantages

o C++ (or “C-plus-plus”) is a generic programming language for


building software. It's an object-oriented language. In other words,
it emphasizes using data fields with unique attributes (a.k.a.
objects) rather than logic or functions. A common example of an
object is a user account on a website.
o C++ could also be a problem-oriented language that’s much
easier to use than the other low-level languages like binary
coding. It takes much more space than low-level languages but
it’s much easier to understand and learn.
o Global data and global functions are used within C++ that aren’t
utilized in many other high-level languages within the pc sciences
and it is an advantage to the programming languages.
o C++ may be a system programming and features a relatively clear and
mature standard.

Disadvantages

o C++ program is complex during a very large high-level program,


C++ is employed for platform-specific application commonly, For
the actual OS or platform, the library set is typically chosen.
o C++ program can’t support garbage pickup, it’s not secure
because it’s a pointer, friend function, and global variable and it’s
no support for threads built in.
o C++ is a complex and powerful language that can take time to
learn and master, especially for beginners who are new to
programming.

Syntax:
#include <iostream>
using namespace std;

int main() {
cout << "Hello World!";
return 0;
}

References:
https://www.w3schools.com/cpp/cpp_syntax.asp
https://www.coursera.org/articles/what-is-c-plus-plus
https://www.geeksforgeeks.org/advantages-and-disadvantages-of-cpp/
5. PHP
Hypertext Preprocessor (PHP) is an open-source, free server-side scripting
language widely used in web development. According to Web Technology
Surveys, PHP is used by 78.1% of all websites, including high-traffic
websites like Facebook and Wikipedia.

Advantages

o The most important advantage of PHP is that it’s open-source and


free from cost. It can be downloaded anywhere and is readily
available to use for events or web applications.
o Applications can easily be loaded which are based on PHP and
connected to the database. It’s mainly used due to its faster rate
of loading over slow internet speed than other programming
language.
o It helps in reusing an equivalent code and not got have to write
lengthy code and sophisticated structure for events of web
applications.
o Flexibility makes PHP ready to effectively combine with many
other programming languages in order that the software package
could use foremost effective technology for every particular
feature.

Disadvantages

o It is not that secure due to its open-source, because the ASCII text
file is often easily available.
o It is not suitable for giant content-based web applications.
o PHP doesn’t allow change or modification in the core behavior of
online applications.
o While PHP may be a powerful tool supported by an outsized
community and plentiful reference documentation, there are
easier programming languages for web apps.

Syntax:

<?php

// PHP code goes here

?>

References:
https://www.hostinger.ph/tutorials/what-is-php/
https://www.geeksforgeeks.org/advantages-and-disadvantages-of-php/
https://www.w3schools.com/php/php_syntax.asp

You might also like