When using the rand() function, how do you ensure that you will obtain the same series of numbers?

A. Pass srand() the same seed value.
B. Call it from a different location in the code.
C. Use the modulus operator with a different number after it.
D. You can’t. You always obtain random numbers.


A

Computer Science & Information Technology

You might also like to view...

The condition expression1 ^ expression2 evaluates to true when .

a) expression1 is true and expression2 is false b) expression1 is false and expression2 is true c) both expression1 and expression2 are true d) Both a and b.

Computer Science & Information Technology

"Every time we get consultants in here, they pass out some goofy questionnaire that has no meaning to us at all. Why don’t they bother to personalize it, at least a little?” asks Ray Dient, head of emergency systems. You are discussing the possibility of beginning a systems project with Pohattan Power Company (P P C) of Far Meltway, New Jersey

a. What steps will you follow to customize a standardized questionnaire? b. What are the advantages of adapting a questionnaire to a particular organization? What are the disadvantages?

Computer Science & Information Technology

Match the following terms to their meanings:

I. Enables you to adjust the bass and treble A. tracks II. The process of copying music from a CD to your hard drive B. graphic equalizer III. The process of writing files to a CD C. rip IV. Window application that manages your library of digital D. burn movies and music V. Another name for a list of songs on Windows Media Player E. Windows Media Player

Computer Science & Information Technology

Case Based Critical ThinkingCase 1Jewel has been hired by a new design company to present a workshop on clipping masks, shapes, and paths.  She is excited for the chance to play teacher, but she has had very little experience presenting to groups.  In order to show confidence during the presentation, Jewel reviewed the material and wrote extensive notes.  Unfortunately, she let her nerves get the best of her, and made several mistakes during the workshop. According to Jewel, the only way to create a shadow in your image is to draw it by hand.  What error did she make?

A. Photoshop comes complete with a gallery of shadows which can be applied to almost any image. B. To create a shadow use the Transform command to show a duplicate image of the object. C. The Create Shadow command in the Tools panel makes the addition of shadows to your image quick and easy. D. To create a shadow, use the Shadow dialog box, choose Skew Image, and click the angle of the shadow you want to appear in the image.

Computer Science & Information Technology