Computer Knowledge
GUI and Web Frameworks
1,711 Questions
Graphical user interface and web frameworks involve layout management, directives, and application design across platforms like Android and Angular. These concepts are tested in computer science and IT officer competitive exams. Review these questions to understand UI components and coding standards.
Android layout attributesAngular structural directivesVB.Net web methodsJava Swing componentsSiebel application framework
GUI and Web Frameworks Questions
-
CScrollView
-
CEditView
-
CTreeView
-
CFormView
D
Correct answer
Explanation
CFormView creates a view that resembles a dialog box (with form-like layout) while integrating with MFC's document/view architecture. It allows dialog-based UI with document data binding. CScrollView is for scrolling, CEditView for text editing, and CTreeView for tree hierarchies.
-
ToolBar
-
Menu
-
Dialog
-
Accelerator
C
Correct answer
Explanation
A Dialog box is a rectangular window resource in Windows programming whose primary purpose is to host, organize, and manage other controls like buttons, text boxes, and labels. Toolbars, menus, and accelerators serve navigation and command execution roles.
-
child
-
popup
-
Overlapped
-
Borders
A,B,C
Correct answer
Explanation
In Windows dialog box design, the Style property controls window styles including child windows (child), popup windows (popup), and overlapped windows (Overlapped). Borders is typically handled separately or through other properties.
-
MenuCaption argument
-
lpszMenuName argument
-
MenuName argument
-
splzMenuName argument
B
Correct answer
Explanation
In MFC's CFrameWnd::Create() method, the lpszMenuName parameter specifies the menu resource name. This parameter directly corresponds to the menu resource defined in the .rc file.
-
Dialog box
-
Tree view
-
Property Sheet
-
Menu
B,C
Correct answer
Explanation
Tree view is a control class embedded in dialogs, not a standalone resource type. Property sheets are constructed from multiple dialog-based property pages and don't exist as separate resource entities in .rc files. Dialog boxes and menus are first-class resource types.
-
Visible
-
Enable
-
TitleBar
-
Border
A,C,D
Correct answer
Explanation
Property pages in MFC are dialog templates with specific styles: visible, border, and title bar (tab caption). They're typically disabled initially (enabled only when their tab is selected). The 'Enable' property refers to window enable state, not whether it's an enabled feature.
-
CDocument::UpdateViews
-
CDocument::UpdateAllViews
-
CDocument::UpdateData(TRUE)
-
CDocument::Modify(TRUE)
B
Correct answer
Explanation
When a view modifies data, it calls CDocument::UpdateAllViews(NULL, hint) to notify all other views of the change. This is the core of MFC's document-view architecture ensuring multiple views stay synchronized. The NULL parameter excludes the calling view from notifications.
-
Language aware editor
-
Incremental build
-
Integrated debugging
-
All of the above
D
Correct answer
Explanation
Eclipse Java IDE provides all three features: language-aware syntax highlighting and code assistance, incremental compilation for fast feedback, and integrated debugging with breakpoints and stepping. 'All of the above' is the comprehensive answer.
-
Eclipse is a Plugin
-
Eclipse is a shareware
-
Eclipse is an Open source framework
-
None of these
C
Correct answer
Explanation
Eclipse is an open-source framework governed by the Eclipse Foundation. It's not a plugin itself (it hosts plugins), not shareware (it's OSI-approved open source), and 'none of these' is incorrect. The open-source nature is fundamental to Eclipse's architecture.
-
A directory to store Eclipse specific initializations
-
A directory which contains all the projects the user is currently working on.
-
A file containing Eclipse initialization settings.
-
None of these
A
Correct answer
Explanation
An Eclipse workspace is a directory that stores Eclipse-specific metadata, configuration files, and settings. It contains the projects you're working on and maintains preferences, plugin configurations, and other initialization data specific to that workspace. Option B is incorrect because while the workspace contains projects, it's not just a container - it stores configuration too. Option C is incorrect because it's a directory structure, not a single file.
-
Only inspecting the code.
-
Watching the values of variables and expressions.
-
Step by step debugging.
-
All of the above
D
Correct answer
Explanation
Eclipse provides comprehensive debugging utilities including inspecting code, watching variable values and expressions, and step-by-step execution. These features work together to give developers complete visibility into program execution. Options A, B, and C each describe individual debugging features, but D correctly identifies that all are available simultaneously during debugging.
-
Editors
-
Project Creation Wizards
-
Validators
-
Application Server domain creation wizard
D
Correct answer
Explanation
Eclipse provides built-in editors, project creation wizards, and validators. However, application server domain creation wizards are specific to application servers (like WebLogic or WebSphere) and are not standard utility tools supplied by Eclipse itself.
-
Standalone applications
-
Distributed applications
-
All of the above
-
None of these
C
Correct answer
Explanation
Eclipse is a versatile IDE that supports development of both standalone applications (desktop apps, console apps) and distributed applications (web apps, enterprise applications, client-server systems). Option A and B each describe types Eclipse supports, making C the correct comprehensive answer.
-
Builder
-
Java Build Path
-
Java Doc Location
-
None of these
B
Correct answer
Explanation
The 'Java Build Path' section in Project Properties allows adding libraries, JARs, and external dependencies to a project's classpath. This is where you configure what libraries your project needs. Option A is for build configurations. Option C is for Javadoc location only.