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
Fudgin [204]
3 years ago
10

- The __________ is called a single-selection statement.

Computers and Technology
1 answer:
VladimirAG [237]3 years ago
7 0

Answer:

The correct answer to this question is "if".

Explanation:

The answer is if because selection statement selects among a set of statements depending on the value of a regulating expression. In the selection statement there we use two conditional statements that can be given as

1) If statement.

2) Switch statement.

If statement:

it is used to execute a block of code. If the expression is evaluated to true it executes. In that else statement is optional.

Syntax:

if(condition)

{

//code;

}

else //(optional)

{

//code;

}

The if  statement single-selection statement. because it always  execute true value.So the correct answer is if.

You might be interested in
In a single statement: declare, create and initialize an array named a of ten elements of type int with the values of the elemen
Verizon [17]

Answer:

int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};

Explanation:

//written in java

The left side <u>int[] a</u> Declare a variable(a) which is of type Integer array(<u>int[]</u>).

The equal sign(=) assign the right side to the left side.

The right side initialize the integer array(a) with ten element.

6 0
3 years ago
How many bits are required to encode an image that is 25 pixels wide and 50 pixels tall, if you encode each pixel with 12 bits o
AURORKA [14]

Just multiply all numbers to get the total number of bits:

25*50*12 = 15000 bits.

3 0
3 years ago
How to build a 5*32 decoder by using 3*8 and 2*4 decoders? (digital design)
quester [9]
Assuming decoders with enabler.
input with rectangle is the ENABLE input.
wire with "/" on it is a bundled wire with multiple values to save drawing space.
In1 is MSB, In5 is LSB.

messy drawing as I'm in vehicle.

8 0
3 years ago
Write a method that takes three numerical String values and sums their values.
Sphinxa [80]

Answer:

<u>Algorithm</u>:

  1. Take a int variable c=0.
  2. Run the loop from 0 to String length.
  3. Get the each index value using charAt() method which will return the char value.
  4. Convert that char into int by typecasting or any other way.
  5. Now check that ASCII fall into the range of 48-57 for 0-9 int number.
  6. If it matches then first convert that number into integer using Integer.parseInt().
  7. Then add with the c and store to the same variable i.e c.
  8. Repeat from 3-7 till the end of the loop.
  9. At the end of loop , Print c outside the loop.

Explanation:

// Java program to calculate sum of all numbers present  

// in a string containing alphanumeric characters  

class GFG  

{  

   // Function to calculate sum of all numbers present  

   // in a string containing alphanumeric characters  

   static int findSum(String str)  

   {  

       // A temporary string  

       String temp = "";  

       // holds sum of all numbers present in the string  

       int sum = 0;  

       // read each character in input string  

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

       {  

           char ch = str.charAt(i);  

           // if current character is a digit  

           if (Character.isDigit(ch))  

               temp += ch;  

           // if current character is an alphabet  

           else

           {  

               // increment sum by number found earlier  

               // (if any)  

               sum += Integer.parseInt(temp);  

               // reset temporary string to empty  

               temp = "0";  

           }  

       }  

       // atoi(temp.c_str()) takes care of trailing  

       // numbers  

       return sum + Integer.parseInt(temp);  

   }    

   // Driver code  

   public static void main (String[] args)  

   {      

       // input alphanumeric string  

       String str = "1abc5yz7";  

       System.out.println(findSum(str));  

   }  

}  

4 0
3 years ago
Read 2 more answers
What of the following can a cell contain? A number a word a function of these
EastWind [94]
A function of these
8 0
3 years ago
Other questions:
  • Local variables:
    7·1 answer
  • What would be the best thing you could do to prepare yourself to work for a company that has embraced globalization?
    9·2 answers
  • Can a percent be used in a filename?
    13·1 answer
  • When creating a password, users tend to use Select one: a. All capital letters b. Passwords that are too long c. Familiar phrase
    9·1 answer
  • Pinterest, a visual bookmarking Website, logs more than 14 terabytes of new data each day, which means its storage needs are con
    10·1 answer
  • Who were the big players in the yellow journalism movement?
    7·1 answer
  • We need ____ pointers to build a linked list.
    6·1 answer
  • Which of the following is defined in terms of their activities related to denial-of-service attacks? Cracker Script kiddie White
    6·1 answer
  • In what order does the Cascade look at factors to determine which CSS rule to follow?
    14·1 answer
  • PLEASE HELP
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!