Find The missing number in each row
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
If all rows contains 1 to 4 numbers then it is true else false
Find the difference numbers 7 5 1
Output: 7-5=2, 5-1=4, 7-1=6.
So output is least difference 2
Find the missing number, which number is repeated 1 3 2 1 4
Output: repeated and missing number
1 4
Q1. Find the frequency of the given numbers 1 3 1 2 4 5.
Output:
1 2
2 1
3 1
4 1
5 1
Library Management
In this assignment, let's build a Library Management page by applying the concepts we learned till now.
Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif
HTTP Requests & Responses
Example:
https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India
It should pass test conditions:
When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element
When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response
An electricity board charges the following rates to domestic users to discourage large consumption of energy. For the first 100 units Rs 1.50 per unit For the next 200 units Rs 3.00 per unit
An organization is granted a block of addresses with the beginning address
70.10.27.0/28. The organization needs to have 3 subblocks of addresses to use in its three
subnets: Use VLSM. Design the network and plot it completely with respective subnets, IP
range, Network IDs .
Create a class named 'Rectangle' with two data members- length and
breadth and a function to calculate the area which is 'length*breadth'. The
class has three constructors which are :
1 - having no parameter - values of both length and breadth are assigned
zero.
2 - having two numbers as parameters - the two numbers are assigned as
length and breadth respectively.
3 - having one number as parameter - both length and breadth are
assigned that number.
Now, create objects of the 'Rectangle' class having none, one and two
parameters and print their areas.
Error control and Flow control is critical in effective frame transfer in a data link layer. Discuss the types of errors in detail and suggest suitable solutions for the same
Representatives
The principal of a school wants to speak with some of the students to as the overall development including studies. Mont of the teachers were selecting the toppers of their classes but Mr. Sam thought of an idea to select the bunch of students who did not have much difference in their marks so that he gains the reputation of a teacher who teaches well to the whole class and not just to a bunch of brilliant students.You are required to help Mr Sam in selecting K students that can speak with the principal from his class. You need to return an integer array representing the marks of the selected students sorted in ascending order.
Output Specification:
Return an integer array containing the marks of K selected students sorted in ascending order
Example 1:
input1: 10
input2: {950,477, 55, 602,881,302,859,438,551,382}
input3: 1
Output: {950}