Re_write the above given code through if_else statements. -Technology

1 Answer

Answer :

if(application= =0)jTextField1.setText('RDBMS');else if(application= =1)jTextField1.setText('BROWSER');else if(application= =2)jTextField1.setText('OS');else if(application= =3)jTextField1.setText('PHOTO EDITOR');elsejTextField1.setText('Application Software');

Related questions

Description : Write the HTML code to create the exact table which is given below: ADMNO SNAME NAME DOB -Technology

Last Answer : The HTML code is ADMNO SNAMENAMEDOB1110MANJITRANJIT4-MAR-1998

Description : Draw the XML tree for code given below: -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below: -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below_ -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below: -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below: -Technology

Last Answer : Draw the XML tree

Description : Write the HTML code to generate the following web page with the given below specifications: -Technology

Last Answer : Income Tax Slabs 2017-18INCOME TAX SLABS 2017-18S.No.Income RangeTax%10-250000NIL2250001-50000010%3500001-100000020%4>100000030%Next Page

Description : Dev, a website designer with “Creative Designers Pvt. Ltd.” has written the following code. Observe the code given below -Technology

Last Answer : (i) XML code(ii) Company(iii) name, dept(iv) eid, deptid

Description : Write a code to plot the speed of a passenger train as shown in the figure given below: -Technology

Last Answer : import matplotlib.pyplot as pltimport numpy as npx = np.arange(1, 5)plt.plot(x, x*1.5, label='Normal')plt.plot(x, x*3.0, label='Fast')plt.plot(x, x/3.0, label='Slow')plt.legend()plt.show()

Description : Write a python code to create a data frame with appropriate headings from the list given below : -Technology

Last Answer : import pandas as pd# initialize list of listsdata = [['S101', 'Amy', 70], ['S102', 'Bandhi', 69], ['S104','Cathy', 75], ['S105', 'Gundaho', 82]]# Create the pandas DataFramdf = pd.DataFrame(data, columns = ['ID', 'Name', 'Marks'])# printdataframe. print(df )

Description : Write the code given below using ‘for’ loop instead of ‘while’ loop : -Technology

Last Answer : The given code using ‘for’ loop instead of ‘while’ loop :int ifor (i = 1 ; i < = 5 ; i + +){if (1 * i = = 4)jTextFieldl. setText ( “ “ + i) ;}

Description : ………. reads the bar code information. -Technology

Last Answer : Barcode Reader reads the bar code information.

Description : Machine language sometimes referred to as (a) programming language that is used widely by the programmer. (b) machine code or object code -Technology

Last Answer : (b) Machine language sometimes referred to as machine code or object code because it is the language which is only understood by the computer as a computer itself is just a machine or an electronic device.

Description : Consider the following database: Product Code Product Name Date of sale QtySold Customer Name Amount -Technology

Last Answer : 1. Qty Sold and Amount fields2. ProductCode field3. Date/Time data type4. ProductCode, ProductName and CustomerName fields5. 6 fields and 5 records6. Validation Rule

Description : Write HTML code to set the image ‘Pen. jpg’ stored in ‘My Pictures’ folder in C: -Technology

Last Answer : The HTML code is .

Description : Write the extension of HTML code file. -Technology

Last Answer : The extension of HTML code file is.html or .htm

Description : What is the method of viewing the source code of the current page in the Web browser? -Technology

Last Answer : Right click on the Web page and then select View Source from the context menu.

Description : While writing HTML code, how do you find out how your Web page would look like? -Technology

Last Answer : For this, open the HTML code file in a Web browser.

Description : Identify the error(s) in the following HTML code. Also, write the correct code. -Technology

Last Answer : The error in the code is that in place of color attribute there should be bgcolor.The correct code is

Description : What is the use of tag in HTML code? Write any two options used with this tag. -Technology

Last Answer : The tag is used to change the size, color and type face of the text on HTML page. It uses attributes such as size, face etc.

Description : Identify the errors and write the correct HTML code 1. -Technology

Last Answer : 1. 2.

Description : What is the method of using comment line in the HTML code? -Technology

Last Answer : In HTML code, the comment line is declared as

Description : Write the HTML code to display horizontal line of red color. -Technology

Last Answer :

Description : Find error(s) in the following HTML code segment. Rewrite the correct code. -Technology

Last Answer : There should be type instead of style. So, correct line is

Description : Find the error(s) in the following code and underline those errors. -Technology

Last Answer : should be placed before The correct code is Example

Description : What is the use of tag in HTML code? Write any two attributes used with this tag. -Technology

Last Answer : The tag encloses the main part of the document. It contains all the contents of a document. Various markup elements are allowed within the body to indicate headings, paragraphs, lists, hypertext links, images and so on. The tag uses various attributes such as background, bgcolor etc.

Description : Write the HTML code to set the bgcolor as pink, heading level 2, text -Technology

Last Answer :

Description : Write the HTML code to create a paragraph whose text color is blue. -Technology

Last Answer : or

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

Last Answer : Output• MANGO• APPLE• GRAPES

Description : Identify error(s) in the following HTML code. Also, write the correct code. type=“a” start=“d”> -Technology

Last Answer : tag’s attributes should be placed in between . In the list, the start attribute must be set to a numeric value and type attribute specifies ‘A’, ‘a’, T ‘i’ or ‘1’. So, the correct code is

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

Last Answer : ComputerAn electronic machineCPU Brain of computer

Description : How are comments inserted in HTML code? Explain with an example. -Technology

Last Answer : Comments are inserted in HTML code with the help of tag. To insert the text as a comment, type the text between tag, then that text will be ignored by the browser and invisible for the user.e.g.This is a book

Description : Write HTML code to display various bullet types. -Technology

Last Answer : LotusRoseSunHoonoutput

Description : Write HTML code to display ordered lists. -Technology

Last Answer : Many Ordered ListNumbered listSunMoonLetters 1is t SunMoonLowercase letters starting from 3rd 1etter

Description : Which program do you need to write HTML code? (a) Spreadsheet (b) Access -Technology

Last Answer : (c) From the given options, Notepad is useful program to write HTML code.

Description : Which of the following is the correct code of HTML page? (a) Hello -Technology

Last Answer : (b) Because tag must close inside the tag.

Description : The following code is written to align the image in center in the browser’s window. -Technology

Last Answer : The reason for not getting the desired result is that center is not a value of align attribute in the tag.

Description : Write the HTML code to display an image on the right side of the page. -Technology

Last Answer :

Description : Write the HTML code to display an inline image named pencil.jpg located at C:\ in the center of your Web page. -Technology

Last Answer :

Description : Identify the errors in the following HTML code and write the correct code with each correction underlined. -Technology

Last Answer : Error 1 The tag must be within element.Error 2 bgcolor attribute of body element supports a color like red, green or its color value.Error 3 tag needs a source attribute src to place an ... element must be closed not bgcolor attribute.The correct code is as follows:IMAGESHERE IS MY IMAGE FILE

Description : Write the HTML code to create a link for school .jpg located at C:\. -Technology

Last Answer : Image

Description : Write an simple HTML code to show an example of internal linking. -Technology

Last Answer : Internal LinkingIt is top of the page Top

Description : Write an HTML code to show the use of mailto function. -Technology

Last Answer : Use of mailto Send your views to [emailprotected]< / a >

Description : Write the HTML code to send an E_mail to [emailprotected] from your Web page. -Technology

Last Answer : [emailprotected]

Description : Write HTML code to illustrate 1. listed hyperlinks 2. image hyperlinks -Technology

Last Answer : Listed Hyperlinks: It is noticeable that tag can also be used for more complex task (as with images or with lists etc.)Example: To show listed hyperlinks. List List Fruit Chart Vegetable Chart ... as a link, following syntax is used: Example: To show image as link.< title>Image as Link

Description : The correct HTML code for inserting an image is (a) -Technology

Last Answer : (c)

Description : With which code you .can make an image works as link? -Technology

Last Answer : (b) With Click Here image works as link.

Description : To display (X+Y)2, correct HTML code is (a) (X+Y)2 -Technology

Last Answer : (c) (X+Y) 2 code is correct because superscript have to be placed in between and tags.

Description : Choose the correct HTML code to right align the content inside a table cell. (a) (b) -Technology

Last Answer : (a)