Answer:
The answer to this question is option "b".
Explanation:
In the method definition, we perform swapping. To perform swapping we define a variable "temp" that swap values of variable p1 and p2 and store in array that is "values". and other options are not correct that can be defined as:
- In option a, It does not insert any new value in array because we do not pass any value in function.
- In option c, The function does not copy and assign a value in a new array because in this function we not assign any new array.  
- In option d, It is incorrect because it can not move an element into high index position. 
 
        
             
        
        
        
Answer:
step 1:- start
step 2:-read principal amount, rate and time
step 3:- calculate interest using formula sI=((amount*rate*time)/100)
step 4:- print simple interest
 step 5:- //CPP program to find compound interest for. //given values 
 
        
             
        
        
        
Answer:
const MAXNR=150;
let candidates = {};
for(let i=2; i<=MAXNR; i++) {
    candidates[i] = true;
}
for(let p=2; p <= MAXNR; p++) {
    if (candidates[p]) {
        process.stdout.write(`${p} `);
        // Now flag all multiples of p as false
        i=2;
        while(p*i <= MAXNR) {
            candidates[p*i] = false;
            i++;
        }
    }
}
 
        
             
        
        
        
Answer:
b. Play music
Explanation:
Digital technology helps improve an existing process and makes things better. In this scenario of an MP3 player, digital technology takes care of music. Before a portable MP3 player came into the picture, people had to carry large physical records or multiple CD packs but now, a small device can hold thousands of those same songs in it.