Question: Choose the correct answer for Emp table( empid, empname, salary, job, country) 1-To insert new attribute phone_no for table Emp. d. Alter Table Emp add

 Choose the correct answer for Emp table( empid, empname, salary, job,
country) 1-To insert new attribute phone_no for table Emp. d. Alter Table
Emp add phone_no. e. Alter Table Emp add phone_no char(20). f. Alter

Choose the correct answer for Emp table( empid, empname, salary, job, country) 1-To insert new attribute phone_no for table Emp. d. Alter Table Emp add phone_no. e. Alter Table Emp add phone_no char(20). f. Alter Table Emp add new attribute phone_no char(20). 2- To create the simple view Vsal for Emp: a. Create Vsal as Select empid salary where salary between 1200 and 3000. b. Create View Vsal as Select empid, salary where salary between 1200 and 3000 c. Create View Vsal as Select empid,salary where salary between (1200, 3000) 3. To change country of all programmers job to become Jordan. d. Update Emp set country="Jordan' if job='Programmer'. e. Alter table Emp set country="Jordan' where job="Programmer'. f. Update Emp set country="Jordan' where job='Programmer'. 4. Which is true for Revoke statement d. Revoke Select, Delete On Emp From user_XYZ e. Revoke Select, Delete On Emp To user_XYZ f. Revoke Select , Delete From user_XYZ 5. Which is true for Insert new employee a. Insert into table Emp ( 1121, Amjad", 560, "Clerk', 'Jordan) b. Insert into Emp values ( 1121, `Amjad", 560, 'Clerk', 'Jordan') c. Insert into Emp values ( 1121, 'Amjad', 'Clerk', 'Jordan', 560) o a disk can never be placed on a smaller disk. The initial state and the final state for a set of 3 disks are shown in the following figures. Tower Of Hanoi Tower Of Hanoi Start State Goal State Use A* algorithm to find the path from start state to the goal state. Problem 4: Suppose we have the following problem which is called Towers of Hanoi. Initially, the disks are placed in decreasing size on support 1, and the objective is to move them to support 3. The conditions for moving the disks are: (20 points] o all disks (except the one to be moved) have to be on one of the three supports; o it is possible to move only one disk at a time, taking it from the top of the tower on one of the supports and placing it on the top of the tower on another support; o a disk can never be placed on a smaller disk. The initial state and the final state for a set of 3 disks are shown in the following figures. Tower Of Hanoi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!