Date format-2
1. After imputation of nulls with mean what is the average value of the compressive strength in concrete?
2. The feature that has a moderately strong relationship with compressive strength in concrete is?
3. Standardize the dataset using standardscaler(), split the dataset into train and test of proportions 70:30 and set the random state to 1. Build a Linear Regression Model on the data and the resulting r-squared value is between which range?
Write the code to test if the variables num1 and num2 are not the same
Give seconds as input,write a program to print in D days H hours M minutes S seconds
Input 200
Output 3 minutes 20seconds
Input 86400
Output 1 day
Consider a mx n matrix inmatrix of string elements containing alphanumeric values, where m>1, n >=1. Identify and print outarr based on the logic below:
• Traverse the inmatrix in clockwise spiral way starting from the element at (0,0) •
traversal until one of the two conditions is met • The element or the concatenated string is a palindrome with length greater
than 1 There are no more elements left for traversal
. Add the concatenated string to outarr
. If there is any element which has not yet been visited in the traversal, repeat the two steps, forming a new concatenated string that starts with the next element present after the last element previously traversed
Note: Perform case-sensitive comparison
Input format:
First line will contain number of rows m of inmatrix
The next m lines will contain the elements of inmatrix. Each line will have n string
elements separated by (comma)
Consider a relation train with attributes trainid (Primary Key), trainname, traintype, noofcoaches, source and destination. Except trainid, no columns am The table has following 3 indexes created:
IX1-trainname, source
IX2- trainname, destination
IX3 noofcoaches
Which of the following will NOT use index?
SELECT customername FROM customer c, mobile m, purchase p WHERE p.mobileidm.mobileid AND c.customerid = p.customerid AND p.customerid IN (SELECT customerid FROM purchase GROUP BY customerid HAVING #SPACE1=(SELECT #SPACE2 FROM purchase GROUP BY customerid)) AND price> 40000;
8
9
11
What should be written at #SPACE1 and #SPACE2 respectively in the query given above to get John, Jack and Maria in the output?
1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter
2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.
3: Create a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.
4: Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.
he volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
Call your print_volume function three times with different values for radius.
Include all of the following in your Learning Journal:
Note: This question is part 2 of question #295009 so please answer the take both questions as one question and then answer. please thank you.
c. Book class should include a constructor and the following methods: -
- setBookISBN: to set the ISBN for the book. (Hint: You can use ISBN class input method)
- DisplayBookISBN: to get the ISBN of the book. (Hint: You can use ISBN class method)
- display details: to display all the information of a book which includes Books ISBN, title, authorName, publisherName, Address (Country, City, Street Name and House Number) and price.
Question 2:
Create class diagram of Question-01.