Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Microservices using .NET Core
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
DevOps Expert
AZ-400: Microsoft Azure DevOps
Docker by Sandeep Soni
Kubernetes by Sandeep Soni
Docker & Kubernetes by Rahul Rampurkar
IaC Using Terraform
Powershell
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
Others
Python Programming
C and Data Structure
Core Java
OOPs and C++
Advance Java
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
Abstract Window Toolkit and Swing
Interview Questions and Answer
1. 1. Which of these functions is called to display the output of an applet?
Options:
a. display()
b. print()
c. displayApplet()
d. PrintApplet()
Reveal Answer
2. 2. Which of these methods can be used to output a sting in an applet?
Options:
a. display()
b. print()
c. drawString()
d. transient()
Reveal Answer
3. 3. What does AWT stands for?
Options:
a. All Window Tools
b. All Writing Tools
c. Abstract Window Toolkit
d. Abstract Writing Toolkit
Reveal Answer
4. 4. Which of these methods is a part of Abstract Window Toolkit (AWT) ?
Options:
a. display()
b. print()
c. drawString()
d. transient()
Reveal Answer
5. 5. Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
Options:
a. transient
b. volatile
c. global
d. No modifier is needed
Reveal Answer
6. 6. Which of these operators can be used to get run time information about an object?
Options:
a. getInfo
b. Info
c. instanceof
d. getinfoof
Reveal Answer
7. 7. What is the Message is displayed in the applet made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
Options:
a. A Simple Applet
b. A Simple Applet 20 20
c. Compilation Error
d. Runtime Error
Reveal Answer
8. 8. What is the length of the application box made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
Options:
a. 20
b. 50
c. 100
d. System dependent
Reveal Answer
9. 9. What is the length of the application box made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { Graphic g; g.drawString("A Simple Applet", 20, 20); }
Options:
a. 20
b. Default value
c. Compilation Error
d. Runtime Error
Reveal Answer
10. 10. Which of these functions is called to display the output of an applet?
Options:
a. display()
b. print()
c. displayApplet()
d. PrintApplet()
Reveal Answer
11. 11. Which of these methods can be used to output a sting in an applet?
Options:
a. display()
b. print()
c. drawString()
d. transient()
Reveal Answer
12. 12. What does AWT stands for?
Options:
a. All Window Tools
b. All Writing Tools
c. Abstract Window Toolkit
d. Abstract Writing Toolkit
Reveal Answer
13. 13. Which of these methods is a part of Abstract Window Toolkit (AWT) ?
Options:
a. display()
b. print()
c. drawString()
d. transient()
Reveal Answer
14. 14. Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program?
Options:
a. transient
b. volatile
c. global
d. No modifier is needed
Reveal Answer
15. 15. Which of these operators can be used to get run time information about an object?
Options:
a. getInfo
b. Info
c. instanceof
d. getinfoof
Reveal Answer
16. 16. What is the Message is displayed in the applet made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
Options:
a. A Simple Applet
b. A Simple Applet 20 20
c. Compilation Error
d. Runtime Error
Reveal Answer
17. 17. What is the length of the application box made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
Options:
a. 20
b. 50
c. 100
d. System dependent
Reveal Answer
18. 18. What is the length of the application box made by this program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { Graphic g; g.drawString("A Simple Applet", 20, 20); }
Options:
a. 20
b. Default value
c. Compilation Error
d. Runtime Error
Reveal Answer
19. 19. What is the output of this program? import java.io.*; class Chararrayinput { public static void main(String[] args) { String obj = "abcdefgh"; int length = obj.length(); char c[] = new char[length]; obj.getChars(0, length, c, 0); CharArrayReader input1 = new CharArrayReader(c); CharArrayReader input2 = new CharArrayReader(c, 1, 4); int i; int j; try { while((i = input1.read()) == (j = input2.read())) { System.out.print((char)i); } } catch (IOException e) { e.printStackTrace(); } } }
Options:
a. abc
b. abcd
c. abcde
d. None of the mentioned
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by