Line 5 – What numbers will be generated?

```1 int numList[1000];
2 srand(123);
3 for(int i = 0; i<1000; i++)
4 {
5 numList[i] = rand()%1000 +5;
6 cout << numList[i];
7 }```

A. 5 through 1000
B. 0 through 1004
C. 5 through 1004
D. compiler error – there should be a number in the parentheses for rand()


C

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ is a subset of resources that exchanges status information about parts of a project through a network.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Briefly describe IP route on a Cisco router.

What will be an ideal response?

Computer Science & Information Technology

An extranet is a segment of the DMZ where no authentication and authorization controls are put into place.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Matt, a systems security engineer, is determining which credential-type authentication to use within a planned 802.1x deployment. He is looking for a method that does not require a client certificate, has a server side certificate, and uses TLS tunnels for encryption. Which credentialtype authentication method BEST fits these requirements?

A. EAP-TLS B. EAP-FAST C. PEAP-CHAP D. PEAP-MSCHAPv2

Computer Science & Information Technology