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
SIZIF [17.4K]
4 years ago
7

Using static arrays, depending on the number of servers specified by the user, a list of servers is created during program execu

tion.
True

False
Computers and Technology
1 answer:
Lunna [17]4 years ago
4 0

Answer:

False

Explanation:

Static arrays are stored on the stack , having fixed size and scope within functions.

Example-

               int arr[10];

Static arrays can't update the values given by the user at the time of execution, they are initialized with some default values.So,we can't create list of servers at the time of program execution.  

But we can create list of servers using Dynamic arrays, because size is not fixed as it stores in heap and update at the time of execution.  

Example-  

              int* arr = new int[10];

              delete[] arr;

You might be interested in
Define stubs for the functions get_user_num() and compute_avg(). Each stub should print "FIXME: Finish function_name()" followed
elena-14-01-66 [18.8K]

Answer:

Replace your solution goes here with the following:

def compute_avg(num1, num2):

   func_name = "compute_avg()"

   print("FIXME: "+func_name)

   return -1

def get_user_num(user_num):

   func_name = "get_user_num()"

   print("FIXME: "+func_name)  

   return -1  

Explanation:

This defines the compute_avg function

def compute_avg(num1, num2):

This sets the function name

   func_name = "compute_avg()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1

   return -1

This defines the get_user function

def get_user_num(user_num):

This sets the function name

   func_name = "get_user_num()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1  

   return -1  

4 0
3 years ago
Which social media platform provides filters that alter the user's face by smoothing and whitening skin, changing eye shape, nos
Olegator [25]

Answer: Snap-chat

Explanation:

is a social media platform application developed for mainly sharing of photos with the use of some special filters which are able alter how the person looks. examples of such filters are filters that alter the user's face, smoothing and whitening the users skin, changes the eye shape of the user, alters the nose size and jaw profile of the individual using the app. Snap chat has become a photo favorite for many young people today and celebrities alike.

5 0
3 years ago
A metallic reflector provides what kind of bounced light
katen-ka-za [31]
<span>a reflector is an improvised or specialised reflective ... Also known as plane reflectors, "flats" or bounce boards, this kind of reflector is located independent of a light source; ... Hence bounce lighting may provide either the primary or secondary (fill) light source, depending on its intensity.</span>
5 0
3 years ago
21. Dice Game Write a program that plays a simple dice game between the computer and the user. When the program runs, a loop sho
Brrunno [24]

Answer:

See Explanation Below

Explanation:

// Program is written in C++ programming language

//.. Comments are used for explanatory purposes

// Program starts here

#include<iostream>

#include <stdlib.h>

#include <time.h>

using namespace std;

int main()

{

int computerWins = 0, computerPlay = 0;

int userWins = 0, userPlay = 0;

int tiedGames = 0;

// Computer Play

for (int play = 0; play< 10; play++) {

   computerPlay = rolls();

   userPlay = rolls();  

   // Check who wins

//Clear Screen

System("CLS")

   if (computerPlay == userPlay) {

       tiedGames++;

cout<<"Ties........" + tiedGames;    }

else {

       if (computerPlay> userPlay) {

           computerWins++;

cout<<"Computer...."<< computerWins;

       } else {

           userWins++;

cout<<"User........"<< userWins;

      }

  }

}

return 0;

}

int rolls() {

srand((unsigned)time(0));

return rand() % 6 + 1;

}

5 0
3 years ago
Given 3 random numbers.
Mila [183]

Explanation:

I do not know php, but can do in C/Java

8 0
3 years ago
Other questions:
  • In a five-choice multiple-choice test, which letter is most often the correct answer?
    7·2 answers
  • In Python, if var1 = "Happy" and var2= "Birthday" and var3 = (var 1+var2) *2, then var3 stores the string
    6·1 answer
  • Help Me Please. I'm Begging you
    6·1 answer
  • When Mark completed his research paper, he decided that he wanted to have all headings to be in bold, underlined, and 14 points.
    11·1 answer
  • HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!!!
    12·1 answer
  • Which of these are part of the CPU?<br> O peripheral<br> O HDMI cord<br> O core<br> O keyboard
    8·1 answer
  • What are two examples of ways an electronic record may be distributed to others
    12·1 answer
  • Types of digital divide ​
    15·1 answer
  • Which of the following terms refers to the cells that contain values and labels to be graphed in the chart?.
    6·1 answer
  • Select all the correct answers.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!