GIAC
GSSP-NET · Question #269
You work as a Software Developer for ManSoft Inc. The company uses Visual Studio .NET as its application development platform. You create an application named MyRandomGen. You use the…
The correct answer is A. for(int x = 0; x <= 50; x++). See the full explanation below for the reasoning.
Question
You work as a Software Developer for ManSoft Inc. The company uses Visual Studio .NET as its application development platform. You create an application named MyRandomGen. You use the System.Security.Cryptography namespace. You want to create a code that randomly rolls the dice fifty times and displays the results on the screen. Which of the following code segments will you use to accomplish this task?
Options
- Afor(int x = 0; x <= 50; x++)
- Bfor(int x = 0; x <= 50; x++)
- Cfor(int x = 0; x <= 50; x++)
- Dfor(int x = 0; x <= 50; x++)
How the community answered
(30 responses)- A70% (21)
- B10% (3)
- C17% (5)
- D3% (1)
Community Discussion
No community discussion yet for this question.