3rd End-Term Mock
3rd End-Term Mock
3rd End-Term Mock
2) Which of the following statements about requirements for translating into specific languages
are not true?
A. Ideally the Application server should send Content-Language HTTP Header
and the HTML document that follows will be in the designated language.
B. Normally search engines such as Google not only try to know the language of
the Web site, but also its origin.
C. All Web sites receives a Country code Top Level Domain (ccTLD) that belongs
to the language.
D. Text translated through a program cannot be used for long term, since it is
not validated.
E. If the ratio of incoming links of English and local language Web sites to the
submitted Web site is unfavorable, then the site will fall in English language
index, even though the language is different.
a) Statement 1
b) Statement 1, Statement 2 and Statement 3
c) Statement 3
d) Statement 3, Statement 4 and Statement 5
6) In URL Based Session IDs, generally where is the URL information sent?
a) HTTP POST
b) HTTP REFERER field
c) HTTP GET
3RD End-Term Examination (E1) Mock
d) Session ID
7) Which of the following indexes includes (covers) all the data that is necessary for a query? a)
Covering index
b) Multicolumn indexes
c) Clustered indexes
d) Non-clustered indexes
8) __________________ provides information such as Execution Time and Row Statistics, Time
Span, and First Seen.
a) Query Analyzer Table.
b) Example Query
c) Query Response Time Index (QRTi)
d) Response Statistics
11) Which of the following command is used to extract a zipped backup file? a) Iz4
b) gunzip
c) gzip
d) winzip
14) Which of the following commands is used to view the default installed databases?
a) VIEW DATABASES
b) SHOW DATABASES
c) SELECT DATABASES
3RD End-Term Examination (E1) Mock
d) DISPLAY DATABASES
15) Which of the following statements are the disadvantages of the indexes?
a) Indexes support faster storage and retrieval capabilities
b) Data manipulation commands require longer duration to execute because of indexes
c) Indexes uses more storage space
d) Indexes cannot be created explicitly
16) Which of the following wildcard characters are supported by the LIKE clause? a) ?*?
b) ?#?
c) ?%?
d) ?_?
17) ____________________ command is used to remove rights or privileges from user accounts.
a) CANCEL
b) REVOKE
c) REMOVE
d) DROP
19) Identify the value that can be stored in an ENUM data type?
a) 7
b) 65535
c) 2 (TRUE and FALSE)
d) 255
20)Which of the following queries will display the records retrieved from the customer and
employee table in the sorted order?
a) SELECT CustomerNumber id, CustomerName name FROM Customers UNION SELECT
EmployeeNumber id, EmployeeName FROM Employees ORDER BY name, id
b) SELECT CustomerNumber id, CustomerName name FROM Customers ORDER BY
name, id UNION SELECT EmployeeNumber id, EmployeeName FROM Employees
ORDER BY name, id
c) (SELECT CustomerNumber id, CustomerName name FROM Customers) UNION
(SELECT EmployeeNumber id, EmployeeName FROM Employees) ORDER BY name,
id
d) SELECT CustomerNumber id, CustomerName name FROM Customers ORDER BY id
UNION SELECT EmployeeNumber id, EmployeeName FROM Employees ORDER BY
name
21) Which of the following queries will display all the employees whose last name ends with ?on?
string?
3RD End-Term Examination (E1) Mock
22) Which of the following queries will display all the tables whose names are not starting with
?B? in the Quiz database?
A. SHOW TABLES FROM QUIZ LIKE <> ?B%?
B. SHOW TABLES FROM QUIZ LIKE !=?B%?
C. SHOW TABLES FROM QUIZ NOT LIKE ?B%?
D. SHOW TABLES FROM QUIZ LIKE != ?B%?
a) A
b) B
c) C
d) D
25) If a Website loads and performs well irrespective of the browser, what is it called?
a) Cross browser compatible
b) Responsive
c) Efficient
d) Featured
26) The template file required to create a WordPress theme is __________________. a) new.php
b) home.php
c) index.php
d) add.php
28) What is used to illustrate the main points about a certain post or page?
a) Alternative text
b) Featured images
c) Caption
d) Description
29) Which of the following cannot be found in the ‘Appearance’ section of WordPress side bar?
a) Themes
b) Menus
c) Background
d) All Posts
30) The ____________________ method uses the URI, two arguments, and the closure function
that is executed in response to the URI.
a) Put
b) Push
c) Get
d) Set
a) Both 1 and 2
b) Only 2
c) None of these
d) Only 1
35) In Laravel convention, ___________________ are the preferred way to create records, not
tables.
a) keys
b) functions
c) routes
d) strings
36) ___________________ acts as a version control system for a database that includes many
tables.
a) Database
b) Storage
c) Cache
d) Migration
41) Select the operation that cannot be performed while editing an image.
a) Adding shadows
b) Cropping
c) Rotation
d) Scaling
b) Drupal
c) Google
d) Joomla
46) The ____________________ directory includes the code that collates all files spread
throughout the directories and run the application.
a) bootstrap
b) app
c) config
d) routes
47) The _______________ tool is an automation tool that helps to create models, views and
controllers pre-filled with a template.
a) command
b) artisan
c) PHP Dependency
d) framework
48) Which of the following directories includes the Views that will be used to display the final Web
page as well as the un-compiled assets related to JavaScript and CSS? a) Bootstrap
b) Resources
c) Storage
d) Database
49) Which of the following enables the user to add elements to the project that follow the Laravel
convention?
a) Artisan Tool
b) PHP Code
c) Laravel Components
d) Composer
3RD End-Term Examination (E1) Mock
50) The main reason to use the query builder over writing SQL code manually is because
______________.
a) it is rich in features
b) it writes different SQL codes depending on the database being used.
c) It has few SQLite directives
d) It uses configuration mode for migration
51) Functions that are defined in the model and that replace a long chain with a simple one are
called _______________.
a) Model Events
b) Event Listeners
c) Eloquent ORM
d) Query Scopes
52)___________________ is the process that enhances the visibility of a Web site to the search
engines.
a) CEO
b) SEO
c) SSO
d) SEOP
53) Which of the following can be used to create dynamic content on the page? a) JavaScript
b) Frames
c) Flash
d) Photoshop
54) Arrange the sequence of steps to submit a Web site to Google: A. Type the URL name in
the URL box.
B. Click Submit Request to submit the Web site.
C. Type the CAPTCHA.
D. Log in using a Google account.
E. Type the link www.google.com/addurl / on the Web browser.
a) 1, 2, 4, 5, 3
b) 4, 1, 3, 5, 2
c) 2, 4, 3, 1, 5
d) 5, 4, 1, 3, 2
56) The level of access granted to the user on the system/site is determined using
______________.
a) session IDs
b) confidentiality
3RD End-Term Examination (E1) Mock
c) authorization
d) IP
57) _________________ is a small encrypted file located in the browser directories and used by
the Web developers for performing authentication function.
a) Cookie
b) URL
c) HTTP GET
d) HTTP POST
58)What is obtained when SSL and HTTP are combine together?
a) PKI
b) URL
c) HTTPS
d) PKC
62) Which of the following statements showing the difference between the FLOAT and DOUBLE
data type is correct?
A. They both represent floating point numbers. A FLOAT is for single-precision, while a
DOUBLE is for double-precision numbers.
B. They both represent floating point numbers; a Float is more accurate.
C. They both represent floating point numbers. The use of DOUBLE should be limited to
monetary data.
D. They both represent floating point numbers and cannot be unsigned.
a) 1
b) 3
c) 2
d) 4
63) Which of the following commands is used to retrieve data from one or more tables? a)
SELECT
b) VIEW
c) COMPUTE
d) SHOW
64) ___________________ clause is used to restrict the records retrieved by a query by using a
condition.
a) WHEN
b) FROM
c) HAVING
d) WHERE
66)Which of the following mathematical functions returns the smallest integer value greater than
the argument?
3RD End-Term Examination (E1) Mock
a) CEILING
b) ROUND
c) FLOOR
d) TRUNCATE
67) Which of the following options of a foreign key definition is used to prevent a delete or update
of the primary key if a foreign key value exists?
a) NO DELETE
b) RESTRICT
c) CASCADE
d) NO ACTION
68) Which of the following functions returns the number of unique values in a column?
a) COUNT(expression)
b) COUNT(*)
c) COUNT(DISTINCT)
d) COUNT(column_name)
69) Which of the following options specifies the length of the database name in MySQL? a) 16
b) 80
c) 64
d) 256
70) Which of the following commands are correctly defined to remove a user account? John?
And its corresponding entry from the user table?
a) DROP USER John?@?localhost WHERE table_name=? user?
b) DROP USER ?John?@?localhost?
c) DELETE FROM user WHERE User = ?John?@? localhost?
d) DELETE FROM user WHERE Host=?localhost? AND User=?John?
ANSWER KEYS
1. B 2. 3. A 4. A 5. B 6. D 7. A 8. D 9. D 10. A, B
11. B, D 12. B 13. D 14. B 15. B 16. C 17. B 18. A 19. 20. D
21. A 22. B 23. A 24. B, C 25. C 26. C 27. D 28. C 29. D 30. A, C
31. D 32. B 33. 34. A 35. B 36. D 37. C 38. D 39. A, C 40. C
3RD End-Term Examination (E1) Mock
41. A 42. C 43. A 44. A 45. D 46. D 47. A 48. B 49. C 50.
51. C 52. B 53. A 54. D 55. A 56. C 57. A 58. C 59. 60. C
A1(B2),
A2(B4),
A3(B1),
A4(B3)
61. 62. 63. B 64. D 65. D 66. A 67. C 68. C 69.C 70. D