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
tester [92]
3 years ago
5

When a dynamic array with a class for a base type is declared, which constructor is called?

Computers and Technology
1 answer:
kati45 [8]3 years ago
5 0
The default constructor is called for each element of the array. So if you declare an array with 100 elements (object instantiations), the constructor is executed 100 times!
You might be interested in
If you answer these questions correctly I will mark you BRAINLIST.
dezoksy [38]

Answer:

• a break element is used to break a while loop in python.

• the <p></p> element is the paragraph element in html. For example a note could be <em><p>This paragraph is important.</p> </em>When highlighting something important, use the <em>strong </em>tag or <em>mark</em> tag.

<em>• </em>the <hr> function can be used to separate a title from multiple columns or paragraphs to give a more bootstrap(probably 3 or 4) look.

• the body element is extremely important in HTML because if you don't have a body, you can't write working code-lines.

5 0
2 years ago
You are troubleshooting a computer that is in the design phase. The problem you see is that the CPU is not receiving information
IgorC [24]

Answer:

The correct option of the following question is c). control bus.

Explanation:

A control bus is a bus of the computer system which is use by the CPU(Central Processing Unit) to communicate with the devices which are contained with the computer.

CPU transmits the variety of the control signals to devices and components to transmits the control signal to the CPU by using control bus. One of the main objective of the bus is to minimize lines which are needed for the communication.

3 0
3 years ago
Create a program in c/c++ which accepts user input of a decimal number in the range of 1 -100. Each binary bit of this number wi
kirill115 [55]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

void switch_fun(int input)

{

//array to store binary of input number

   int bin[7];

   // convert the number into binary

   for(int i=0; input>0; i++)

       {

           bin[i]=input%2;

           input= input/2;

       }

   // print the switch number and their status

   cout<<"Switch number:\t 1\t 2\t 3\t 4\t 5\t 6\t 7 \n";

   cout<<"status:      ";

   for(int j=6;j>=0;j--)

   {

   // if bit is 1 print "ON" else print "OFF"

       if(bin[j]==1)

           cout<<"\t ON";

       else

           cout<<"\t OFF";

   }

}

int main()

{

   int n;

   cout<<"enter the number between 1-100 only:");

   // read a number in decimal

   cin>>n

   // validate the input

   while(n<1 ||n>100)

   {

     cout<<"wrong input!! Input must be in between 1-100:"<<endl;

     cout<<"enter the number again :";

     cin>>n;

   }

// call the function with input parameter

  switch_fun(n);

return 0;

}

Explanation:

Read a decimal number from user. If the number is not between 1 to 100 the it will again ask user to enter the number until the input is in between 1-100.Then it will call the fun() with parameter n. First it will convert the decimal to binary array of size 7.Then print the status of switch.If bit is 1 then print "ON" else it will print "OFF".

Output:

enter the number between 1-100 only:-5

wrong input!! Input must be in between 1-100:

enter the number again :125

wrong input!! Input must be in between 1-100:

enter the number again :45

Switch number:   1       2       3       4       5       6       7

Status:          OFF     ON      OFF     ON      ON      OFF     ON

8 0
4 years ago
​ A wire service is also known as a ____.
charle [14.2K]
The answer is C press agency
4 0
4 years ago
You can remove selected text from a slide by pressing ctrl+x keyboard shortcut keys true or false
Serhud [2]
Yes, I believe so. It will cut/delete the part of the sentence you highlighted, then it will be saved to be put somewhere else. Just press ctrl-v to paste the deleted sentence. (True)
5 0
4 years ago
Other questions:
  • What is the result of segmenting a network with a bridge (switch)? (Choose two)
    14·1 answer
  • Interpersonal skills are extremely important in production management. true or false
    10·1 answer
  • When creating a software package, the software must be designed, the code must be written, and then the code must be tested. Thi
    6·1 answer
  • Your grandmother tells you a dollar doesn’t go as far as it used to. She says the “purchasing power” of a dollar is much less th
    13·1 answer
  • What date does GTA 6 come out<br> A. 2020<br> B. 2019<br> C. 2021<br> D. 2022
    10·2 answers
  • What is the range of the set of ordered points defined below?
    5·2 answers
  • What file in the user account folder stores user settings?
    8·1 answer
  • A __________ note is a private note that you leave for yourself or for other people who might use the presentation file
    9·1 answer
  • Write the code for the following problem.
    9·1 answer
  • Decades of research throughout the world have found a _____ correlation between academic achievement and socioeconomic status, l
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!