PrepAway - Latest Free Exam Questions & Answers

Which lines of code should you use at line PG33?

You need to set the default print options according to the requirements.
Which lines of code should you use at line PG33? (Each correct answer presents part of the solution.
Choose all that apply.)

PrepAway - Latest Free Exam Questions & Answers

A.
printTask.Options.Orientation = a PrintOrientation.Portrait;

B.
printTask.Options.Orientation = Print.Default = Portrait;

C.
printTask.Options.MediaSize = Print.Default = MediaSize.Legal;

D.
printTask.Options.ColorMode = Print.ColorDefault = Grayscale;

E.
printTask.Options.ColorMode = PrintColorMode. Grayscale;

F.
printTask.Options.MediaSize = PrintMediaSize.Letter;

Explanation:

A: PrintOrientation enumeration
Specifies the orientation options for the printed output
Portrait | portrait (value 3), The Portrait orientation option.
E: We can also choose what we feel the default setting should be. Maybe we really wanted the Color
Mode to be set to grayscale rather than color.
printTask.options.colorMode = _printing.PrintColorMode.graysc
From scenario:
Printing:
The default printing options are portrait orientation and grayscale color mode.
The app must enable the user to select the media size and printing orientation.


Leave a Reply