Question: 10. Write a for loop that echos the following set of numbers: 0, 10, 20, 30, ..., 100 Answer: The following script is used in
10. Write a for loop that echos the following set of numbers: 0, 10, 20, 30, ..., 100 Answer: The following script is used in a discount coupons a customer get after the script. bookstore to determine how many s. Complete the table that appears 11. "; "
"; 27 Answer: 17. In the PHP code below, the string "cat is a(n)? Sabc example"cat"l: a. array b. array value c. ordered map d. array element e. array key Answer: 18. The function in PHP returns an array of strings, each of which is a substrin of main string formed by splitting it on boundaries formed by a delimiter. a. explode b. substring c. delimit d. array e. file Answer 19. What classes of information are available via the S.SERVER super global array? 6 Answer: 20. Which of the following best describes an object? a. It is a specific instance of a class. b It is the general description of a type of thing. c. It is a method of a class. d. It is an attribute of a class. Answer: 21. To instantiate an object in PHP from the class Artist, you would use which of the following? a. Sexample#new Artist(); b. Sexample new SArtist) c. Sexample _construct): d. example _construct( Artist") e. None of the above Answer: 22. Consider the following class: class IdentifyMyParts( public static Sx 7; public Sy 3; What is the output from the following code: Sa-new ldentifyMyParts0: $b- new IdentifyMyParts0: $c new ldentifyMyParts0: IdentifyMyParts:$x1; IdentifyMyParts: $x-2 echo "a-ay-" . $a->y . " "; echo "b->y-" . $b->y . " "; echo " IdentifyMyParts:x. IdentifyMyParts: $x; Answer: 23. Write SQL statement to create a table named college with the following columns: collegeld (this is primary key and should be auto incremented) Name (varchar with 255 characters) Address (varchar with 255 characters) a. b. c. 24. Write SQL statement to create a table named students with the following columns: studentld (this is primary key and should be auto incremented) firstName (varchar with 255 characters) lastName (varchar with 255 characters) gpa (float) d. e. f. g. 25. Write SQL statement to insert a college into the college table. Use Century College for the name and "3300 white bear ave" for the address. 26. Write SQL statement to insert a student into the student table. Use "john", "smith",3.4 for firstname, lastname and gpa, respectively
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
