Which of the following statements guarantees that the bit 3 will be a 1?

A. y & 0x04
B. y ^ 0x04
C. y | 0x04
D. y && 0x04
E. y || 0x04


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following is not a sequence container provided by the STL?

a. vector b. array c. list d. deque

Computer Science & Information Technology

Identify the processes running on a computer, the protocol they are using, and their local and remote port addresses.

For a hacker to establish a connection to a remote computer, a port must be listening on that device. This may be due to infection by malware, or a vulnerability in a legitimate piece of software. A utility, such as TCPView, can be used to detect open ports, monitor them in real-time, and close active ports and processes using them.

Computer Science & Information Technology

_____ links are the most common type of hyperlink.?

A. ?Server B. ?Proxy C. ?Text D. ?Protocol

Computer Science & Information Technology

Which code fragment would correctly identify the number of arguments passed via the command line to a Java application, excluding the name of the class that is being invoked?

a. int count = args.length; b. int count = args.length - 1; c. int count = 0; while (args[count] != null) count ++; d. int count=0; while (!(args[count].equals(""))) count ++;

Computer Science & Information Technology