1. Write a C code to split the original single linked list into two sub-lists, where the first and second sub-list contains the even position nodes and odd position nodes of the original list respectively, and then join the second sub-list at the end of the first sub-list. Example: If the list contains 3->4->2->1->7->9->8, then the function needs to produce 3->2->7->8->4->1->9.
1.2 A lecturer wants to know if his statistics class has a good grasp of basic maths from matric level. Eleven students are chosen at random from the class and given a maths proficiency test. The lecturer wants the class to be able to score above 75 on the test to show that they had a good grasp of basic maths. The eleven students get scores shown below: 62 88 71 50 67 70 92 75 68 83 95 Can the lecturer be 95 percent confident that the students had a good grasp of basic maths?
Craig bought a new point if sale system for his military surplus store. This system keeps track of his stock, allows him to process sales transactions and will allow him to generate various reports using the system. Craig has been experiencing several problems. He phones the system's customer care line. He mentions that he doesn't know whether the system is busy processing commands or whether the system is idle. On one screen the word 'Edit' is used and on another screen the word 'Modify' is used. He told the customer care department that some buttons look like labels and that there doesn't appear to be clear to navigate through the system. The system also doesn't inform him when transactions is successfully completed. If Craig has made a mistake, he can't undo the transaction. Every activity that Craig wishes to complete takes no less than seven steps and there are no shortcuts for him to use.
List four Design principles that were ignored by designers of the system and provide examples from the scenario.
Write a program to print the names of students by creating a
Student class. If no name is passed while creating an object of
Student class, then the name should be "Unknown", otherwise the
name should be equal to the String value passed while creating
object of Student class.
Suppose there is a list s1->s2->s3->.........->sn-1
->sn. given to you. Write the algorithm and the pseudo code to modify this list in
such a way that it will be s1->sn
->s2->sn-1
->s3->sn-2.......
Note: algorithm should be in place without modifying the values of the nodes.
Marking Scheme: Total 10 marks ( Algorithm explanation + Pseudo-code + runtime and data
structure used)
What is the value of pairs after the following assignment?
pairs = [ (x,y) for x in range(5,1,-1) for y in range(4,1,-1) if (x+y)%3 == 0 ]1.Prepare an example of resource sharing algorithm (preferably Max-Min).
2. How APIs are used to provide ML capability for cloud services?
3.Think about some AI examples for Manufacturing industry and search for any cloud support.