Java Programming OOPs
Questions 41 to 50
What would the output be of the above Program - III
before and after it is called?
(a) and b before call : 15 20 a
and b after call : 30 10
(b) a and b before call : 5 2 a
and b after call : 15 20
(c) a and b before call : 15 20 a
and b after call : 15 20
(d) a and b before call : 30 10 a
and b after call : 15 20
(e) a and b before call : 15 20 a
and b after call :
|
|
What would the argument passing method be which is used by
the above Program - III?
(a) Call by value (b) Call by reference
(c) Call by java.lang class (d) Call by byte code
(e) Call by compiler.
|
|
Consider the following program:
class
prob1{
int
puzzel(int n){
int result;
if (n==1)
return 1;
result = puzzel(n-1) * n;
return result;
}
}
class
prob2{
public
static void main(String args[])
{
prob1 f = new prob1();
System.out.println(" puzzel of 6
is = " + f.puzzel(6));
}
}
Which of
the following will be the output of the above program?
(a) 6 (b) 120 (c) 30 (d) 720 (e) 12.
|
|
The blank space in the following sentence has to be
correctly filled :
Members
of a class specified as ……………….. are accessible only to methods of that class.
(a) Protected (b) Final (c) Public (d) Private (e) Static.
|
|
Java compiler javac translates Java
source code into ………………………
(a)
Assembler language (b) Byte code
(c)
Bit code (d) Machine code
(e) Platform dependent code.
|
|
……………….. are used to document a program and improve its
readability.
(a) System
cells (b) Keywords (c) Comments (d)
Control structures (e) Blocks.
|
|
In Java, a character constant’s value is its integer value
in the ………………………character set.
(a) EBCDIC (b) Unicode (c) ASCII (d) Binary (e) BCD.
|
|
In Java, a try block should immediately be followed by one
or more ……………….. blocks.
(a) Throw (b) Run (c) Exit (d) Catch (e) Error.
|
|
An abstract data type typically comprises a …………… and a
set of ……………... respectively.
(a) Data representation, classes (b) Database, operations
(c) Data representation, objects (d) Control structure, operations
(e) Data representation, operations.
|
|
In object-oriented programming, the process by which one
object acquires the properties of another object is called
(a) Encapsulation (b) Polymorphism (c) Overloading
(d) Inheritance (e) Overriding.
|
Answers
Answer : (c)
Reason : There wont
be any change because of the scope.
|
|
Answer : (a)
Reason : Call by
value is the right choice.
|
|
Answer : (d)
Reason : 720 is the
output after the execution of the program
|
|
Answer : (d)
Reason : Private
access specifier property says that members of class of private are
accessible only to the methods of that class.
|
|
Answer : (b)
Reason : Byte Code is
the file which is generated after java source file is compiled.
|
|
Answer : (c)
Reason : Comments
improve the readability of the program
|
|
Answer : (b)
Reason : Java uses
Unicode format.
|
|
Answer : (d)
Reason : Try must be
followed by catch block in exceptions in java.
|
|
Answer : (e)
Reason : An abstract
data type contains data representation and operations
|
|
Answer : (d)
Reason : Inheritance
is the mechanism in which one object acquires the properties of another
object.
|
I almost gave correct answer with my knowledge in java, thanks for sharing.
ReplyDeleteRegards,
JAVA Training in Chennai|JAVA Course in Chennai
Thanks for sharing this valuable information to our vision
ReplyDeletehotels near us consulate chennai
hotels near uk embassy chennai
hotels near apollo hospital chennai
hotels near german consulate chennai
Very useful for us..thanks for sharing in this blog...
ReplyDeleteEmbedded system training in chennai
Embedded system course training in chennai
Embedded system training institute in chennai chennai
Embedded training in chennai
ReplyDeletevery nice and informative blog
msc projects in chennai
ReplyDeleteThis is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
Android training in chennai
This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteIos training in chennai
This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteIos training in chennai
ReplyDeleteThese ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
Android App Development Company
great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
ReplyDeleteweb design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India
Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
ReplyDeleteiOS App Development Company
iOS App Development Company
Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.
ReplyDeleteFitness SMS
Salon SMS
Investor Relation SMS
it is really amazing...thanks for sharing....provide more useful information...
ReplyDeleteMobile app development company
ReplyDeletethank you very muchjava training in chennai, seo training in chennai,
me projects in chennai, embedded projects in chennai
ReplyDeleteAmazing write-up!
online marketing companies chennai
seo company in chennai
arduino mini project centres in chennai
inplant training in IOT
Nice Post !! Great Share !!
ReplyDeletelatest 2017 java project titles, latest ieee java project titles
ece projects in chennai
ece projects centers in chennai
robotics projects in chennai
robotics project centers in chennai
embedded system training in chennai
project centre in bangalore
project institutes in vijayanagar
best project institutes in bangalore
ece projects in bangalore, cs projects in bangalore
matlab projects in bangalore
In my point of view, this is really very well and informative content given about Bangalore Real Estate market, where you can easily get affordable housing option for living purposes.
ReplyDelete2bhk Flats in Paschim Vihar
thank you me projects in chennai embedded projects in chennai internship in chennai seo company in chennai java training in chennai
ReplyDeleteNice Post !! Great Share !!
ReplyDeleteembedded projects in chennai, embedded project centers in chennai
ece projects in chennai
ece projects centers in chennai
android based projects in chennai
android based project centers in chennai
dotnet training in chennai
project centre in bangalore
project institutes in vijayanagar
best project institutes in bangalore
ece projects in bangalore, cs projects in bangalore
matlab projects in bangalore
Amazing write-up!
ReplyDeleteDigital marketing company in chennai
seo company in chennai
arduino mini project centres in chennai
inplant training in IOT
This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteMobile Marketing Service
Mobile Marketing Companies
Texting API
Sms API
sms marketing
Java is high level programming language .Due to its stability and scalability, you can find Java on mobiles, desktops, large scale applications etc. Java is also gaining big in the field of Internet of Things (IoT).
ReplyDeletelearn from here
Best Java training in chennai
The Spring Framework is a lightweight framework for developing Java enterprise applications. It provides high performing, easily testable and reusable code. Spring handles the infrastructure as the underlying framework so that you can focus on your application.Spring is modular in design, thereby making creation, handling and linking of individual components so much easier. Spring implements Model View Container(MVC) design pattern.
ReplyDeletespring mvc validation example
I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
ReplyDeleteTexting API
Text message marketing
Digital Mobile Marketing
Sms API
Sms marketing
This comment has been removed by the author.
ReplyDeletewe will go through the Spring Security setup & common features, when and where to apply, different authentication methods, securing password with encoding schemes, & integrating Spring Security in Spring MVC 4 and Hibernate based applications, exploring them with help of fully-working examples.
ReplyDeletespring security training in chennai
The Spring Framework is a lightweight framework for developing Java enterprise applications. It provides high performing, easily testable and reusable code. Spring handles the infrastructure as the underlying framework so that you can focus on your application.Spring is modular in design, thereby making creation, handling and linking of individual components so much easier. Spring implements Model View Container(MVC) design pattern.
ReplyDeleteSpring mvc hello world example
Java is very good blog,it's highly professional course.Thanks for sharing
ReplyDeletejava online Training Hyderabad
Good way of describing, and nice article to take information regarding my presentation focus, which i am going to present in institution of higher education.
ReplyDeleteReal Estate Companies in Chennai
Real Estate Broker in Chennai
Real Estate Agent in Chennai
Real Estate Dealers in Chennai
Real Estate Private Equity in India
Real Estate Advisory Companies in India
Real Estate Research in Chennai
Real Estate Tax Advisor in Chennai
Portfolio Management Services in Chennai
This article is very much helpful and i hope this will be an useful information for the needed one.Keep on updating these kinds of informative things...
ReplyDeletePSD to Wordpress
wordpress website development
I believe there are many more pleasurable opportunities ahead for
ReplyDeleteindividuals that looked at your site.
java training in chennai
java training in bangalore
Nice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best.
ReplyDeleteGhana passport online
Wow Very Nice !! Article providing here very nice information am getting from your website.. very nice information am getting from your website.. Again Very Nice
ReplyDeleteThank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site. Data Science Training in Chennai
ReplyDeleteI simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
ReplyDeleteBest Hadoop Training Institute In chennai
Nice article Thanks for sharing this article Wonderful information from this website Thanks !!!
ReplyDeletePLC Training in Chennai | PLC Training Institute in Chennai | PLC Training Center in Chennai | PLC SCADA Training in Chennai | PLC SCADA DCS Training in Chennai | Best PLC Training in Chennai | Best PLC Training Institute in Chennai | PLC Training Centre in Chennai | Embedded System Training in Chennai | Embedded Training in Chennai | VLSI Training in Chennai | VLSI Training Institute in Chennai
ReplyDeletePLC Training in Chennai | PLC Training Institute in Chennai | PLC Training Center in Chennai | PLC SCADA Training in Chennai | PLC SCADA DCS Training in Chennai | Best PLC Training in Chennai | Best PLC Training Institute in Chennai | PLC Training Centre in Chennai | PLC SCADA Training in Chennai | Automation Training Institute in Chennai | PLC Training in Kerala
ReplyDeleteEmbedded Training in Chennai | Best Embedded Training in Chennai | Embedded System Training in Chennai | Embedded System Training Institute in Chennai | Best Embedded System Training Institute in Chennai | Embedded Course in Chennai | Embedded System Training Institutes in Chennai | Embedded System Training Center in Chennai | Best Embedded System Training in Chennai | Embedded Systems Training in Chennai | VLSI Training in Chennai | VLSI Training Institute in Chennai
ReplyDeleteVLSI Training in Chennai | Best VLSI Training in Chennai | VLSI Training Centres in Chennai | VLSI Courses in Chennai | VLSI Training Courses in Chennai | VLSI Training Institute in Chennai | VLSI Training Institutes in Chennai | Best VLSI Training Institute in Chennai
ReplyDeleteI believe there are many more pleasurable opportunities ahead for individuals that looked at your site. java training in chennai
ReplyDeleteThank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.
ReplyDeleteBest Java Training Institute Chennai
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
ReplyDeleteHadoop Training in chennai