A) tick the correct answers.
1. Which of these is the correct method to create a rectangle?
Ans- GraphicsWindow.DrawRectangle ( X,Y, Width,Height)
2. Which of these properties let you change the fill colour of the shape to the drawn?
Ans- brushcolor
3. Which of these methods let you write text in the graphic window?
Ans- Drawtext()
4. Which of these properties allow you change the thickness of text?
Ans- Boldfont
5. Which of these can be used to make text italic in GraphicsWindow?
Ans-GraphicsWindow.FontItalic=True
B) fill in the blanks.
1. Pixels are is small dot on the screen.
2. The penwidth property allow you to set the wiidth of the pen
3. The draw line method help you to draw a line in the graphics window.
4. You can draw an ellipse using the draw ellipse()method
5. The font name property is used to specify the font type.
C) write true and false statements.
1. pixels are the basic unit of a display.true
2. You cannot set colour in small basic by using RGB codes -false
3. The draw ellipse method is used to draw an ellipse on the screen -True
4. Regulation refer to the size of an image-false
5. You can type text at a desired location in the graphic window-true
1. What is graphics window?
Ans- ``Graphics'' window controls how molecules are drawn. Molecules are represented by reps, which are defined by four main parameters: the selection, the drawing method, the coloring method, and the material.
2. Differentiate between Pan colour and brush colour properties.
Ans- PenColour property set the colour of the border/ outline of the shape of the graphic window and brass colour property set the desire brush colour to fill colour in shape drawn on the graphic window.
3. Which method is used to type text in a graphic window? Explain also mention its Syntex.
Ans-the draw text method also you to type desired text at a specified location in the graphic window.
Syntex- GraphicsWindow.DrawText (x,y,"text")
4. Describe any two properties of the drawtext () method.
Ans- the draw text method also you to type desired text at a specified location in the graphic window.
FontName: this property is used to specify the font type to be used when drawing text on the graphic window.
5. Describe the method used to draw a rectangle and an ellipse in the graphic window.
Ans- this method allows you to draw a rectangle on the graphic window as for the given dimensions and this method is used to draw ellipse on the graphic window from a starting position (X,Y) by using the mentioned height and breadth value.
Thanks sir
ReplyDelete