Monday 19 March 2012

Windows And Visual Programming MCQ 08


1.      The hardware requirements for Windows programming include:

a.       Pentium500MHz or equivalent CP
b.      128Meg of RAM
c.       500megabytes of free disk space
d.      CD-ROM drive
e.      All of these

2.      The software requirement for Windows programming include:

a.       Windows NT 4.0
b.      Windows 2003
c.       Windows XP
d.      Windows Vista
e.      All of these

3.      CRC stands for:

a.      Cyclic Redundancy Check
b.      Cyclic Random Check
c.       Check Redundancy Cyclic
d.      Check Redundant Cyclic

4.      In Windows system architecture data integrity is provided by the:

a.       IP
b.      UDP checksums
c.       Cyclic Redundancy Check
d.      All of these

5.      If the packet of checksum is one byte long, how much value it will have:

a.      255
b.      128
c.       512
d.      None of these

6.      The difference between CRC and checksum is that ____ is more accurate:

a.       Checksums
b.      CRC
c.       Both a and b
d.      None of these

7.      Which drivers are used for the physical storage mediums:

a.       Partition drivers
b.      File system drivers
c.       Storage drivers
d.      All of these

8.      The Storage drivers are termed as:

a.      Block drivers
b.      File drivers
c.       Both a and b
d.      None of these

9.      Which drivers specify the management of multiple partitions on a single storage device:

a.      Partition drivers
b.      File system drivers
c.       Storage drivers
d.      All of these

10.  Which driver systematically and logically arrange the data on a storage device as files and folders:

a.       Partition drivers
b.      File system drivers
c.       Storage drivers
d.      All of these

11.  File system drivers include:

a.       UDFS for CDs and DVDs
b.      FATFS
c.       TFAT 
d.      All of these

12.  Which permit specialized handling of file access for data encryption, compression and statistical usage monitoring:

a.       Partition drivers
b.      File system drivers
c.       Storage drivers
d.      File system filters

13.  What the memory management include for one way synchronization process in which files are copied from primary location to secondary location:
a.      Kernel
14.  SMS stands for:
a.      Short Messaging Service
15.  IDE stands for:
a.      Integrated Development Environment
16.  Which are the features of Microsoft Visual Studio 2005:

a.       Team Communication
b.      Quality Early and Often
c.       Designing for Operations
d.      Platform for Innovation
e.      All of these

17.  Team communication supports:

a.       Enterprise SCC
b.      Reporting
c.       Issue tracking
d.      Project management
e.      All of these

18.  Quality Early and Often includes:

a.       Static Analysis
b.      Performance profiling
c.       Unit testing
d.      Load testing
e.      All of these

19.  Which is included by Designing for Operation:

a.       SOA Designer
b.      Logical datacenter designer
c.       Validation
d.      All of these

20.  Platform for Innovation supports:

a.       Web service based
b.      Open protocols
c.       Client APIs
d.      Extending today’s VSIP
e.      All of these

21.  Which types of applications are created and build by Visual Studio:

a.       Web applications
b.      Desktop applications
c.       XML web applications
d.      Mobile applications
e.       VC++
f.        Visual Basic applications
g.      All of these

22.  SDK stands for:
a.      Software Development Kit
23.  DDK stands for:
a.      Device Drivers Kit
24.  MFC known as:
a.      Document-centric
25.  Which applications are used to load, view, edit and save documents which prepared in VC++:

a.       API
b.      DLL
c.       MFC
d.      None of  these

26.  The MFC deals with the types of Windows known as:

a.       Overlapped
b.      Pop-up
c.       Child
d.      All of these

27.  MFC classes are derived from base classes known as:

a.       CObject
b.      CCmdTraget
c.       CWnd
d.      All of these

28.  CCmdTarget is derived from:

a.      CObject
b.      CWnd
c.       CWndApp
d.      CView

29.   CWnd is derived from:

a.       CObject
b.      CCmdTarget 
c.       CWndApp
d.      CView

30.  DDX stands for:
a.      Dialog Data Exchange
31.  Which categories of classes are included in MFC:
a.       Classes that access user interface that includes CWnd
b.      Classes that help you draw
c.       Classes that provide the functionality needed to run an application
d.      Classes that handle data array and lists
e.       Classes that access databases
f.        Classes that maintain files
g.       Classes that allow your application to communicate over a network on the Internet
h.       Classes that help to synchronize and debug the application
i.        All of these
32.  Which is use to support threads in Windows programming:

a.       Executable files
b.      Dynamic Link Library
c.       Both a and b
d.      None of these

33.   Which components are consisted by Threads:
a.       The contents of the registers representing the state of the processor
b.      Two stacks
c.       A private storage area used by the subsystems, run-time libraries and DLLs
d.      A unique identifier, called a thread ID
e.      All of these
34.   Which prefix used for object ID naming conventions in Windows programming:

a.      ‘IDR_’
b.      ‘ID’
c.       Both a and b
d.      None of these

35.  Match the following:
i)        IDR_                      a:  Dialog template resources
ii)       IDD_                      b:  Cursor resources
iii)     IDC_                     c:  Icon resources
iv)     IDI_                        d:  Multiple resource types

b.      i-a, ii-c, iii-d, iv-b
c.       i-d, ii-a, iii-b, iv-c
d.      i-a, ii-b, iii-c, iv-d
e.       i-c, ii-a, iii-d, iv-b

36.  Match the following:
i)        IDB_                      a: String resource
ii)       IDS_                       b: MenuItem using the MFC command
iii)     IDM_                     c: Bitmap resource
iv)     ID_                         d: MenuItem not using the MFC command

b.      i-a, ii-c, iii-d, iv-b
c.       i-c, ii-b, iii-d, iv-a
d.      i-c, ii-a, iii-d, iv-b
e.       i-c, ii-a, iii-d, iv-b

37.  Numbering Conventions Used to Avoid Usage of Predefined IDs:

             Prefix
         Resource type
         Valid range
IDR_
Multiple
1à 0x6FFF
IDD_
Dialog templates
1à 0x6FFF
IDC_,IDI_,IDB_
Cursors, icons, bitmaps
1à 0x6FFF
IDS_,IDP_
General strings
1à 0x7FFF
ID_
Commands
0x8000à0xDFFF
IDC_
Controls
8à0xDFFF

38.  How many steps are taken by Application Wizard:

a.       Seven
b.      Six
c.       Eight
d.      Ten

39.  If you want to make the code simple then uncheck the ___________:

a.       Active Document Server
b.      Active Document Container
c.       Automation
d.      ActiveX control

40.  The document basically involved:

a.       Managing Data
b.      Store Data
c.       Both a and b
d.      None of these

41.   Who is responsible to graphically display the document data to the user:
a.      Views
42.   The View class is written with the help of ________ member function:

a.      OnDraw()
b.      OnCreate()
c.       Both a and b
d.      None of these

43.  In which source modules, the view class code is divided:

a.       header files (.h)
b.      implementation file (.cpp)
c.       Both a and b
d.      None of these

44.  Which files are stored in Debug:

a.       OBJ files
b.      Intermediate files
c.       Both a and b
d.      None of these

45.  In which subdirectory, the resource files are stored:

a.       OBJ
b.      RES
c.       Both a and b
d.      None of these

46.  Which are the member functions of application framework’s device context class CDC:

a.       TextOut()
b.      SelectStockObject()
c.       Ellipse()
d.      All of these

47.  Which macros are particularly useful for monitoring the program activity in application framework:

a.       FOUT
b.      COUT
c.       TRACE
d.      DISPLAY

48.  Which function is used to create new thread:

a.      AfxBeginThread()
b.      AfxEndThread()
c.       AfxAbort()
d.      None of these

49.  Which function returns a pointer to an application object:

a.       AfxGetAppName()
b.      AfxGetMainWnd()
c.       AfxGetApp()
d.      All of these

50.  Which function is used to returns the name of an application:

a.      AfxGetAppName()
b.      AfxGetMainWnd()
c.       AfxGetApp()
d.      All of these

51.  Which function is used to terminate the thread that is currently executing:

a.       AfxBeginThread()
b.      AfxEndThread()
c.       AfxAbort()
d.      None of these

52.  Which function returns a pointer to the application’s main window:

a.       AfxGetMain()
b.      AfxGetMainWnd()
c.       AfxGetApp()
d.      AfxGetAppName()

53.  Which function returns a handle identifying the current application instance:

a.       AfxGetMain()
b.      AfxGetMainWnd()
c.       AfxGetApp()
d.      AfxGetInstanceHandle()

54.  Which function registers a custom WNDCLASS for an MFC application:

a.      AfxRegisterWndClass()
b.      AfxGetMainWnd()
c.       AfxGetApp()
d.      AfxGetInstanceHandle()



55.  Which file contains #include statement for the MFC library header files:

a.       afxwin.h
b.      afxext.h
c.       StdAfx.h
d.      All of these

56.  Which statement StdAfx.h contains when we are using compound documents:

a.       #include <afxwin.h>
b.      #include <afxext.h>
c.       #include <afxdisp.h>
d.      #include <afxole.h>

57.  If you are using Automation and ActiveX controls, the StdAfx.h contains:

a.       #include <afxwin.h>
b.      #include <afxext.h>
c.       #include <afxdisp.h>
d.      #include <afxole.h>

58.  If you are using Internet Explorer4 Common controls, StdAfx.h contains:

a.      #include <afxdtct1.h>
b.      #include <afxext.h>
c.       #include <afxdisp.h>
d.      #include <afxole.h>

59.  The header for template-based collection classes that is accessed by the statement:

a.       #include <afxdtct1.h>
b.      #include <afxtemp.h>
c.       #include <afxdisp.h>
d.      #include <afxext.h>

60.  PCH stands for:
a.      Precompiled Header
61.  Which compiler switch is used only with StdAfx.cpp:

a.       /Fp
b.      /Yc
c.       /Yu
d.      None of these

62.  Which compiler switch is used with all the source code files:

a.      /Yu
b.      /Yc
c.       Both a and b
d.      None of these

63.   The size of PCH files is:

a.      5MB
b.      10MB
c.       15MB
d.      None of these

64.  GDI stands for:

a.       Graphics Driver Interface
b.      Graphics Device Interface
c.       Graphical Disk Interface
d.      Graphical Device Interface

65.  The GDI is useful to draw:

a.       Rectangle
b.      Square
c.       Line
d.      Polygon
e.       Brush
f.        Ellipse
g.       Circle
h.      All of these

66.  Which is not the type of brush:

a.       Solid
b.      Hatch
c.       Texture
d.      Gradient
e.       Linear Gradient
f.        None of these

67.  Which function is used to draw Rectangle:
a.      DrawRectangle()
68.  Which function is used to draw a group of lines at once:

a.      Graphics::DrawLines()
b.      DrawLine()
c.       Both a and b
d.      None of these

69.  Which is a series of connected lines with the whole shape being closed:

a.       Rectangle
b.      Triangle
c.       Polygon
d.      Square

70.  Which function is used to draw a Polygon:

a.      Graphics::Polygon()
b.      Draw Polygon()
c.       Polygon()
d.      None of these

71.  Which function is used to draw the Ellipse:

a.       Graphics::Ellipse()
b.      Graphics::DrawEllipse()
c.       DrawEllipse
d.      None of these

72.  Which is a geometric figure that comprises four sides creating four right angles:

a.       Polygon
b.      Square
c.       Triangle
d.      Rectangle

73.  Which method is used to calculate the value of CRC:

a.       Polygon addition
b.      Polygon subtraction
c.       Polynomial division
d.      Polynomial addition

74.  What is the length of CRC;

a.       16
b.      32
c.       Both a and b
d.      None of these

75.  Which is the collection of small programs:

a.      DLL
b.      EXE
c.       CPP
d.      None of these

76.  What is the output of successful build operation:

a.       dll
b.      pdb
c.       exe
d.      All of these

77.  Which file is called intermediate file while debugging:

a.      OBJ
b.      PCH
c.       PDB
d.      IDB

78.  Build toolbar contains:

a.       Win32 Debug
b.      Win32 Release
c.       Both a and b
d.      None of these

79.  Which type of build used prior to delivery:

a.      Win32 Release
b.      Win32 Debug
c.       Both a and b
d.      None of these

80.  Which debugging mode is smaller and faster:

a.       Debug mode
b.      Release mode
c.       Both a and b
d.      None of these

81.   Which macro can be used to enable MFC diagnostic outputs, including message, OLE, database and Internet information:

a.       COUT
b.      FOUT
c.       TRACER
d.      DISPLAY

82.  Which type of functions are available anytime and anywhere:

a.      Afx function
b.      Member function
c.       Non-member function
d.      All of these

83.  In which namespace, solid brush class is defined:

a.      System.Drawing
b.      System.Graphics
c.       System.Painting
d.      All of these

84.  Which type of brush is based on the already designed pattern:

a.       Texture brush
b.      Solid brush
c.       Gradient brush
d.      Hatch brush


85.  Which is an object that holds a color, a picture, or a drawing pattern and is used to fill the interior of a closed shape:

a.       Polygon
b.      Brush
c.       Rectangle
d.      None of these

86.  Which is series of instruction used to draw one or a group of graphics on a device context:

a.      Metafile
b.      OBJ file
c.       Intermediate file
d.      None of these

87.    _______ is a rectangle whose four sides are equal:

a.       Rectangle
b.      Polygon
c.       Square
d.      Pie

88.  Windows was originally a ________graphical layer for MS-DOS that was written by Microsoft:

a.      16 bit
b.      32 bit
c.       64 bit
d.      128 bit

2 comments :

  1. Very significant Information for us, I have think the representation of this Information is actually superb one. This is my first visit to your site. File System Filter Driver Programming

    ReplyDelete