Consider the following graph . Write the code to plot it. -Technology

1 Answer

Answer :

import matplotlib.pyplot as pltplt.plot([2,7],[1,6])plt.show()alternative answerimport matplotlib.pyplot as plta = [1,2,3,4,5,6]b = [2,3,4,5,6,7]plt.plot (a,b)

Related questions

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 : The command used to give a heading to a graph is .... (a) plt.show() (b) plt.plot() (c) plt.xlabel() (d) plt.title() -Technology

Last Answer : (d)plt.title()

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 : 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 : 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 : 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 : plot the graph -Maths 9th

Last Answer : F = ma This equation can be written in the form of y = mx, where m is the slope In this case m = m = 3 kg The graph will be a straight line passing through the origin. When a = 2, F = 6 N When a = 3, F = 9 N

Description : Taking 0.5 cm as 1 unit, plot the following points on the graph paper. -Maths 9th

Last Answer : Here, in point 4(1, 3) both x and y-coordinates are positive, so it lies in I quadrant. In point 8(-3, -1),both x and y-coordinates are negative, so it lies in III quadrant. In point C(1, -4), x- ... is zero, so it lies on Y-axis and in point F(1,0) y-coordinate is zero, so it lies on X-axis.

Description : plot the graph -Maths 9th

Last Answer : F = ma This equation can be written in the form of y = mx, where m is the slope In this case m = m = 3 kg The graph will be a straight line passing through the origin. When a = 2, F = 6 N When a = 3, F = 9 N

Description : Taking 0.5 cm as 1 unit, plot the following points on the graph paper. -Maths 9th

Last Answer : Here, in point 4(1, 3) both x and y-coordinates are positive, so it lies in I quadrant. In point 8(-3, -1),both x and y-coordinates are negative, so it lies in III quadrant. In point C(1, -4), x- ... is zero, so it lies on Y-axis and in point F(1,0) y-coordinate is zero, so it lies on X-axis.

Description : If you were to plot the height of everyone in your class on graph the values would probable form a hill-shaped curve called?

Last Answer : logistic model

Description : A graph between __________ is called Wilson plot. (A) (1/U) Vs. (1/v 0.8 ) (B) (1/v 0.8 ) Vs. U (C) v 0.8 Vs . U (D) (1/U) Vs. (1/V)

Last Answer : (A) (1/U) Vs. (1/v 0.8 )

Description : Pick out the wrong statement. (A) Visible radiation provides the necessary activation energy in photochemical reactions (B) The order and molecularity of a complex reaction may not be the same (C) For ... rate constant (k) (D) Molecularity of the reaction is always a whole number greater than zero

Last Answer : (B) The order and molecularity of a complex reaction may not be the same

Description : Compressibility factor-reduced pressure plot on reduced co-ordinates facilitates (A) Use of only one graph for all gases (B) Covering of wide range (C) Easier plotting (D) More accurate plotting

Last Answer : A) Use of only one graph for all gases

Description : Bernard's distribution graph is a plot of time on X-axis and (A) Run off on the y-axis (B) Total run off on the y-axis (C) Percentage of total surface run off on y-axis (D) Percentage of total surface run off during uniform time intervals on y-axis

Last Answer : Answer: Option D

Description : Draw the following bar graph representing the number of students in each class. -Technology

Last Answer : import matplotlib.pyplot as pltClasses = ['VII','VIII','IX','X']Students = [40,45,35,44]plt.bar(classes, students)plt.show()

Description : Consider the following table Furniture. Write SQL commands for the statements (i) to (viii) and write output for SQL queries (ix) and (x). -Technology

Last Answer : SQL commands for the given statements (i) to (viii) ;1. SELECT FCODE, NAME. PRICE FROM Furniture WHERE PRICE < 5000;2. SELECT NAME. PRICE FROM Furniture3.4. WHERE NAME LIKE %table% ;5. SELECT DISTINCT WCODE ... ;15.16. Output for SQL queries (ix) and (x)(ix)SUM(PRICE)6500(x)COUNT(DISTINCT PRICE)5

Description : Consider the decimal number x with value 8459.2654. Write commands in SQL to: i. round it off to a whole number -Technology

Last Answer : i. select round(8459.2654);ii.select round(8459.2654,-2);

Description : Consider a given Series , M1: Write a program in Python Pandas to create the series. -Technology

Last Answer : import pandas as pdm1=pd.Series([45,65,24,89],index=['term1','term2','t erm3','term4'])

Description : Consider the following Series object, S_amt Table 350 Chair 200 Sofa 800 Stool 150 i. Write the command which will display the name -Technology

Last Answer : i. print(S_amt[S_amt>250])ii. S_amt.name= 'Furniture'

Description : Consider the following SQL string: “Preoccupied” Write commands to display: (a)“occupied” (b)“cup” -Technology

Last Answer : commands to display:(a)“occupied” (b)“cup”

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 : 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 : Write the HTML code to display horizontal line of red color. -Technology

Last Answer :

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 : 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 : 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 : 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 : Write HTML code to display a table with border of 5px. -Technology

Last Answer : l2 „

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 : Write an HTML code to create the following table: 100 Amit 10 A -Technology

Last Answer : The HTML code is Roll NumberNameClass 100 Amit 10 A 101 Ankit 10 B 102 Arnab 10C Footer 1 Footer 2 Footer 3

Description : Observe the following table and write the HTML code to generate it: Question Marks -Technology

Last Answer : The HTML code isquestion< /th >marksl225

Description : Observe the following table and write the HTML code to generate it: Period 1 Period 2 -Technology

Last Answer : The HTML code isPeriodlPeriod2 MathScienceEnglishSST Science< /td >SST

Description : Write the HTML code to generate the following table with the contents exactly in the same format as shown within the table: -Technology

Last Answer : The HTML code is

Description : Write the HTML code to generate the following table on a Web page with the contents and alignment exactly as shown below: -Technology

Last Answer : The HTML code is