Starter Variables and Constants

Home Forums Grade 9 P3/P4 Starter Variables and Constants

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6536
    Eamonn
    Keymaster

    Define in your own words the difference between a variable and a constant in programming. Can you think of a scenario that you might use a Constant in a program?

    Name 10 programming languages.

    Why are programming languages different?

    #6537
    Fine
    Participant

    A constant’s value does not change over time and remains the same. A variable, on the other hand, has a value that changes over time and is determined by the equation. Numbers are commonly used to represent constants. Alphabets are commonly used to represent variables. Constants have a known face value. I might use constant in a program in the future when I have to.

    10 programming languages:
    Python
    JavaScript
    Java
    C++
    GoLang
    C#
    SQL
    Dart
    R
    PHP

    Programming languages are different because they do different things and their quality differs.

    #6538
    Matthew Sparrow
    Participant

    A constant value can not be changed.

    C, Java, Python, C++, C#, Visual Basic, JavaScript, PHP, Assembly Language, and SQL

    Different jobs use different programming languages. You pick the one that you prefer to use.

    #6539
    aanya03
    Participant

    Constant is the value in programming that cannot be change and replaced with anything, whereas variable is something in programming whose data can be changed during programming.
    1. Python
    2. Javascript
    3. Java
    4. C++
    5. GoLang
    6. C#
    7. SQL
    8. Dart
    9. R
    10. PHP

    There are different programming languages because each one does a different thing. Programming is some type of nerd thought they could make a better language which effect the modern world and modern needs.

    #6540
    Bob
    Participant

    Constants change variables, and variables get their own results because of constants.
    Java,C,C++,C#,PHP,Python,VB,html,PHP,SQL
    Every programming language has a certain degree of difference, but they all have fluent logic to understand

    #6541
    tinashe_1587
    Participant

    The difference between a variable and constant is that a variable is a data item whose value can change during the program’s execution and a constant is when the value can not change.

    10 Programming Languages:
    -Python
    -JavaScript
    -C
    -Java
    -Visual Basic
    -PHP
    -Assembly Language
    -SQL
    -C#
    -C++

    Programming languages are different because they do different things for different degrees.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Scroll to Top