1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sophie [7]
3 years ago
15

Variable names may contain spaces and punctuation symbols. True False

Computers and Technology
1 answer:
Vladimir79 [104]3 years ago
4 0

Answer:

False

Explanation:

Programming languages use variables to reserve a space in memory needed to hold the values while the program is executed.

Every language has a set of rules to give names to the variables. Some commonly used conventions are listed below.

1. Variable names cannot contain spaces and punctuation symbols.

Example roll num is an incorrect variable name.

2. Variable names begin with alphabets or letters only.

Example a, sal

3. Variable names cannot begin with numbers or digits.

Example sal2019  

4. Variable names can have underscores only in between.

Example mngr_sal, mngr_bonus

Underscores enable categorizing the variables based on the initial name like above.

5. Keywords cannot be used as names of variables.

Example Integer, String cannot be the name of any variable.

6. Special characters are not allowed in the names of the variables.

The above naming conventions are common across all programming languages. Other rules may be implemented specific to a particular language.

Variables are declared to tell the compiler to reserve a memory space which should be sufficient to hold the variable of this type.

int age;

char reply;

string name;

The above variables are of integer, character and string data type respectively.

Variable initialization assigns a value to the variables.

age = 24;

reply = ‘n’;

name = “Brainly Website”;

The character variable holds 1 letter at a time and is written in single quotes.

The string variable holds a sequence of characters, numbers and spaces and is enclosed in double quotes.

Variable declaration and initialization can be done simultaneously.

String full_name = “Lexi 8791”;

As a practise, variable names are not written in upper case except in case of constants. Constants can have names only in upper case.

An example of constant variable name declaration and initialization is given.

static final int MIN_USERS = 10;

The above information about variables is common across the programming languages.

You might be interested in
A computer that delivers requested web pages to your computer or mobile device is a(n) _____.
yaroslaw [1]

Answer:

Web Server

A web server is server software, or hardware dedicated to running this software, that can satisfy client requests on the World Wide Web. A web server can, in general, contain one or more websites. A web server processes incoming network requests over HTTP and several other related protocols.

6 0
4 years ago
Create a Word document or text file named Part3 that contains answers to the following:
Gnoma [55]

Answer:

11111

Explanation:

4 0
3 years ago
Please explain external hashing, B-trees, and traversals. 3-5 sentences per
katrin [286]

Answer: In external hashing the hash table is in disk where each slot of the page table holds multiple entries which refers to pages on the disk organised in the form of buckets.

B-trees are self balancing trees which contains sorted data and allows insertion, deletion, traversals

Traversal is the process of visiting the nodes of the tree data structure.

Explanation:

External hashing is different from internal hashing and it refers to concepts in database management systems. Internal hashing stores only single record maintained in page table format, whereas external hashing holds multiple entries.

B-trees are generalisation of binary trees where it can have more than 2 children.

Traversal of trees helps in insertion, deletion, modification of nodes in tree data structure

4 0
4 years ago
Need help on question 5! no links pls
kherson [118]

Answer: less than 50%, it’s about 49%

Explanation:

6 0
3 years ago
Read 2 more answers
Can someone please give me two (2) thesis statement for this question?
ira [324]

Answer: On a personal note it has changed not a bit, i go to online school so nothing has changed.

Explanation:

3 0
3 years ago
Other questions:
  • If you want to open an application that does not have a tile pinned to the start menu
    9·1 answer
  • How to make a slideshow out of pictures in a folder windows not fitting to screen?
    13·1 answer
  • Answer the following Python Interview questions • How is Python an interpreted language? • What is the difference between Python
    10·1 answer
  • Question 11
    11·1 answer
  • A number of related records that are treated as a unit is called
    6·1 answer
  • Fill in the blank
    15·1 answer
  • Objectives
    8·2 answers
  • How do you think Beyoncé choreography has/will influence the future of dance?
    9·2 answers
  • Write the steps involving coping and pasting a file in a folder​
    5·1 answer
  • You have probably heard of wearable fitness devices, such as FitBit. What new products do you think might exist in this field in
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!