.EXE as they are executable programs. However, it depends on the operating system
Answer:
Option (c)
Explanation:
Parallel arrays are those arrays which are used to store some records which needs more than one array to hold a entry but are interrelated and should be accessed by same index number. As they are of different data types so can't be stored as multi-dimensional array or matrix. Then parallel array comes to rescue. For example : Details of a student.
Name, age and ID of a student needs to be stored. So, three arrays can be made and each entry should be accessed by same index number.
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++;
}
}
}