Variables

Description

Variables as taught by the ugly bitch.
BeSt PRoGiE
Quiz by BeSt PRoGiE, updated more than 1 year ago
BeSt PRoGiE
Created by BeSt PRoGiE almost 9 years ago
71
0

Resource summary

Question 1

Question
Developers assign a name to reference each unique thing stored. This name is called a variable
Answer
  • True
  • False

Question 2

Question
Variable names cannot use special characters (except % and $ in certain situations)
Answer
  • True
  • False

Question 3

Question
Use a dollar ( $ ) sign only to start the name of a static variable
Answer
  • True
  • False

Question 4

Question
a private attribute is available only to the class that defines it and to any subclasses of that class
Answer
  • True
  • False

Question 5

Question
a public attribute is available to any caller within the same package
Answer
  • True
  • False

Question 6

Question
Creating a variable is called
Answer
  • variable declaration
  • variable name
  • data type

Question 7

Question
Putting data into a variable is called
Answer
  • assignment.
  • internal
  • external pushing

Question 8

Question
Assignment can take place anytime after a variable has been declared—at declaration, many lines later, or after an event occurs. Assignment takes place when the data is not known.
Answer
  • True
  • False

Question 9

Question
Constants Constants are properties with a fixed value that cannot be altered. You can assign a value to a constant only once, and the assignment must occur in proximity to the declaration of the constant. An error results if you attempt to change the data in a constant. Constants are declared using the const keyword var .
Answer
  • True
  • False

Question 10

Question
By convention, constant names are all caps with words separated by an underscore. Does this mean that SHIPDOCK.class.asasm is a variable?
Answer
  • True
  • False
Show full summary Hide full summary

Similar

Data Types
Jacob Sedore
Experiments- Method, Control of Variables, Design, Types
Grace Fawcitt
Biology
Kyle Lennox
Scientific Process
Elena Oliva
Cluster for Pre-Writing Assignment: Academic Departments - Students from Health and Nursing Departments
Krystal Cruz Marrero
Chapter 2: Basic Computation
Alexander Cintron
Básicos de programacion
jose antonio negreros orellana
Definicion algoritmo
Edward Arley
Constructos psicológicos y variables
Kathia Morales
Variables
maxi-alfaro