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
charle [14.2K]
3 years ago
9

Which line in the following program will cause a compiler error?

Computers and Technology
1 answer:
kumpel [21]3 years ago
4 0

Answer:

Line number 7.

Explanation:

If I am not wrong, the first line in this question would be #include<iostream>. That is used to add input and output stream of the program.

if we look at the line 1,2,3. These are just the packages/definition required to start a program.

Line 4 starts the main program and line 5 starts the block of main program. The block ends at line 10. So ,there should be no error in line 4,5 and 10.

If we look at line 6, we can see a constant integer(const int MY_VAL = 77) definition and initialization.

The main problem is, you cannot assign a value to a constant (MY_VAL) except during initializing stage.

Therefore, the line 6 is also true. However, this program is further trying to assign a value to constant at line 7. Therefore, the compiler will throw error (ERROR; assigning to const value).

You might be interested in
When selecting font size in a document, ____ points equals one-inch-tall text?
IgorC [24]
Hello <span>Jhigg4685 
</span><span>

Answer: When selecting font size in a document, 72 points equals one-inch-tall text?


I hope this helps
-Chris</span>
3 0
4 years ago
The term 'dns' stands for
mamaluj [8]
A. Domain Name System
8 0
3 years ago
Read 2 more answers
Universal Containers wants all users to be able to see the Position records, but only the recruiters should be able to see the P
Masteriza [31]

Answer:

Option (D) i.e., Field Level Security is the correct answer.

Explanation:

In the following statement, there is some information is missing that is options.

A). Record Type.

B). Page Layout.

C). Profile.

D). Field Level Security.

Field level security is that type of settings by which the admin denied access to the other person to edit or modify a particular field. That's why they use the following feature by which the user can only see the position records and users unable to edit or modify the following records but the recruiter can only see the Pay Grade. So, that's why the following option is correct.

6 0
3 years ago
Double any element's value that is less than controlValue. Ex: If controlValue = 10, then dataPoints = {2, 12, 9, 20} becomes {4
Aleksandr [31]

Answer:

import java.util.Scanner;

public class StudentScores

{

public static void main(String[] args) {

 Scanner scnr = new Scanner(System.in);

 final int NUM_POINTS = 4;

 int[] dataPoints = new int[NUM_POINTS];

 int controlValue;

 int i;

 controlValue = scnr.nextInt();

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

     dataPoints[i] = scnr.nextInt();

 }

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

     System.out.print(dataPoints[i] + " ");

 }

 System.out.println();

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

     if(dataPoints[i] < controlValue){

         dataPoints[i] = dataPoints[i] * 2;          

     }

     System.out.print(dataPoints[i] + " ");

 }

}

}

Explanation:

*Added parts highligted.

After getting the control value and values for the array, you printed them.

Create a for loop that iterates through the dataPoints. Inside the loop, check if a value in dataPoints is smaller than the contorolValue. If it is, multiply that value with 2 and assign it to the dataPoints array. Print the elements of the dataPoints

5 0
3 years ago
Read 2 more answers
Search boxes are used to
soldi70 [24.7K]
My guess would be D.
6 0
3 years ago
Other questions:
  • Graphics that contain movement are often referred to as<br>..........​
    6·2 answers
  • In GamePoints' constructor, assign teamWhales with 500 and teamLions with 500. #include using namespace std; class GamePoints {
    13·1 answer
  • The blank contains the computer's brain the central processing unit CPU
    8·1 answer
  • How can I get answers on Collage Board for AP classes when using the inspect element? (AP WORLD HISTORY)
    13·1 answer
  • There are some network modeling tools that can ________ the existing network.
    12·2 answers
  • What is the output of the following program?
    12·2 answers
  • The right to make others do things is referred to as _________.
    14·2 answers
  • From a database point of view, the collection of data becomes meaningful only when it reflect
    8·1 answer
  • Converting denary no 41 to binar
    12·1 answer
  • Is the<br>transmission and reception<br>of data between locations?​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!