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

1 Answer

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()

Related questions

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

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

Last 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)

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 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 : 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 : A passenger train without stopping running at an average speed of 120 km/hr and with stoppages at an average speed of 80 km/hr. What is the total time taken by the train for stoppages on a route of length 480km? a) 2 hours b) 3 hours c) 4 hours d) 5 hours

Last Answer : A Let r = running time of the train s= stoppage time of the train D= total distance travelled by train We have: D/r= 120 and ..(1) D/(r+s) =80 ..(2) Diviving (1)&(2), D/r *(r+s)/D = ... , D=480 kms 480/r= 120 r=4 put r value in (3),we get s/4 =1/2 S = 2 hours

Description : Distance between two stations P & Q is 1556km. A passenger train covers the journey from P to Q at 168km per hr and return back to P with a uniform speed of 112km/hr. Find the Average speed of the train during the whole journey? A) 124.4 km/hr B) 130.4km/hr C) 134.4 km/hr D) 130.0 km/hr

Last Answer : C) Given x= 168 , y = 112 Required average speed = (2xy / x + y) km/hr = 2 * 168 *112 / 168 + 112 = 37632 / 280 =134.4 km/hr

Description : A person runs on the platform of 90 m at a speed of 5km/hr in the same direction of the passenger train. Find the time taken by the train to cross the running person if speed of the train is 35.5 km/hr? (Length of train = Length of platform) A) 5.32sec B) 7.5sec C) 12.6sec D) 10.62sec

Last Answer : ANSWER:D Explanation: speed of the train = 35.5 km/hr speed of the person = 5 km/hr As the train and the running person move in same direction, their speed values are subtracted to find the relative ...  =10.62 sec  Hence, the time taken by the train to cross the running person is 10.62 sec

Description : A passenger train 165 m long which is running at a speed of 30km/hr. In what time will it pass a man who is running at a speed of 3 km/hr in the opposite direction. In which the train is moving. A)14 sec B) 17sec C)16sec D)18sec

Last Answer : ANSWER: D Explanation:  Speed of the train = 30 km/hr  Speed of man = 3 km/hr  Length of the train = 165m If direction is given in opposite direction then we add both speed.  That is (30 + 3 )= 33 km/hr ... can easily get the distance of m/s  So it cover 165 m  i.e., 165 * 6 /55 = 18 sec.

Description : A passenger train 300m long is running with a speed of 136 km/hr. In what time will it pass a boy who is running at 6 km/hr in opposite direction in which the train is moving? A) 8.6sec B) 7.6sec C) 3.6sec D) 2.6sec

Last Answer : ANSWER: B Explanation:  Speed of the train = 136 km/hr  Speed of boy = 6 km/hr  Speed of the train relative to boy = (13 + 6)km/hr  = 142 km/hr Convert km/hr into m/s 142 km /hr = (142 * 5 / 18 ... taken bt it to cover 300 m at 39.44 m/s =300 / 39.44 [speed time= distance / speed] = 7.6 sec

Description : In a Bank’s database, there are two tables ‘Customer’ and ‘Transaction’ as shown below. Write a query to display customer’s name who has -Technology

Last Answer : (i) Select cust_name from customer c,transaction t where c.Acc_No=t.Acc_No and Transaction_Type= 'Debit';(ii)Select cust_name, t.* from customer c, transaction t where c.Acc_No=t.Acc_No;(iii) ... total amount of all type of transactions, it will only display the total of credit transactions only.

Description : Identify the topology shown below. Write 2 advantages of this topology. -Technology

Last Answer : Star Topology Two advantages of star topology are as follows :1. Easy to detect faults and remove It.2. Failure to single system will not bring down the entire network.

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 : 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 : 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 : Draw the XML tree

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 : For the circuit shown in figure given below, the equivalent resistance points A and B is

Last Answer : For the circuit shown in figure given below, the equivalent resistance points A and B is A. `10Omega` B. `5 Omega` C. `(10)/(3)Omega` D. `2Omega`

Description : Mr. Suman, a programmer in New Era Programming World has designed a registration page for a hobby club as shown below: -Technology

Last Answer : (i) int x=c1.getSelectedIndex();int fee=0;if(x==0)fee=1000;else if(x==1)fee=1500;else if(x==2)fee=2000;else if(x==3)fee=2500;t2.setText(''+fee);(ii) double disc=0;int fee=Integer.parseInt(t2. ... (t2.getText());double net=fee-disc;t4.setText(''+net);(iv) System.exit(0);(v) c1.addItem('Reading');

Description : In a Bank’s database, there are two tables ‘Customer’ and ‘Transaction’ as shown below. -Technology

Last Answer : (i)Acc_No, Cust_Phone(ii)All the columns having capability to become Primary Key are known as Candidate Keys.(iii)Acc_No(iv)Trans_Id

Description : Can a passenger sell food on a flight or train ride?

Last Answer : No. They can offer at no cost, but they can’t sell it.

Description : Can you still take a trip on a passenger train?

Last Answer : Amtrak! Yes! Haven’t done it, but it looks like an amazing trip to take cross country! (I have driven and taken Grayhound, but not as romantic.)

Description : The Bandhan Express is an international passenger Train which runs between the India and Which country? A. Bangladesh B. Nepal C. China D. Bhutan

Last Answer : A [Bangladesh] Explanation: The Bandhan Express is an international passenger train which runs between the Indian city of Kolkata and the Bangladeshi city of Khulna every week.

Description : Longest passenger train on Indian Railway is 1. Prayagraj Express* 2. Kalka Mail 3. Himsagar express 4. Lucknow mail

Last Answer : 1. Prayagraj Express*

Description : On a certain day, the ratio of the passenger in the 1st class and the second class travelling by train is 1:3. the ratio of the fares collected from each first class and second class passengers is 30:1. If ... in Rs, collected from the second class passengers. A) 240 B) 360 C) 480 D) 120 E) None

Last Answer : Answer: D Let the number of passengers travelling by first class and second class be x and 3x respectively. Lets the fares collected from each of the first class and second class passengers be 30y and y ... 3xy=33xy=1320 xy=40. Total amount collected from the second class =3xy=3 40= Rs 120.

Description : Two passenger trains are running in the same direction on parallel tracks at 210km/hr and 150km/hr respectively. The faster train passes a man 81 sec faster than the slower train. Find the length of the faster train. A) 1250m B) 1150m C) 1350m D) 1450m

Last Answer : ANSWER: C  Explanation:  Speed of 1st train = 210km/hr  Speed of 2nd train = 150km/hr  Here the two passenger trains are running in same direction, so  Relative speed = (210 - 150)km/hr  = 60km ... faster train = relative speed * time taken by train to pass  = 50/3 * 81  = 1350m

Description : A passenger train travelling at 96 kmph completely crosses another train having half its length and travelling in opposite direction at 84 kmph, in 24 seconds. It also passes a railway platform in 90 seconds. The length of the platform is A) 1250 m B) 2258m C) 1600 m D) 3725m

Last Answer :  ANSWER:C  Explanation:  Let the length of the first train be x metres  Then, is x /2metres  Relative speed = (96+84)kmph  = 180 kmph  Convert km/hr into m/s,  = 180*5/18  = 50 m/s  Therefore (x ...  (800+y) = 90*480/18  y = 2400- 800  = 1600  Hence, the length of the platform is 1600 m

Description : With reference to the above given tables, write commands in SQL for (i) and (ii) and output for (iii) below: -Technology

Last Answer : (i) select TName, Passenger from Train T, Reservation R where T.TrainId=R.TrainId;(ii) select T.* from Train T, Reservation R where T.TrainId!=R.TrainId;(iii)TrainIdTNameSourceDestination3424Lucknow MailLucknowNew Delhi5400Century ExpressNew DelhiKanpur

Description : Write a small python codeto create a dataframewith headings(a and b) from the list given below : [[1,2],[3,4],[5,6],[7,8]] -Technology

Last Answer : import pandas as pddf = pd.DataFrame([[1, 2], [3, 4]], columns = ['a','b'])df2 = pd.DataFrame([[5, 6], [7, 8]], columns = ['a','b'])df = df.append(df2)

Description : Plot the following points and write the name of the figure obtained by joining, them in order -Maths 9th

Last Answer : Let X’ OX and Y’ OY be the coordinate axes and mark point on it. Here, point P(-3,2) lies in II quadrant, Q(-7,-3) lies in III quadrant, R(6, -3) lies in IV quadrant and S(2,2) lies in I quadrant. Plotting the points on the graph paper, the figure obtained is trapezium PQRS.

Description : Plot the following points and write the name of the figure obtained by joining, them in order -Maths 9th

Last Answer : Let X’ OX and Y’ OY be the coordinate axes and mark point on it. Here, point P(-3,2) lies in II quadrant, Q(-7,-3) lies in III quadrant, R(6, -3) lies in IV quadrant and S(2,2) lies in I quadrant. Plotting the points on the graph paper, the figure obtained is trapezium PQRS.

Description : River Alaknanda forms confluences (Prayags) in Uttrakhand. Match the codes given in Figure with Table (Prayags) and select the correct answer using the code given below. Figure Table (Pr ayags) D A L A K N A N D A C B A I. Karn Prayag II. Rudra Prayag III. Nand Prayag IV. Vishnu Prayag

Last Answer : (1) A-II, B-I, C-III, D-IV

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 : what is the reading in kwh of the electric meter shown in the exam figure below? -General Knowledge

Last Answer : 0631 is the reading in kwh of the electric meter shown in the exam figure below.

Description : What is the resultant of vectors shown in the figure below?

Last Answer : What is the resultant of vectors shown in the figure below?

Description : For the open drain (N = 0.025) shown in the below figure, the discharge is A. 26.88 cumecs B. 27.88 cumecs C. 28.88 cumecs D. 29.88 cumecs

Last Answer : ANS: C

Description : A vertically immersed surface is shown in the below figure. The distance of its centre of pressure from the water surface is (A) (bd²/12) + (B) (d²/12 ) + (C) b²/12 + (D) d²/12 +

Last Answer : Answer: Option B

Description : A hollow circular pipe with non-reflective inner surface is cut into 5 pieces and arranged as shown in the figure below. If it is illuminated from below using a torch as shown in the figure, what would be the profile of the light falling on the sheet kept above?

Last Answer : A

Description : A solid is shown in the figure below. The vertices ABCDEFGH form a 4 cm × 2 cm × 2 cm cuboid. The segments AI and DI are both of length 5 cm, and points ICGFB are coplanar. What is the height (in cm) of point I from the base rectangle EFGH? 

Last Answer : 4.80-4.84

Description : Write command for the operations (i) to (iii) based on the spreadsheet below: -Technology

Last Answer : 1. At cell F2, type =D2*E2 and then copy this formula using mouse Fill handle onto range F3: F5.2. At cell G2, type =IF(C2=”Consumable”, F2*0.07, F2*0.11) and then copy this formula using mouse Fill handle onto range G3: G5.3. At cell G6, type =SUM(G2: G5).

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 : The director of a company uses a database to store data about job title. This is a part of the database given below: -Technology

Last Answer : 1. 62. 63. Secretary4. Finance department and their Payroll Numbers are A621 and M502.

Description : Name the term defined by given below statement: “A group of computers connected to each other by a link.” -Technology

Last Answer : Computer network is defined as a group of computers connected to each other by a link.

Description : Answer the following questions based on the database given below: Prod_Id Prod_Name Category -Technology

Last Answer : 1. The primary key of the given table Product will be Prod _Id because no two products have the same Product_Id. So, it will be uniquely identified for each record in the table.2. The suitable data ... = 88. The data type OLE Object is suitable for adding the photograph of the product to the table.

Description : Some features of a specific operating system are given below: 1. Free/Open source -Technology

Last Answer : (i) Linux(ii) With Linux, you get four desktop screens known as workspace.