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
topjm [15]
3 years ago
15

Which statement is false?If a value should not change in the body of a function to which it is passed, the value should be defin

ed const to ensure that it is not ac-cidentally modified.Attempts to modify the value of a variable defined const are caught at execution time.One way to pass a pointer to a function is to use a non-constant pointer to non-constant data.It is dangerous to pass a non-pointer into a pointer argument.
Computers and Technology
1 answer:
Norma-Jean [14]3 years ago
8 0

Answer:

Attempts to modify the value of a variable defined const are caught at execution time

Explanation:

The false statement among the options is Attempts to edit the value of a variable defined const are caught at execution time while other options are true.

A const variable should not be modify because the main reason of having a const variable is not to make modifying it possible. If you prefer a variable which you may likely want to modify at some point, then don't just add a const qualifier on it. Furthermore, Any code which modify's a const by force via (pointer) hackery invokes Undefined Behavior

You might be interested in
Write a static method, getBigWords, that gets a single String parameter and returns an array whose elements are the words in the
ZanzabumX [31]

Answer:

import java.util.*;

public class Solution {

   public static void main(String args[]) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter the words.");

       String userInput = scan.nextLine();

       

       String[] splitedString = userInput.split(" ");

       getBigWords(splitedString);

       

   }

   

   public static void getBigWords(String[] listOfWord){

       ArrayList<String> list = new ArrayList<String>();

       

       for(int i = 0; i < listOfWord.length; i++){

           if(listOfWord[i].length() > 5){

               list.add(listOfWord[i]);

           }

       }

       

       for (String temp : list) {

  System.out.println(temp);

 }

   }

}

Explanation:

The first line is the import statement which import the classes needed for this class: Scanner and ArrayList.

The class was defined as Solution. Then, the main method is defined. Inside the main method a scanner object is created called scan to receive user input.

The user is prompted for input, which is stored as userInput. The userInput is then splitted and stored in an array called splitedString.

The method that perform the string manipulation is called getBigWords, the method take the splittedString as a parameter.

Next, the getBigWords method is defined; it takes an array as parameter. The parameter is called listOfWord. Inside the getBigWords method, an ArrayList called list is initialized. The list is to hold string whose length is more than 5.

The first for-loop loop through the listOfWord and check if any element has length greater than 5. If there is, the element is added to the list arraylist.

The second for-loop loop through the list to output the words whose length is greater than 5.

7 0
3 years ago
Which View option allows you to view your document as it would appear when posted online?
kondaur [170]

I assume this is in regards to Microsoft Word?


If so, then the Web Layout view will allow you to view the document as it would look on a webpage.

3 0
4 years ago
Kelly arrives for work at a restaurant at 5:00 p.m. Once there, she washes and chops vegetables, then sets aside ingredients and
kari74 [83]

Answer:

ExplanKelly arrives for work at a restaurant at 5:00 p.m. Once there, she washes and chops vegetables, then sets aside ingredients and organizes them for the cook. Kelly is most likely a  

✔ Food Preparation Worker

.

Mark's work hours change every week, depending on when he is needed. He wears a suit and tie to work at an elegant restaurant. He greets guests and seats them in a waiting area. He then guides them to their tables. Mark is most likely a  

✔ Host

3 0
3 years ago
Read 2 more answers
What does a production possibilities curve represent?Which of the following statements are true? Economic stability means fair d
REY [17]

Answer:

<u>What does a production possibilities curve represent?</u>

The Production Possibilities Curve (PPC) is a model used to show the tradeoffs associated with allocating resources between the production of two goods. The PPC can be used to illustrate the concepts of scarcity, opportunity cost, efficiency, inefficiency, economic growth, and contractions.

<u>Which of the following statements are true? </u>

Full employment is a macroeconomic goal.

4 0
3 years ago
What are the special features of fifth generation that makes it different from the other generations?​
Salsk061 [2.6K]

Answer:

The answer to this question is given below in this explanation section.

Explanation:

               "features of fifth generation"

The fifth generation computer system was an initiative by japans ministry of international trade and industry,begun in 1982,to create computer using massively parallel computing and logical programming.It was to be the result of massive government industry research project in japan during the 1980.It aimed to create an epoch making computer with supercomputer liked performance and to provide a platform for future development in artificial intelligence.There was also an unrelated Russian project also named as the fifth generation computer.

The term fifth generation was untended to convey the system as being a leap beyound existing machines.In the history of computing hardware,computer using vacuum tubes were called the first generation;transistors and diodes,the second;integrated circuits,the third;and those using microprocessors,the fourth.Whereas previous computer generation had focused on increasing the number of logic elements in a single CPU,the fifth generation,it was instead turn to massive numbers of CPU for added performance.

5 0
3 years ago
Other questions:
  • Which resource helps a user access a cloud service?
    13·2 answers
  • The linux command _______ can be used to list the current disk devices connected to the computer.
    8·1 answer
  • What does a counterweight do for a mine winding system
    13·1 answer
  • How do you send a private message on facebook to someone who is not your friend?
    9·1 answer
  • On a pie chart, the different sections or "wedges" show:
    9·1 answer
  • Let L be any r.e. language. We know that there is an unrestricted grammar for L. Show that L can be generated by an unrestricted
    10·1 answer
  • What are the components inside the case typically draw power from a cable connected to the motherboard instead of being connecte
    6·2 answers
  • Jeremy is working with a team that is creating an application using attributes and associated methods. What type of programming
    8·1 answer
  • JAVA
    10·1 answer
  • CLS
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!