Find output of the following Java code snippet : -Technology

1 Answer

Answer :

OutputDelhi 110001 10001

Related questions

Description : Find the output of the following Java code snippet after execution of each java statement labelled -Technology

Last Answer : The output is:IN5inin5

Description : What will be the output of the following Python code snippet? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} d1 > d2 a) True b) False c) Error d) None

Last Answer : Answer: c Explanation: Arithmetic > operator cannot be used with dictionaries.

Description : What will be the output of the following Python code snippet? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} d1 == d2 a) True b) False c) None d) Error

Last Answer : Answer: b Explanation: If d2 was initialized as d2 = d1 the answer would be true.

Description : What will be the output of the following Python code snippet? d = {"john":40, "peter":45} "john" in d a) True b) False c) None d) Error

Last Answer : Answer: a Explanation: In can be used to check if the key is int dictionary.

Description : What will be the output of the following Python code snippet? d = {"john":40, "peter":45} a) “john”, 40, 45, and “peter” b) “john” and “peter” c) 40 and 45 d) d = (40:”john”, 45:”peter”)

Last Answer : Answer: b Explanation: Dictionaries appear in the form of keys and values.

Description : Anju, a beginner in java programming has written following code with some mistakes: -Technology

Last Answer : int k=0;String s='Save Earth';int l=s.length();for(int i=0;k

Description : Explain the purpose of pow() method with the help of suitable java code. Also mention that pow() method belongs to which class? -Technology

Last Answer : pow() method, a mathematical method, helps in calculating the power of any number.For example:int num=2,power=4;int ans=Math.pow(num,power);t1.setText(''+ans);The above code will calculate the value of 24 and will give answer 16.pow() method belongs to math class.

Description : Write Java code to assign the value 10 to variable x and store its square value in another variable y. -Technology

Last Answer : class Square{public static void main (String args [ ]){int x. y ; x = 10 : y = x * x ;

Description : What does this short snippet of C code do? (see details)

Last Answer : answer:It's been a long time since I did much in C but It looks like it reads a file (or url?) and assigns that reference to the variable handle to use later, then reads each ... meant to return file contents in an expected format for use elsewhere. More of the context would provide more clues.

Description : Is there a coldfusion equivalent to the NextGenLinks code snippet?

Last Answer : answer:Since this type of question is out of my league, here is the contact info, so you can ask the expert of Coldfusion his contact sheet even says, Please contact me with any of your questions about ... . Sounds like the guy with your answer!! http://www.bennadel.com/ask-ben/ask-ben-nadel.htm

Description : What is the output of the following segment of the HTML code? -Technology

Last Answer : Output• MANGO• APPLE• GRAPES

Description : Write a code to produce the following output. -Technology

Last Answer : ComputerAn electronic machineCPU Brain of computer

Description : Write the HTML code to generate the following output: -Technology

Last Answer : The HTML code isTableABD EG HI

Description : Will the output from the following two code be any different? -Technology

Last Answer : Yes it will be different as in First Code there will be no output while in Second Code the output will be 2 because in while loop condition is false in the beginning so control will not come inside ... once while in do while loop, loop will be executed at least once even if the condition is false.

Description : Predict the output of the following code: -Technology

Last Answer : The Output is:05

Description : What will be an output of the following code if value of variable application is 1? switch(application) -Technology

Last Answer : The output is:OS

Description : Predict the output displayed in text fields named jTextField2 and jTextField3 after running the above code. -Technology

Last Answer : (i) GREEN WORLD, CLEAN WORLD76 more characters can be entered(ii)length(),toUpperCase()

Description : Write the output of the following code : -Technology

Last Answer : [10 12 16 20]

Description : Consider the following python code and write the output for statement S1 import pandas as pd -Technology

Last Answer : 0.50 8.00.75 11.0

Description : Find the output of the following code -Technology

Last Answer : a bfirst 10 20second 6 32a b1first 10 NaNsecond 6 NaN

Description : Will the output from the following two code be any different? -Technology

Last Answer : Yes it will be different as in First Code there will be no output while in Second Code the output will be 2 because in while loop condition is false in the beginning so control will not come inside ... once while in do while loop, loop will be executed at least once even if the condition is false.

Description : Predict the output of the following code: -Technology

Last Answer : Output:05

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: (i) Explain her the concept of variable -Technology

Last Answer : (i)Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : Write java statement to make the Net Fee text field named txtNetFee un_editable at run time. -Technology

Last Answer : txtNetFee.setEditable(false);

Description : Ruby, a class XI student has just started learning java programming. Help her in the following: -Technology

Last Answer : i. Variables are named storage location to store values temporarily which can be changed during program execution.Data type states the way the values of that type are stored, the operations that can be done ... setText( Just Pass );In the above if statement, value of marks is being compared with 40.

Description : (a) Following is a list of programming languages : BASIC, COBOL, C, JAVA -Technology

Last Answer : (a) JAVA, COBOL(b) jListl. getSelectedValue ( ) ;

Description : What is your favorite snippet, quote, fragment, or poem by Rumi?

Last Answer : “That hurt we embrace becomes joy. Call it to your arms where it can change.”

Description : How do i remove unnecessary buttons from a google map snippet on my blog?

Last Answer : I made a example of this for you. View the source to see how it was done. You will need to change the API key to the one for your site.

Description : Mystery Javascript snippet?

Last Answer : it looks like a piece of obfuscated code. Because normally JavaScript even in it's most complex is still humanly readable. If it is not obsfucated, then someone must have some really messed up naming ... but for what little I know, it does not look like it would ever work for any browser.

Description : Which ad extension allows you to send traffic to different pages on your website? A. Structured snippet B. Call C. Sitelink D. Callout

Last Answer : C. Sitelink

Description : What is the difference Java and PHP?

Last Answer : …so what exactly is your question?

Description : Can anyone recommend a good Java debugger?

Last Answer : answer:

Description : Can you suggest me a good java based chat server?

Last Answer : Like real Java (the compiled kind) or a ajax one that uses javascript? Big difference. If it the second look at this Most use PHP and MySQL. You need to at least be able to make a database.

Description : How do I copy all the code from another site with Java phone and bring it to my memory ?

Last Answer : You can copy the code and save it in memory in the form of file.txt .

Description : The Java interpreter is used for the execution of the source code. a) True b) False

Last Answer : a) True

Description : A ____ is a namespace for organizing classes and interfaces in a logical manner. Placing your code into ______makes large software projects easier to manage. This section explains why this is useful and ... provided by the Java Platform: a) Inheritance b) Object c) Package d) None of These

Last Answer : c) Package

Description : Which memory segment loads the java code ?

Last Answer : Ans. Code segment.

Description : Match the following. a) Java 1) is a tool for debugging java program b) Javah 2) is a tool for creating C-like header files c) Javap 3) runs java bytecode d) jdb 4) prints java code representation A) a-3, b-2,c-1 B) a-3, b-1, c-4, d-2 C) a-1, b-2, c-3, d-4 D) a-2, b-1, c-3, d-4

Last Answer : B) a-3, b-1, c-4, d-2

Description : The command javac A) Converts a java program into binary code B) Converts a java program into bytecode C) Converts a java program into machine language D) None of the above.

Last Answer : B) Converts a java program into bytecode

Description : ……………. are not machine instructions and therefore, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program. A) Compiled Instructions B) Compiled code C) byte code D) Java mid code

Last Answer : C) byte code

Description : A software company needs to develop a project that is estimated as 1000 function points and is planning to use JAVA as the programming language whose approximate lines of code per function point is accepted as 50. Considering a=1. ... ? (1) 11.2 months (2) 12.2 months (3) 13.2 months (4) 10.2 months

Last Answer : Generally, any projects are measured in weeks. However, the complex project might take more time depending on the level of object re-use available.

Description : Sakshi is preparing a lecture on output device like monitor. Discuss. (i) Give some advantages of the output device ‘monitor’. -Technology

Last Answer : (i) (a) Relatively cheap and reliable.(b) Can display text and graphics in a wide range of colors.(ii) (a) No permanent copy to keep the results as it will disappear when the computer is switched OFF.(b) Unsuitable for users with visual problems.

Description : Identify input/output devices from the clues given below: (a) Transfers typed or handw -Technology

Last Answer : (a) Scanner(b) Barcode reader(c) Optical Mark Recognition (OMR)(d) Magnetic Ink Character Recognition (MIGR)(e) Printer (f) Speaker

Description : Output device used to generate the long map of building and shopping malls. (a) Dot_matrix (b) Inkjet (c) Plotter (d) Deskjet -Technology

Last Answer : (c) Plotter is a computer hardware device similar to a printer that uses a pen, pencil, marker or other writing tools to make a design.

Description : The ………. prints its output on special heat sensitive paper. -Technology

Last Answer : The thermal printer prints its output on special heat sensitive paper.

Description : A computer follows the rule of IPO (Input Process Output) cycle. -Technology

Last Answer : TrueComputer first takes the input via input devices, process it with the help of the CPU and gives the output through output devices.

Description : Question 5. Information is (a) data (b) processed data (c) manipulated input (d) computer output -Technology

Last Answer : (b) Information is the processed form of data.

Description : Write the output on the Web page for the following HTML command. -Technology

Last Answer : The output on the Web page will be the Atomic weight of O 2

Description : Comments are displayed in the output. -Technology

Last Answer : False Comments are not displayed in the output.

Description : Observe the table named “Training” given above carefully and predict the output of the following queries: -Technology

Last Answer : (i) New DelhiFaridabadGurugram(ii) 2(iii) 11000(iv) Ms. Neena