Hey diploma students, we shared advanced Java programming AJP 22517 Important MCQs for MSBTE Online Examination in this post.

Computer branch diploma students can refer to these questions for the upcoming online examinations. All of these questions are collected from various textbooks on Java programming.
AJP 22517 Important MCQs for MSBTE Online Exam
Topic: – Menu bar
Which abstract class is the super class of all menu related classes?
A) MenuBar
B) CheckboxMenuItem
C) MenuItem
D) MenuComponent ✅
What commands are in the menu bar?
A) Undo, Select All, Copy, and Paste.
B) File, Edit, and View menus ✅
C) None of these
D) All of the above
Public class MenuBar extends___________.
A) MenuComponent
B) MenuContainer
C) ComponentMenu
D) MenuBar ✅
The method _________ places a Menu m into the MenuBar mb.
A) mb.addMenuItem(m)
B) mb.addItem(m)
C) mb.add(m) ✅
D) None of these
______ generates action events when an item is double-clicked.
A) List
B) ChechBox
C) MenuItem ✅
D) TextField
Which of the following components class cannot be added on applet?
A) Menu ✅
B) Button
C) TextField
D) TextArea
Checkable MenuItems are created using object of ________ class.
A) MenuItem
B) CheckBoxMenuItem ✅
C) Menu
D) None of these
Each Menu is associated with a ___________ list of MenuItems.
A) Pop-up
B) All of the above
C) Drop-down ✅
D) None of these
Identify which is valid constructor of MenuItem class?
A) MenuItem()
B) MenuItem(String str)
C) MenuItem(String Itemname) ✅
D) All of the above
We can add Menus to____________
A) Frames ✅
B) Panel
C) MenuComponent
D) None of these
Which component is more useful?
A) Panel
B) All of the above
C) Menubar ✅
D) Word wrap
________ menu displayed at the top of a computer screen or window.
A) Horizontal ✅
B) Vertical
C) Corners
D) None of these
Which option in file pull-down menu is used to close a file in MS Word?
A) New
B) Quit
C) Close ✅
D) Exit
Which bar is usually located below the title bar that provides categorized options?
A) Menu bar ✅
B) Status bar
C) Tool bar
D) Scroll bar
Which menu in MS Word can be used to change character size and typeface?
A) View
B) Tools
C) Format ✅
D) Data
A menu bar handles keyboard shortcuts for menu items passing them along to its child ______?
A) AWT
B) Panel
C) Menus ✅
D) Frame
Which is the container that doesn’t contain title bar and MenuBars, but can have other components like button, textfield etc.?
A) Window
B) Frame
C) Panel ✅
D) Container
A menu bar is graphical control element which contains _____ menus.
A) Drop-down ✅
B) Up-down
C) Down-up
D) Center
What does Menu Bar mean?
A) Row ✅
B) Side
C) Window
D) Display screen
A menu bar is a user interface element?
A) False
B) True ✅
Which class can be used to represent a checkbox with a textual label that can appear in a menu?
A) CheckBox ✅
B) Button
C) TextField
D) None of these
Which of the following are not derived from the component class?
A) Menu
B) MenuBar
C) MenuItem ✅
D) All of the above
A menu bar contains one or more ________ objects.
A) Menu ✅
B) Button
C) MenuItem
D) All of the above
Menu is a subclass of ________.
A) Menu
B) MenuItem ✅
C) All of the above
D) None of these
setMenuBar() method belongs to which class?
A) Applet
B) Window
C) Frame ✅
D) Container
Menu bar also possible to include ___________ MenuItem.
A) Checkable ✅
B) NonCheckable
C) All of the above
D) None of these
Pop-up menu represents ________.
A) MenuItem
B) MenuBar
C) Menu ✅
D) All of the above
Which Containers may have a MenuBar?
A) Frame ✅
B) Applet
C) Window
D) All of the above
Which of the following may a menu contain?
A) Menu ✅
B) Button
C) None of these
D) All of the above
_________ method is used to add the menu bar on frame window.
A) setMenuItem
B) setButton
C) setMenuBar ✅
D) None of these
Topic: – Datagram Packet
Topic: – Component Event
- More MCQs from the Textbook:
Conclusion
In this post, we shared all the important advanced Java programming multiple-choice questions for the upcoming diploma exam.