int x, y;if (x < 4) y = 2;else if (x > 4){ if (x > 7) y = 4; else y = 6;}else y = 8;Based on the code above, what is the value of y if x = 1?
A. 2
B. 4
C. 6
D. 8
Answer: A
You might also like to view...
Which of the following syntaxes displays a dialog box, causing the user to enter input text?
A. alert(text[,defaultInput]) B. confirm(text[,defaultInput]) C. prompt(text[,defaultInput]) D. print(text[,defaultInput])
The current term for the MAC address numbering name space, as defined by the IEEE, is ____________________.
Fill in the blank(s) with the appropriate word(s).
Ann, a security administrator, has been instructed to perform fuzz-based testing on the company's applications.Which of the following best describes what she will do?
A. Enter random or invalid data into the application in an attempt to cause it to fault B. Work with the developers to eliminate horizontal privilege escalation opportunities C. Test the applications for the existence of built-in- back doors left by the developers D. Hash the application to verify it won't cause a false positive on the HIPS
Given the following pseudocode, how many times will module B030 be called?
``` Start Process B000 DOWHILE not EOF Process B010 IF condition THEN Process B020 (ELSE) ENDIF ENDDO Process B020 Process B030 Stop ``` a) 0 or more times b) exactly 1 time c) 1 or more times d) cannot be determined