当前位置:网站首页>[QT] multiple choice questions

[QT] multiple choice questions

2022-06-23 18:29:00 Yadong classmate

  1. Here's about QT The correct description of :
    a. It is not cross platform C++ Graphical user interface
    b. From Norway TrollTech Company produce
    c. Only support Unix、Linux
    d.QT API And development tools are inconsistent with the supported platforms
  2. Here's about QT What's wrong with the description of :
    a.QT Support 2D Graphic rendering
    b.QT Support 3D Graphic rendering
    c.QT Support OpenGL
    d.QT I won't support it XML
  3. Here's about QT What's not right is :
    a. Is for embedded systems Qt edition
    b. yes Qt Embedded windows for
    c. be based on Windows Platform development tools
    d. Is a complete self-contained C++ GUI Development tools
  4. Which of the following criteria is used for the internal processing of character sets :
    a.UNICODE
    b.ASCII
    c.GB2312
    d. ISO 8859-1
  5. Here's about Qt What's wrong with the description is
    a. It's based on object-oriented C++ Language
    b. Provides signal and slot Object communication mechanism
    c. Available for query (cháxún) And designable properties
    d. No character internationalization
  6. The following description is correct :
    a. The standard C++ The object model can effectively support runtime parameters
    b. The standard C++ The static nature of the object model is very flexible
    c. Graphical user interface programming does not need to run efficiently
    d. Graphical user interface programming does not need to run with high flexibility
  7. The following is not QT Added features :
    a. Effective object communication signal and slot
    b. Queryable and designable objects
    c. Events and event filters
    d. Don't use a pointer
  8. The following description is correct :
    a. Meta object systems can use templates for signals
    b. The meta object system can use templates for slots
    c.Qt Templates can be fully applied to applications on multiple platforms
    d.Qt You can't fully apply templates to applications on multiple platforms
  9. Here's about moc The right thing to say is :
    a.moc namely Mult Object Compiler
    b. Can be produced by any standard C++ Additional to compile access C++ Code
    c.moc You have to call... Manually
    d. Whether there is... In the class declaration Q_OBJECT It doesn't matter
  10. The following description of signals and slots is correct :
    a. be used for SOCKET Network communication
    b. be used for UDP Network communication
    c. Used for communication between objects
    d. For serial communication
  11. The following is about signals / What is incorrect about the slot is :
    a. Signal and slot passing connected Functions are arbitrarily connected
    b. The signal / Slot mechanism at QObject In the class implementation
    c. from QWidget All classes inherited by class can contain signals and slots
    d. When the object state changes, the signal is sent , The object does not care whether other objects receive the signal
  12. There are several errors in the following class declarations ?
    class M : public Qobject
    {
    public :
    M ( ) ;
    int value ( ) const
    {
    return va ;
    }
    public slot :
    void setValue ( int ) ; signals :
    void valueChanged ( int ) ; private:
    int va ;
    };
    a.5
    b.4
    c.3
    d.2
  13. With the following statement
    void M : : setValue ( int v )
    {
    if ( v != va )
    {
    va = v ;
    emit valueChanged ( v ) ;
    }
    }
    Then for the following statement
    M a , b ;
    connect ( &a , SIGNAL( valueChanged ( int ) ) , &b , SLOT ( setValue ( int ) ) ) ;
    b.setValue ( 11 ) ;
    a.setValue ( 12 ) ;
    b.value ( ) ;
    After execution , The value is :
    a. 11 11 b. 12 12
    c. 11 12 d. 12 11
  14. The following description of the slot is correct :
    a. Slot has public and protected 2 Classes
    b.protected slots Indicates that only signals of subclasses of this class can be connected
    c. Slot is a normal member function
    d. Can not have private slots
  15. The following is incorrect about the meta object system
    a. The meta object system is only used to process the signals of communication between objects / Slot mechanism
    b. The meta object system can handle the type information and dynamic attribute system of the runtime
    c. Meta object (duìxiàng) The system is based on Qobject class
    d.bc All the
  16. What is not characteristic of meta object code implementation is :
    a. Provide signals / Slot mechanism
    b.Class.forName ( ) Return the class name at run time
    c.tr ( ) Used for string translation in internationalization
    d.metaObject ( ) Return the meta object associated with this class
  17. Here's about Q_OBJECT What is not true is :
    a. Class defines a declaration Q_OBJECT after , This class can use meta object system related features
    b.Q_OBJECT It doesn't matter to all classes
    c.QObject Signals and slots that are not implemented in subclasses of can also be used Q_OBJECT
    d.QObject Properties that are not implemented in subclasses of can also be used
  18. The following description of the meta object compiler is incorrect :
    a. Metaobject compiler does not expand #define , But it can be expanded #include
    b. Metaobject compiler does not expand #include
    c. Ignore all preprocessors encountered
    d. Unable to process all C++ grammar
  19. There are the following sentences
    class YourClass : public Qobject
    {
    Q_OBJECT
    public slots :
    void apply ( void ( *apply ) ( List * , void * ) , char * ) ;
    }
    The following is true
    a. Absolutely right
    b. There can be no Q_OBJECT
    c.slots Wrong keyword
    d. Function pointers cannot be used as arguments to signals and slots
  20. The following statement is incorrect :
    a. Inherited member functions cannot be upgraded (shēng jí) For the common
    state
    b. Macros cannot be used in parameters of signals and slots
    c. Nested classes cannot be placed in the signal part
    d. Nested classes can be placed in the slot section
  21. There is the following statement :
    class Abc : public Qobject
    {
    ① Q_OBJECT
    ② public :
    ③Q_PROPERTY(Priority priority READ priority WRITE setPriority )
    ④Q_ENUMS ( Priority )
    enum Priority { High , Low , VeryHigh , VeryLow };
    void setPriority ( Priority ) ; Priority priority ( ) const ;
    };
    The following is correct about the location of the attribute declaration :
    a. Original location (wèi zhi) correct ① ② ③ ④
    b. Original location (wèi zhi) Incorrect , Should be ① ③ ④ ②
    c. Original location (wèi zhi) Incorrect , Should be ① ③ ② ④
  22. The following description of attributes is incorrect :
    a. Based on meta object system
    b. Declare... With macros in class declarations
    c. Property is not a member of a class
    d. Attributes can only be inherited from QObject Declared in a subclass of
  23. Here's about QObject What is wrong with the class statement is :
    a. It's all Qt Object's base class
    b.QObject The object tree is a static QObjectList Class object object_trees
    c.object_trees There are some object pointers in the linked list
    d. adopt object_trees Linked list can query all objects
  24. The following is an example of the event handling method :
    a. heavy load QApplication : : notify ( )
    b. heavy load QObject : : event ( )
    c. heavy load Qt Base class event handler
    d. All of the above are
  25. The following statements about timers are incorrect :
    a. Most platforms support 2ms Precision timer
    b. Use timer , It can be used QTimer class
    c. Use timer , It can be used QObject Class timer
    d. Timer accuracy depends on the operating system and hardware
  26. Here's about QObject The description of class timer is correct :
    a. While the processor is busy processing other events , The timer can still be triggered immediately
    b. When the timer is triggered , The application will send QtimerEvent
    c. use startTimer ( ) Start a timer , Return if successful 0
    d. use startTimer ( ) Start a timer , Return if failed -1
  27. Here are QObject The options for the provided string translation function are :
    a.translateit ( ) , trUtf8 ( )
    b.translation ( )
    c.tr ( ) , trUtf_8 ( )
    d.tr ( ) , trUtf8 ( )
  28. The following statement about meta objects is incorrect :
    a. Each class declaration contains Q_OBJECT Every macro class has a (yī ɡè) Corresponding meta object
    b. Each class declaration contains Q_OBJECT macro
    All classes have a corresponding QMetaObject Class object
    c. Meta objects are dynamic
    d. A class may contain multiple meta objects corresponding to it
  29. The parent classes of the widget include :
    a.QWidget
    b.QFrame
    c.QScrollView
    d. All of the above are
  30. Here's about QWidget class 、QFrame Classes and QScrollView The correct description of the relationship between classes is :
    a. The three classes are brotherhood
    b. The three classes are inheritance relationships :QWidget For Grandpa ,QFrame Be a father ,QScrollView To be a son
    c. The three classes are inheritance relationships :QFrame For Grandpa ,QWidget Be a father ,QScrollView To be a son
    d. The three classes are inheritance (jìchéng) Relationship :QFrame For Grandpa ,QWidget And QScrollView Brothers to each other
  31. Here's about Qt The style statement is correct :
    a.Qt The base class of the style class is QStyle class
    b.QStyle Most member functions of have both declarations and implementations
    c. It can only be realized in QCommonStyle Class through overloading
    d. It can only be realized in QWindowStyle Class through overloading
  32. Description of layout functions , The following is true :
    a. Lay out child widgets in layout space
    b. Set the gap between child widgets
    c. Manage the placement of child widgets in layout space
    d. All of the above are true
  33. Here's about QLayout What's wrong with the description of :
    a. Yes, the layout system abstract base class
    b. among , attribute int margin Represents the width of the outer border of the layout
    c. among , attribute int spacing Represents the size of the widget in the layout
    d. among , attribute ResizeMode resizeMode Represents the expansion mode of the layout
  34. The layout widget includes :
    a.QHBox
    b.QVBox
    c.QGrid
    d. All of the above
  35. The following statement is incorrect :
    a.QHBox Allow child widgets to be horizontally 、 Vertical and grid arrangement
    b.QVBox Allow child widgets to be horizontally 、 Vertical and grid arrangement
    c.QGrid Allow child widgets to be horizontally 、 Vertical and grid arrangement
    d. None of the above is true
  36. In the following , yes QLayout Subclasses are :
    a.QGridLayout
    b.QHBoxLayout
    c.QVBoxLayout
    d.b and c
  37. If you are not satisfied with the default placement , Then corresponding measures shall be taken , Which of the following is not :
    a. Create a layout object without a parent layout
    b. call addLayout ( ) Insert this layout into other layouts
    c. No way out
    d.a and b
  38. The following is about sets (jíhé) The class description is incorrect :
    a. It is a container that contains multiple entries
    b. Each entry is some kind of data structure
    c. Collection classes can insert entries in containers
    d. Collection classes cannot delete entries in containers
  39. The value based collection classes in the following items are :
    a.QCache
    b.QMap
    c.QPtrList
    d.QDict
  40. Of the following items, which belong to the pointer based collection class are :
    a.QIntCache
    b.QValueStak
    c.QValueVector
    d.QValueList
  41. Of the following items that are neither pointer based nor value based are :
    a.QIntDict
    b.QPtrList
    c.QPtrStack
    d.QMemArray
  42. All pointer based collections inherit which of the following classes ?
    a.QGCache
    b.QGVector
    c.QPtrCollection
    d.QGList
  43. When inserting an entry into a collection (jíhé) when , The following is incorrect :
    a. Copying only the pointer without copying the entry itself , call “ Shallow copy ”
    b. It is not allowed to copy only the pointer without copying the entry itself
    c. It is possible to copy an array of all entries into a collection
    d. Options C also called “ Deep copy ”
  44. The following items are not related to Qt Thread related classes are :
    a.QMutex
    b.QSemaphore
    c.QThread
    d. None of the above
  45. Here's about Qt The thread statement is correct :
    a.Qt Provided in Thread Thread class
    b.Qt Provided in QThread Thread class
    c. By overloading Thread : : run ( ) Function to define the execution content of the thread
    d. By overloading QThread : : _run ( ) Function to define the execution content of the thread
  46. There are the following (rúxià) Code about threads :
    class Your_Class : public QThread
    {
    public :
    virtual void run ( ) ;
    } ;
    void Your_Class : run ( )
    {
    for ( int i=0 ; i < 100 ; i++ ) ;
    }
    int main ( )
    {
    Your_Class a ; a . run ( ) ; return 0 ;
    }
    There are several mistakes :
    a.1
    b.2
    c.3
    d.4
  47. The following considerations about thread programming are incorrect :
    a. In the hold Qt Blocking operation must be performed when library mutexes
    b. In addition to Qt Before anything except containers and utility classes , lock Qt Application mutex
    c. Only in GUI Use... In threads (shǐyòng)QNetwork class
    d. Don't put ordinary in the application Qt Libraries and threaded support Qt Library mix
  48. The following is not a drag and drop mechanism :
    a. Drag the
    b. clipboard
    c. put down
    d. None of the above
  49. The following description of dragging is wrong :
    a. After dragging ,QDragObject Deleted immediately
    b. After the drag and drop is obviously completed , This QDragObject To be saved
    c.QDragObject May want to communicate with other processes
    d.QDragObject The object is finally represented by Qt Delete
  50. In some simple cases , The drag and drop target receives a copy of the dragged data , And the source decides whether to delete the initial drag pair like , This is a QDropEvent What are the operations in ?
    a.Copy
    b.Move
    c.Link
    d. None of the above
  51. Qt/Embedded Our development company is :
    a.Microsoft
    b.Sun
    c.Oracle
    d.Trolltech
  52. What is wrong with the customary way of focusing in the following items is :
    a. User presses Tab key
    b. User presses Enter key
    c.b The option is not
    d. The user uses the mouse wheel
  53. Here's about Qt/Embedded What is not true is :
    a. yes C/S structure
    b. The class library completely adopts C Language
    c. use framebuffer As the bottom graphic interface
    d. Abstract the external input device as keyboard and mouse Input event
  54. The following statement about fonts is correct :
    a.Qt/Embedded use QFontManager Manage Fonts , Font related classes run on the server side
    b.Qt/Embedded use QFontManager Manage Fonts , Font related classes run on the client side
    c.Qt/Embedded use FontManager Manage Fonts , Font related (xiāngguān) Classes run on the server side
    d.Qt/Embedded use FontManager management (guǎnlǐ) typeface , Font related classes run on the client side
  55. The classes that are not related to display in the following items are :
    a.QScreen
    b.QLock
    c.QWSManager
    d.QDiskFont
  56. The following is not Qt Image formats are supported :
    a.JPG
    b.PNG
    c.BMP
    d.XPM
  57. The following statement is correct :
    a.Qt Support GIF Format image , And they can be stored
    b.Qt Support GIF Format image , But you can't store them
    c.Qt I won't support it GIF Format image , But they can be stored
    d.Qt I won't support it GIF Format image , And you can't store them
  58. use QPainter After the image is converted by the conversion function of , To restore the image as it is , Then the following is true :
    a. It can't be done
    b. Can achieve , use QPainter : : resetForm ( ) Can only (zhī nénɡ) Restore the last conversion
    c. Can achieve , use QPainter : : resetForm ( ) You can undo all conversion operations
  59. use QPixmap Object open GIF Animation , The following statement is correct :
    a. You can see the animation
    b. I can't see any pictures
    c. You can only see the first frame of the animation
    d. You can only see the last frame of the animation
  60. Here's about Qt/Embedded The description of the client and server is incorrect :
    a. There can be multiple clients
    b. Servers can have multiple
    c. There is only one client
    d. There's only one server
原网站

版权声明
本文为[Yadong classmate]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231732344727.html