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
-
creator,guest
-
Part,ECO
-
Document,guest
-
creator,Part
A
Correct answer
Explanation
When a Bootstrap file is created in Matrix database systems, it automatically generates two key components: a 'creator' (the user or process that created the file) and a 'guest' (representing access permissions or guest accounts). This pairing establishes ownership and access control. Part, ECO, and Document are separate object types that may be referenced but are not the auto-generated components of Bootstrap file creation.
-
Cognos Visualizer- View the data in Cognos and Cognos Scripting - writing model scripts
-
Cognos Visualizer- specially used in cognos and Cognos Scripting - Writing scripts to validate the reports
-
Cognos Visualizer- It is a representation of data cubes in a dashboard format and Cognos Scripting - We can write cognos macros or programs in this tool.
-
Cognos Visualizer- Used for cubes and Cognos Scripting - Writing scripts to function the report.
C
Correct answer
Explanation
Cognos Visualizer presents data cubes in a visual dashboard format for interactive analysis, while Cognos Scripting provides a scripting environment to write Cognos macros and programs that automate tasks, extend functionality, and integrate with other systems.
-
System.Runtime
-
System.Activator
-
System.AppDomainSetup
-
System.Reflection.Emit
-
System.Management
D
Correct answer
Explanation
System.Reflection.Emit contains types like ILGenerator, TypeBuilder, and AssemblyBuilder that let you generate MSIL code and metadata dynamically at runtime. The other namespaces handle runtime activation (System.Activator), app domain configuration (System.AppDomainSetup), and WMI operations (System.Management). Reflection lets you inspect existing code, while Emit creates new code.
-
If dynamic assemblies are persistable, they must be strongly named.
-
If dynamic assemblies are transient, they must be strongly named.
-
Dynamic assemblies can only be .dll files.
-
Dynamic assemblies can be run, saved, or run and saved.
-
Dynamic assemblies cannot be saved to disk.
D
Correct answer
Explanation
Dynamic assemblies in .NET can be created to be run immediately in memory (transient), saved to disk (persistable), or both run and saved.
-
Infopath Forms
-
.Net Forms
-
Content Types
-
None of the above
-
All of the above
E
Correct answer
Explanation
In SharePoint, workflows can be attached to multiple entity types including InfoPath forms (for form libraries), .NET/ASPX forms, and Content Types. Since workflows can be bound to all three of these items, 'All of the above' is the correct choice.
-
Page initial , Event processing , Component Creation , Rendering
-
Page initial , Rendering , Component Creation , Event processing
-
Page initial , Component Creation , Event processing , Rendering
-
Page initial , Component Creation , Rendering , Event processing
C
Correct answer
Explanation
The ZK page lifecycle follows: (1) Page Initial - initialization and parameter retrieval, (2) Component Creation - creating component tree from ZUML or programmatic creation, (3) Event Processing - processing queued events, (4) Rendering - generating output for the browser. This sequence ensures components exist before events are processed, and events complete before final rendering. Option C correctly shows this order.
-
Page initial
-
Component Creation
-
Event processing
-
Rendering
D
Correct answer
Explanation
The redraw() method in ZK is called during the Rendering phase of the page lifecycle. After event processing has modified component states, redraw() regenerates the HTML output for affected components. It is not called during Page Initial, Component Creation, or Event Processing phases - only when the modified component tree needs to be rendered to the client.
-
Creation Event
-
FirstUpdateEvent
-
DoubleClickEvent
-
None of the above
B
Correct answer
Explanation
In event naming conventions, FirstUpdateEvent is not a standard calendar event type. Standard calendar events typically include Creation, Update, Delete, and click-related events. FirstUpdateEvent is likely a distractor as it's not commonly used.
-
Namespace
-
Assembly
-
Class
-
Interface
B
Correct answer
Explanation
An assembly is the smallest unit of deployment in .NET. Assemblies contain compiled code (IL), metadata, and resources, and are deployed as DLL or EXE files. Namespaces, classes, and interfaces are logical organization within assemblies but cannot be deployed independently.
-
RowDataBound
-
ItemDataBound
-
RowClick
-
ItemClick
A,B
Correct answer
Explanation
RowDataBound is a GridView event that fires when each row is data-bound, allowing customization of row appearance or content. ItemDataBound is the equivalent event for the older DataGrid control. Both are valid events for their respective controls, though GridView is the modern ASP.NET control.
-
tv.setText(“Quiz II”)
-
setContentView(tv)
-
c. TextView tv = new TextView (this)
-
setContentView()
-
None of above
B
Correct answer
Explanation
In Android Activity, setContentView() connects a View or layout resource to the screen. After creating a TextView tv, calling setContentView(tv) makes it the root View displayed. setText() only changes content, and TextView tv = new TextView(this) creates the object but doesn't display it.
-
content.properties
-
default.properties
-
build.properties
-
target.properties
-
None of above
B
Correct answer
Explanation
In classic Android projects, default.properties stores project configuration including the build target SDK version. This file defines which Android SDK the project compiles against, essential for proper build behavior.
B
Correct answer
Explanation
The Dalvik DEX format packs ALL classes of an Android application into a SINGLE .dex file, not multiple files. This is a key characteristic of the DEX format - it's a unified container for all application classes.
-
Not Possible
-
Always Possible
-
Only If object have Serializable feature or have TypeConverter option
-
Only if object is an String
C
Correct answer
Explanation
ViewState in ASP.NET can store objects, but the object must be serializable. Objects marked with the [Serializable] attribute or those with a TypeConverter can be stored in ViewState. Non-serializable objects cannot be persisted because ViewState needs to convert objects to a string format for transport.
-
Set PositionOnPostback as true in Page directive
-
Set MaintainScrollPositionOnPostback as true in Page directive
-
Set ViewState as true in Page directive
-
Not Possible
B
Correct answer
Explanation
The MaintainScrollPositionOnPostback attribute in the Page directive preserves the scroll position across postbacks by storing it in a hidden field. This prevents the page from jumping back to the top after a server-side event. PositionOnPostback is not a valid attribute, and ViewState handles state management, not scroll position.