What values will be displayed in JOptionPane when the following code is executed? -Technology

1 Answer

Answer :

No value will be displayed in JOptionPane because it will give exception in thread ‘main’ due to null.

Related questions

Description : What will be displayed in jTextFieldl and jTextField2 after the following code is executed : -Technology

Last Answer : OutputjTextFieldl will contain value = 12jTextField2 will contain value = 13

Description : What will be the values of i and z after the following code is executed : -Technology

Last Answer : Value of i = 10Value of z = 5

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 : (i) Ms. Sangeeta wants to add few descriptive lines in the HTML code which should not be displayed on the webpage rather -Technology

Last Answer : (i) She should use comments in HTML.Any text to make comments in HTML, should be preceded by Example:Welcome(ii)HTML is used to display data and to focus on formatting of data, whereas XML ... XML is used to store and transfer the data over different platforms while HTML is used to design webpages.

Description : What will be the final value of variable x after the following code is executed: -Technology

Last Answer : The value is:1

Description : State true or false. i) Jpanel is a class included in awt package. ii) Anonymous classes are mostly used for event handling. iii) Names of anonymous classes must be unique iv) JOptionPane is an inner class A) i-false ... ) i-false, ii-true, iii-false, iv-false D) i-true, ii-false, iii-false, iv-true

Last Answer : C) i-false, ii-true, iii-false, iv-false

Description : Why do we insert comments in an HTML document, even though they are not displayed on a Web page? -Technology

Last Answer : So, that user will be able to understand coding effects and meaning.

Description : How can text be displayed in place of image for users whose browser do not support images? -Technology

Last Answer : The alt attribute of the tag is used to display the text in place of the image for the users whose browser do not support images.

Description : The text specified in the alt attribute is displayed as tooltip in (a) Internet Explorer -Technology

Last Answer : (a) The text specified in alt attribute is displayed as the tooltip in Internet Explorer only.

Description : The alternate text of an image can be displayed by using attribute of the tag. (a) src (b) alt -Technology

Last Answer : (b) alt attribute of the tag is used to display the alternate text of an image.

Description : ……………. is an attribute of the tag which specifies the location or URL of the image to be displayed. -Technology

Last Answer : src is an attribute of the tag which specifies the location or URL of the image to be displayed.

Description : An image to be displayed in a Web page has to cover 25% of the browser window horizontally and 50% vertically. -Technology

Last Answer : An image to be displayed in a Web page has to cover 25% of the browser window horizontally and 50% vertically. The attributes height and width of the tag would be used for achieving this.

Description : The align attribute of the tag is used to specify the text that is to be displayed -Technology

Last Answer : False alt attribute is used to specify the text that is to be displayed in case the browser which does not support graphics.

Description : Vallesoft Pvt. Ltd has designed and developed a Website that will be displayed differently in each of the continents. -Technology

Last Answer : (i) None of the given code fragments are well-formed.(ii) The correct code is: STAR TV 9.00PM Family Drama (iii) The XML tree is

Description : Comments are displayed in the output. -Technology

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

Description : When a field name has a space in its title, such as Last Name, how is the merge field displayed in the mail merge document? -Technology

Last Answer : (c) When a field name has a space in its title, such as Last Name, Last_Name is the merge field displayed in the mail merge document.

Description : In Excel chart, text displayed at data points to indicate the specific category is called …………….. -Technology

Last Answer : (c) Text displayed at data points to indicate the specific category is called data label.

Description : Explain with the help of an example that why should atransaction be executed as a whole or it should be not executed at all -Technology

Last Answer : A transaction is a set of changes that must be made together. It is a program unit whose execution mayor may not change the contents of a database. Transaction is executed as a single unit. ... from one bank account to another requires two changes to the database both must succeed or fail together

Description : ‘Class’ table has columns RNO and NAME. The following statements are executed: -Technology

Last Answer : Output for the 1st SELECT * FROM Class ; statement -RNONAME5Rajeev6Chris7FerozeOutput for the llnd SELECT * FROM Class; statementRNONAME5Rajeev6Chris

Description : Nikhil and Neha went to a remote village in Kerala to meet their grandmother. They were surprised to see a biogas plant in Mr. Nair's house in the neighbourhood. There were plenty of livestocks ... given by Nikhil and Neha to the sarpanch to convince him to set up community biogas plant. -Science

Last Answer : (a) Mr Nair: Higher degree of general awareness, helping nature. Nikhil and Neha: Knowledge sharing. helping nature. concern for community advantage. (b) Possible arguments given by Nikhil ... . Basically they discuss and explain the advantages of community bio gas plant for the'entire village.

Description : Aren't the US flags displayed behind the president in violation of the flag code?

Last Answer : On that logic there is only allowed to be one US flag flying within the whole of the United States. Where should it go?

Description : The binary code for each pixel is used to determine A. Which colour will be displayed B. How big the image is C. What shape the image is D. How many pixels will be in the image

Last Answer : A. Which colour will be displayed

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 : What is the output of the following piece of code when executed in Python shell? >>> a=("Check")*3 >>> a a) (‘Check’,’Check’,’Check’) b) * Operator not valid for tuples c) (‘CheckCheckCheck’) d) Syntax erro

Last Answer : c) (‘CheckCheckCheck’)

Description : What is the output when following code is executed ? >>>list1 = [11, 2, 23] >>>list2 = [11, 2, 2] >>>list1 < list2 is a) True b) False c) Error d) None

Last Answer : b) False

Description : What is the output when following code is executed ? names1 = ['Amir', 'Bear', 'Charlton', 'Daman'] names2 = names1 names3 = names1[:] names2[0] = 'Alice' names3[1] = 'Bob' sum = 0 for ls in (names1, names2, names3): ... if ls[1] == 'Bob': sum += 10 print sum a) 11 b) 12 c) 21 d) 22

Last Answer : d) 22

Description : What is the output when following code is executed ? >>>names = ['Amir', 'Bear', 'Charlton', 'Daman'] >>>print(names[-1][-1]) a) A b) Daman c) Error d) n

Last Answer : b) Daman

Description : What is the output when following code is executed ? >>>str1="helloworld" >>>str1[::-1] a) dlrowolleh b) hello c) world d) helloworld

Last Answer : a) dlrowolleh

Description : hat is the output when following code is executed ? >>>print r"\nhello" The output is a) a new line and hello b) \nhello c) the letter r and then hello d) error

Last Answer : d) error

Description : What is the output when following code is executed ? >>> str1 = 'hello' >>> str2 = ',' >>> str3 = 'world' >>> str1[-1:] a) olleh b) hello c) h d) o

Last Answer : b) hello

Description : A compiler is used to convert the following to object code which can be executed (A) High-level language (B) Low-level language (C) Assembly language (D) Natural language

Last Answer : (A) High-level language

Description : When the following code is executed what will be the value of x and y? int x = 1, y=0; y = x++; (A) 2, 1 (B) 2, 2 (C) 1, 1 (D) 1, 2

Last Answer : (A) 2, 1

Description : Memo data type allows you to store character type values in a table. -Technology

Last Answer : True Memo data type allows upto 65536 characters.

Description : Name the values that can be assigned to align attribute of tag. -Technology

Last Answer : The values that can be assigned to align attribute of tag are as follows:1. top2. bottom3. left4. right5. middle

Description : The frame attribute contains types of values. (a) 9 (b) 3 -Technology

Last Answer : (a) The frame attribute contains 9 types of values.

Description : Name any two values specified in frame attribute. -Technology

Last Answer : The values that can be specified for frame attribute are void and above.

Description : How many values can be specified in rules attribute of tag? -Technology

Last Answer : There are total five values that can be specified for rules attribute.

Description : Name the values that can be used in valign attribute. -Technology

Last Answer : The values that can be used in valign attribute are top, middle and bottom.

Description : There are total………… values for rules attribute in tag. -Technology

Last Answer : There are total 5values for rules attribute in tag.

Description : XML attribute values should always be enclosed in ………… . -Technology

Last Answer : XML attribute values should always be enclosed indouble quotes.

Description : In XML, ……….. cannot contain multiple values. -Technology

Last Answer : In XML,attributescannot contain multiple values.

Description : The values of the attributes are enclosed in double question marks. -Technology

Last Answer : False The values of the attributes are enclosed in double quotation marks.

Description : Write down the formula for adding values of cells A1 to A5. -Technology

Last Answer : Formula for adding values of cells A1 to A5 would be =SUM(A1 : A5).

Description : A chart is created on the basis of values in ……………… (a) mail merge -Technology

Last Answer : (c) A chart is a pictorial representation of data that created on the basis of values in a spreadsheet.

Description : The ……………. tool is used in speadsheet that creates a growth series, wherein subseguent values follow an increasing or a decreasing geometric pattern. -Technology

Last Answer : The Source tool is used in spreadsheet that creates a growth series, wherein subsequent values follow an increasing or a decreasing geometric pattern.

Description : Explain the various values associated with “scrolling” attribute of FRAME tag. -Technology

Last Answer : The scrolling attribute of FRAME tag can take 3 values:Yes will insert both the scrolls irrespective of the size of the sub-window.Auto will insert the scrolls only when the contents of the sub-window are not visible.No will not insert any scrolls even when all the contents are not visible.

Description : Mr. Sanjay wants to plot a bar graph for the given set of values of subject on x_axis and number of students who opted for that subject on -Technology

Last Answer : (i) plt.bar(x,y)(ii) plt.show()

Description : Write a numPy program to create a numPy array with all values as True printed 10 times. -Technology

Last Answer : This answer was deleted by our moderators...

Description : Using Python Matplotlib ...... can be used to count how many values fall into each interval a. line plot b. bar graph -Technology

Last Answer : (c)histogram

Description : In Pandas the function used to check for null values in a DataFrame is ..... -Technology

Last Answer : In Pandas the function used to check for null values in a DataFrame isisnull()