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
iris [78.8K]
4 years ago
7

Namespaces cannot have namespaces as members. True False

Computers and Technology
1 answer:
Anna71 [15]4 years ago
5 0

Answer:

False

Explanation:

namespaces can be nested. That is we can have a hierarchy of namespaces.

For examples suppose we have a namespace top. Within this we have another namespace first. At the next level we have a namespace called second. Then we have a class MyClass as a member of this namespace second. Then the complete description of the class will be as follows:

top::first::second::MyClass

You might be interested in
What happens when two computers use the same IP address?
OLga [1]

Two computers can safely have the same IP address in certain cases. In most cases, if those two computers are on the same local network, it breaks connectivity for one or both of them. Internet protocols work by sending small, individually addressed messages. Each message can be routed differently.

I hope this helps you.

6 0
3 years ago
Assume the variable sales references a float value. Write a statement that displays the value rounded to two decimal points.Assu
romanna [79]

Answer:

The statement is as follows:

print("{0:,.1f}".format(number))

Explanation:

Required

Statement to print 1234567.456 as 1,234,567.5

To do this, we make use of the format keyword, and we set the print format in the process.

To round up number to 1 decimal place, we use the following format:

"{0:,.1f}"

To include comma in the thousand place, we simply include a comma sign before the number of decimal place of the output; i.e. before 1

"{0:,.1f}"

So, the print statement is:

print("{0:,.1f}".format(number))

3 0
3 years ago
Given integer variables totalTickets, vipTickets, and sessionNum, which line of code correctly calls the following function? voi
alekssr [168]

Given integer variables <em>'totalTickets, vipTickets, and sessionNum'</em>, the line of code given in option C correctly calls the following function: "<em>void FinalTally(int* totalAttendees, int* vipAttendees, int numSessions);</em>"

The correct function call with the variables named <em>'totalTickets, vipTickets, and sessionNum</em>' is as follows:

<em>FinalTally(&totalTickets, &vipTickets, sessionNum); </em>

A function call refers to an expression that passes control and arguments (if there are any) to the specified function and has the syntax as <em>FunctionName (argumentList</em>) where <em>FunctionName is the name of the function to be called and argumentList indicates the list of arguments (separated by commas) to be passed to the calling function</em>.

"

<u><em>Correct question is as follows:</em></u>

Given integer variables totalTickets, vipTickets, and sessionNum, which line of code correctly calls the following function? void FinalTally(int* totalAttendees, int* vipAttendees, int numSessions);

a. FinalTally(totalTickets, vipTickets, &amp;session Num);

b. FinalTally(&amp;totalTickets, &amp;vipTickets, session Num);

c. FinalTally(&totalTickets, &vipTickets, sessionNum);

d. FinalTally(&amp;totalTickets, &amp;vipTickets, &amp;session Num);

"

You can leran more about Function Call at

brainly.com/question/28566783

#SPJ4

3 0
1 year ago
Which type of document should Omar print?
Zinaida [17]

Well it depends on the topic he is doing. if it is a list then a plain doc with a list of numbers. if he is writing a letter then he should use the letter template.

7 0
3 years ago
Read 2 more answers
Ann has always wanted to be the person on the news broadcast who delivers the weather updates. She’s looking into becoming a bro
Marrrta [24]
The answer should be A.
5 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program named TypingGrades that allows a user to enter a student’s number of words typed. The output is the letter grade
    9·1 answer
  • What is the function of a data bus
    11·1 answer
  • A virus that attaches to an executable program can do anything that the program is permitted to do.
    7·1 answer
  • What are three reasons teens might start drinking alcohol??
    7·2 answers
  • Jake is preparing his resume. He is applying for the position of iOS application developer at a large software company. He wants
    6·1 answer
  • Write two statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and
    5·1 answer
  • Explain briefly the purpose of the Computer Management Console in Microsoft Windows.
    12·1 answer
  • What is the device that is non-volatile sometime called external memory?<br>​
    15·1 answer
  • Please help me with this this is Computer chapter Advanced HTML of class 8th​
    10·1 answer
  • Big data are _____. Select 2 options. (please help!)
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!