What is the output of the following code, if the user enters the sequence 10 17 35 7?

const int MAX = 4;
int items[MAX];
for (int i = 0; i < MAX; i++)
cin >> items[i];
items[2] += 2;
for (int i = 0; i < MAX; i++)
cout << items[i] << “ “;

a) 12 19 37 9
b) 10 2 35 7
c) 10 17 37 7
d) 10 19 35 7

c) 10 17 37 7

Computer Science & Information Technology

You might also like to view...

Which of the following will determine the variance of a population?

A) VARPA B) VAR.P C) VAR.S D) VARA

Computer Science & Information Technology

A network administrator is tasked to block all outbound SSH connections on the default port from a network subnet of 10.152.8.0/21 on a Linux based firewall. Which of the following rule sets would accomplish this task?

A. iptables -i OUTPUT -d 10.152.8.0/21 -p TCP --dport 22 -j REJECT B. iptables -i OUTPUT -d 10.152.8.0/21 -p TCP --dport 23 -j REJECT C. iptables -i OUTPUT -d 10.152.8.0/21 -p TCP --dport 22 -j ACCEPT D. iptables -i OUTPUT -d 10.152.8.0/21 -p TCP --dport 23 -j ACCEPT

Computer Science & Information Technology