AdBlocker Detected!

Hello! To continue reading aasansolution.in, please disable your AdBlocker or Brave Shield.

Allowing ads helps us keep our customized Tally TDLs and tools completely free for everyone.

I have whitelisted it - Refresh Page
AS

Question. Paper-PGDCA/MSCCS-03/MCa-103/CPCJ | Oops Programming with C++ and Java

 

(i) in C++, the predefined object cout is an instance of which class?

Sol:- The predefined object cout is an instance of ostream class.

 

Question . Write a program in c++ to find the entered year is leap year or not.

Program start here

Question: Explain the concept of life cycle of an applet in java.

 

an applet is a special type of program embedded in the web page to generate dynamic content. Applet is a class in Java.

Question:Write a program in C++ using templates to find the maximum of two values.

 

/* C++ Program to find Largest among two numbers using function template */

Question : Explain the concept of inner classes with suitable examples in java.

 

Inner class(Non Static Nested Class) - a class within another class

Question : Explain the concept of file handling in c++ using suitable example. सी++ में फाइल हैण्डलिंग को उदाहरण सहित समझाइये?

we are using the iostream standard library, it provides cin and cout methods for reading from input and writing to output respectively.

Question: Explain the concept of checked and unchecked exceptions in java using suitable examples. चैक्ड व अनचैक्ड एक्सेंचप्शन को जावा में उदाहरण सहित बताइये।

 Types of Exception:-

Question:- Write a program in c++ to check the entered number by the user is prime or not.

Prime number is a number that is greater than 1 and divided by 1 or itself.  2, 3, 5, 7, 11, 13, 17, 19, 23.... are the prime numbers.

Question:- Write a program in Java to demonstrate the concept of multithreading using Runnable interface.

 Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process.

Fast Index