当前位置:网站首页>[QT] multiple choice questions
[QT] multiple choice questions
2022-06-23 18:29:00 【Yadong classmate】
- 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 - 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 - 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 - Which of the following criteria is used for the internal processing of character sets :
a.UNICODE
b.ASCII
c.GB2312
d. ISO 8859-1 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 ① ③ ② ④ - 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 - 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 - 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 - 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 - 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 - Here are QObject The options for the provided string translation function are :
a.translateit ( ) , trUtf8 ( )
b.translation ( )
c.tr ( ) , trUtf_8 ( )
d.tr ( ) , trUtf8 ( ) - 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 - The parent classes of the widget include :
a.QWidget
b.QFrame
c.QScrollView
d. All of the above are - 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 - 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 - 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 - 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 - The layout widget includes :
a.QHBox
b.QVBox
c.QGrid
d. All of the above - 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 - In the following , yes QLayout Subclasses are :
a.QGridLayout
b.QHBoxLayout
c.QVBoxLayout
d.b and c - 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 - 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 - The value based collection classes in the following items are :
a.QCache
b.QMap
c.QPtrList
d.QDict - Of the following items, which belong to the pointer based collection class are :
a.QIntCache
b.QValueStak
c.QValueVector
d.QValueList - Of the following items that are neither pointer based nor value based are :
a.QIntDict
b.QPtrList
c.QPtrStack
d.QMemArray - All pointer based collections inherit which of the following classes ?
a.QGCache
b.QGVector
c.QPtrCollection
d.QGList - 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 ” - The following items are not related to Qt Thread related classes are :
a.QMutex
b.QSemaphore
c.QThread
d. None of the above - 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 - 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 - 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 - The following is not a drag and drop mechanism :
a. Drag the
b. clipboard
c. put down
d. None of the above - 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 - 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 - Qt/Embedded Our development company is :
a.Microsoft
b.Sun
c.Oracle
d.Trolltech - 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 - 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 - 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 - The classes that are not related to display in the following items are :
a.QScreen
b.QLock
c.QWSManager
d.QDiskFont - The following is not Qt Image formats are supported :
a.JPG
b.PNG
c.BMP
d.XPM - 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 - 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 - 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 - 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
边栏推荐
- Set up your own website (13)
- Leetcode question brushing: hash table 03 (happy number)
- 基于FPGA的电磁超声脉冲压缩检测系统 论文+源文件
- 【剑指Offer】46. 把数字翻译成字符串
- Improving efficiency or increasing costs, how should developers understand pair programming?
- 【ESP8266-01s】获取天气,城市,北京时间
- 论文阅读 (49):Big Data Security and Privacy Protection (科普文)
- [win10 vs2019 opencv4.6 configuration reference]
- 实用电路分析3
- Reading papers (51):integration of a holonic organizational control architecture and multiobjective
猜你喜欢

Leetcode: hash table 02 (intersection of two arrays)

实用电路分析3

提高效率 Or 增加成本,开发人员应如何理解结对编程?
![[tool C] - lattice simulation test 2](/img/a2/0f9641332c9c13493ee8b3e568a294.png)
[tool C] - lattice simulation test 2

信用卡产品开发周期从23周缩短至9周,银行运维组织如何转向敏捷?

js25题目

After the Computer College changed its examination, the College of Cyberspace Security also changed its examination! Nanjing University of technology computer postgraduate entrance examination

Paper reading (55):dynamic multi robot task allocation under uncertainty and temporary constraints

QT implements a rule-based machinetranslation system course paper + assignment + project source code

论文阅读 (48):A Library of Optimization Algorithms for Organizational Design
随机推荐
【華中科技大學】考研初試複試資料分享
Asynchronous or thread pool
可编程交换机上的近似公平排队阅读笔记
Improving efficiency or increasing costs, how should developers understand pair programming?
为什么要创建公开的OKR?
云原生行业应用崛起,从“可用”到“好用”有多远?
SimpleDateFormat在多线程环境下存在线程安全问题。
客服系统搭建教程_宝塔面板下安装使用方式_可对接公众号_支持APP/h5多租户运营...
芯片原厂必学技术之理论篇(4-1)时钟技术、复位技术
如何利用好每天的时间高效复习?
[unity] instructions for beginners of textanimator plug-in
Strong cache and negotiation cache in http
【Wwise】Wwise嵌入Unity后打包出现没有声音问题
Latex使用\usepackage{hyperref}报错:paragraph ended before [email protected]@link was complete
暂停更新公告—行走的皮卡丘
【ESP8266-01s】获取天气,城市,北京时间
Implementing Domain Driven Design - using ABP framework - repository
"Tribute to a century old master, collect pocket book tickets"
Know Chuangyu: content oriented, ai+ artificial empowerment
【剑指Offer】46. 把数字翻译成字符串