Computer Graphics & Digital Image Processing MCQS with Answer SET 2

No Comments »

Computer Graphics & Digital Image Processing MCQS with AnswerS

We have made some Computer Graphics & Digital Image Processing MCQS (Mulitiple Choice Questions) which helps to prepare for competitive exams and various university exams or btech computer science 6th sem exams.This might be usefulgate preparation too.


Q16. Which one of the following condition is suitable for uniform Scaling with Enlargement of Object ?

a)  Sx≠Sy  but greater than 1          b)Sx>Sy     but less than 1                              c)Sx<Sbut less than 1.                            
 d) Sx=Sbut greater than 1                       

Q17. Which one of the following condition is suitable for uniform Scaling with Compression of Object ?

a)  Sx≠Sy  but greater than 1          b)Sx>Sy     but less than 1                              c)Sx=Sbut less than 1.                            
 d) Sx=Sbut greater than 1                       


Q18. Which one of the following condition is suitable for Differential Scaling with Compression of Object ?

a)  Sx≠Sy  but less than 1          b)Sx>Sy     but less than 1                              c)Sx=Sbut less than 1.                            
 d) Sx=Sbut greater than 1                       

Q19. Which of the following statement is true :

a)      In Non-uniform Scaling , shape and size both changes.
b)      In uniform scaling , shape and size both changes.
c)      Both (a) and (b) are true.
d)      None of these.

Q20. Which of the following statement is false :

a)      In Non-uniform Scaling , shape and size both changes.
b)      In uniform scaling ,only size changes but shape remains unchanged.
c)      Both (a) and (b) are true
d)      None of these.

Q21. Which of the following is true for finding transformed object X’ , if original object X is given in the form of matrix in Row-major Order , and [T] is transformed Matrix.

a)[X’]=[X]*[T]                                                       c) None of these.
b)[X’]=[T]*[X]                                                        d) [X’]=[T]/[X].

Q22. Which of the following is true for finding transformed object X’ , if original object X is given in the form of matrix in Column-major Order , and [T] is transformed Matrix.

a)[X’]=[X]*[T]                                                       c) None of these.
b)[X’]=[T]*[X]                                                        d) [X’]=[T]/[X].

Q23. Which of the following statement is true :

a)      Determinant of a pure rotation matrix should be greater than 1.
b)      Determinant of a pure rotation matrix should be equal to 1
c)      Both (a) and (b) are true.
d)      None of these.

Q24. Which of the following matrix is the correct Transformation Matrix , if the rotation is   counterclockwise about the origin :

(a)                                                                                                       (b)
                                                                                 
(c)                                                                                                                                             (d)
                                                                                            


Q25. Which of the following matrix is the correct Transformation Matrix , if the rotation is   clockwise about the origin :
(a)                                                                                                       (b)
                                                                                 
(c)                                                                                                                                             (d)
                                                                                             

Q26. What if- condition is to be found in Boundary_fill(x,y,f_color,b_color) Algorithm ?.(Note : f_color :the color to fill the interior of polygon . b_color : the color to outline the boundary.'

 a) If(get_pixel(x,y)  == b_color && getpixel(x,y) == f_color.
b) If(get_pixel(x,y)  != b_color && getpixel(x,y) == f_color.
c) If(get_pixel(x,y)  == b_color && getpixel(x,y) != f_color.
d)If(get_pixel(x,y)  != b_color && getpixel(x,y) != f_color.

Q27. If a line is drawn from A(5,5) to B(13,9) using Bresenham’s Algorithm .Then  if First pixel is (5,5) then second pixel is :

a)(7,6)                       b)(6,6)                            c)(8,7)                                    d)(9,7)

Q28.  If a line is drawn from A(5,5) to B(13,9) using Bresenham’s Algorithm .Then  if First pixel is (5,5) then third pixel is :

a)(7,6)                       b)(6,6)                            c)(8,7)                                    d)(9,7)

Q29.  If a line is drawn from A(5,5) to B(13,9) using Bresenham’s Algorithm .Then  if First pixel is (5,5) then fourth pixel is :

a)(7,6)                       b)(6,6)                            c)(8,7)                                    d)(9,7)

Q30.  If a line is drawn from A(5,5) to B(13,9) using Bresenham’s Algorithm .Then  if First pixel is (5,5) then fifth pixel is :

a)(7,6)                       b)(6,6)                            c)(8,7)                                    d)(9,7)

Computer Graphics & Digital Image Processing MCQS with AnswerS
16 d
17 c
18 a
19 a
20 d
21 a
22 b
23 a
24 c
25 b
26 d
27 b
28 a
29 c
30 d

Computer Graphics & Digital Image Processing MCQS with Answer SET 1

No Comments »

Computer Graphics & Digital Image Processing MCQS with AnswerS

We have made some Computer Graphics & Digital Image Processing MCQS (Mulitiple Choice Questions) which helps to prepare for competitive exams and various university exams or btech computer science 6th sem exams.

Q1.  Which of the following test is to be performed to determine whether or not a point is inside of polygon?
a)clip-test
b)Inside-Outside test.
c)None Of these
d)All of these

Q2. Which of the following file structure is used to enter the Polygon via line and point approach?
a)Polygon Drawing Primitive approach
b)Trapezoid Primitive approach
c)Display File Structure.
d)None of these.

Q3. The approaches used to represent the polygon , in reference to Computer Graphics are :
a)Polygon Drawing Primitive approach
b)Trapezoid Primitive approach
c)Line and Point approach
d)All of these.

Q4. Which of the following approach is not used for filling Polygon ?
a)Seed-fill
b)Flood-fill
c)Boundary-fill
d) None of These

Q5. The Point is considered outside the polygon , if value of winding number is:
a)Zero                                                                   b)Non-Zero
b)one                                                                     c) None of these.

Q6. Which of the following  function used to draw the pixel with specified color ?
a)putpixel                        b)getpixel                            c)drawpixel                   d)None of These.

Q7. Which of the following algorithm is used when we want to fill the area bounded by different color boundaries ?
a)Boundary-fill Algorithm                                                b)Scan-line Algorithm
c)Flood-fill algorithm                                                          d)None of these.

                                                         
Q8. Which of the following is considered as first step to rotate an object X about an arbitrary point ?
a)      Translation   b) Rotation   c) Inverse Translation d) Scaling.

Q9. Which of the following is considered as Second step to rotate an object X about an arbitrary point ?
a)      Translation   b) Rotation   c) Inverse Translation d) Scaling.

   
Q10. Which of the following is considered as Final step to rotate an object X about an arbitrary point ?
a)      Translation   b) Rotation   c) Inverse Translation d) Scaling.

Q11. If [Tr] is a Transformation Matrix , [Rѳ] is a Rotation Matrix , inv.[Tr] is an Inverse Translation Matrix , then which of the following equation is correct to get a transformation Matrix [T]  , when object [X]  is rotated about an arbitrary point P.
a)[T]= [Tr] [Rѳ] inv.[Tr]                                                      b) [T]=inv.[Tr] [Rѳ] [Tr]
c) [T]= [Rѳ] inv.[Tr] [Tr]                                                             d) None of these.

Q12. Scaling is a transformation that changes…………………………………………………..
a)Shape of an object                                                    b)Size of an object
c)either both or one of (a) and (b)                             d)None Of These.

Q13. Which one of the following Mathematical expression is correct for pure scaling ?
a)x’=Sx*x  and y’=Sy*y                                                       b) x’=Sx+x  and y’=Sy+y
c) x’=Sx/x  and y’=Sy/y                                                         d)None of these. 

Q14. Which one of the following condition is suitable for uniform Scaling .
a)  Sx≠Sy            b)Sx>Sy                                   c)Sx<Sy                                  d) Sx=Sy                         

Q15. Which one of the following condition is suitable for Differential Scaling .
a)  Sx≠Sy            b)Sx>Sy                                   c)Sx<Sy                                  d) Sx=Sy  

Computer Graphics & Digital Image Processing MCQS with AnswerS
1 b
2 c
3 d
4 d
5 a
6 a
7 c
8 a
9 b
10 c
11 a
12 c
13 a
14 d
15 a

PHONE AS MODEM VIA BLUETOOTH IN UBUNTU

No Comments »

1. turn on your mobiles bluetooth(bt) and insert ur bt device in ur pc.
2. open a terminal and type this command hcitool scan. this will show ur phones mac address and name.
3. now execute this command sudo hcitool cc your-phone-mac-address.
4. again execute this command sudo hcitool auth your-phone-mac-address.
step 3 and 4 will pair ur mobile with ur pc. you can do that using bt manager. it will appear in the upper right corner in the screen. click on it and click Set up new device.
5. you need to find out ur phones channel number. execute sudo browse your-phone-mac-address.
6. Under "Protocol Descriptor List:" and "RFCOMM", there should be a number after "Channel:". Remember that number; you'll need it for the rfcomm configuration.
7. execute gksudo gedit /etc/bluetooth/rfcomm.conf.
8. Paste the following into the file, replacing your-phone-mac-address and your-phone-rfcomm-channel with appropriate values-
rfcomm0 {
bind yes;
device your-phone-mac-address;
channel your-phone-rfcomm-channel;
comment "Bluetooth PPP Connection";
}
9. you have to bind the phone with ur pc. execute this command -
sudo rfcomm bind 0 your-phone-mac-address your-phone-rfcomm-channel.
If you get the wrong channel (or if the wrong channel was bound at startup as a result of rfcomm.conf) then you need to release it before you can bind it again:
sudo rfcomm release 0
10. Run the following -
gksudo gedit /etc/ppp/peers/BluetoothDialup
11. Paste the following into the file -
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup"
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0
12. Run the following -
gksudo gedit /etc/chatscripts/BluetoothDialup
13. Paste the following into the file replacing your-apn-here and your-data-profile-number-here with correct value- 
TIMEOUT 35
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
OK 'AT+CGDCONT=2,"IP","your-apn-here"'
OK ATD*99***your-data-profile-number-here#
CONNECT ""
for me they are gpinternet and 1 respectively.
14. now to connect ur phone as modem execute -
sudo pon BluetoothDialup
15. you will find a new mobile broadband connection in the notification area. if you had any connection previously configured you will see that connection there.you can create a new profile or use existiong profile to connect. just click on the profile.