2023-10-25T21:13:25+03:00[Europe/Moscow] en true <p>Define variable</p>, <p>Relational equality symbol</p>, <p>Assignment symbol</p>, <p>Expression definition</p>, <p>How many bits can an int hold?</p>, <p>Define constant</p>, <p>Block define</p>, <p>Garbage collector function</p>, <p>A variable must be ________ before its first use to avoid a compilation error</p>, <p>How many basic data types are there in java</p>, <p>A system program that brings together separately compiled modules of a program into a form language that is suitable for execution</p>, <p>Is the output of a java compiler executable code?</p>, <p>Bytecode definition</p>, <p>Steps of program development</p>, <p>Can the modulus operator be applied to floating point numbers?</p>, <p>Which has higher precedence? ++ or *</p>, <p>Which has higher precedence? + or =</p>, <p>Which is larger? float? or double?</p>, <p>The first letter of the names of primitive data types is written in _______-case, while for non-primitive data types it is written in _______-case</p>, <p>Floating-point numbers are by default set to the ________ data type</p>, <p>What is returned when the indexOf() method searches for a character that is not a part of the string</p>, <p>is a float initialized as 0.1 + 0.1 + 0.1 + 0.1 + 0.1 going to equal another float initialized as 0.1 * 5?</p>, <p>Should you use == to compare strings?</p> flashcards
Procedural Programming Period 1

Procedural Programming Period 1

  • Define variable

    A place in memory that we can reference, with what it holds being called a value

  • Relational equality symbol

    ==

  • Assignment symbol

    =

  • Expression definition

    Syntactically correct combination of variables, constants, operators, method invocations and values that evaluates to a single value.

  • How many bits can an int hold?

    32

  • Define constant

    A memory location with a fixed value which cannot be changed by the program

  • Block define

    Any lines of code surrounded by { }

  • Garbage collector function

    Remove the value from variables that are out of scope's memory for dynamically-allocated values

  • A variable must be ________ before its first use to avoid a compilation error

    Initialized/instantiated

  • How many basic data types are there in java

    8

  • A system program that brings together separately compiled modules of a program into a form language that is suitable for execution

    linker/loader

  • Is the output of a java compiler executable code?

    No

  • Bytecode definition

    Code generated by a java compiler

  • Steps of program development

    define

    analyze

    develop

    write

    test

    debug

    document

  • Can the modulus operator be applied to floating point numbers?

    Yes

  • Which has higher precedence? ++ or *

    ++

  • Which has higher precedence? + or =

    +

  • Which is larger? float? or double?

    Double, it is twice the size (64 bit rather than 32), hence the name

  • The first letter of the names of primitive data types is written in _______-case, while for non-primitive data types it is written in _______-case

    lower, upper

  • Floating-point numbers are by default set to the ________ data type

    double

  • What is returned when the indexOf() method searches for a character that is not a part of the string

    -1

  • is a float initialized as 0.1 + 0.1 + 0.1 + 0.1 + 0.1 going to equal another float initialized as 0.1 * 5?

    No, there would be a floating-point comparison error.

  • Should you use == to compare strings?

    No, as it compares the location of the strings in memory, which will not be equal if they're different strings. Use the equals() method