3rd End-Term Mock

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

3RD End-Term Examination (E1) Mock

University Road Center

1) Which of the following are the Off-Page Optimization Techniques?


a) Classified Submission
b) Meta Tag Optimization
c) Directory Submission
d) Image Optimization

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

3) What is the collection of well-organized data called?


a) Database
b) Servers
c) Programming language
d) Web Technology

4) _________________ is used to gather sensitive information, disrupt computer operation, or


gain access to unauthorized computer systems.
a) Malicious software
b) Hardware
c) Operating system
d) Internet Protocol

5) Which of these is a markup language?


a) JAVA
b) HTML
c) PHP
d) C++

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

University Road Center

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

9) __________________ is the capability of a system, network, or process to manage a growing


amount of work, or its ability to enlarge so as to adapt to that growth.
a) Performance
b) CPU utilization
c) Scalability
d) Performance optimization.

10) Which of the following are types of synchronization?


a) Synchronous
b) Asynchronous
c) Semisynchronous
d) Non- synchronous

11) Which of the following command is used to extract a zipped backup file? a) Iz4
b) gunzip
c) gzip
d) winzip

12) which of the following statements cause an implicit commit?


a) UNLOCK TABLES following FLUSH TABLES WITH READ LOCK function
b) CREATE TABLE and DROP TABLE when executed with the TEMPORARY keyword
c) Transaction-control and locking statements such as BEGIN, LOCK TABLES
d) Administrative statements such as ANALYZE TABLE
13)Which of the following statements about stored procedures are true?
a) Providing a parameter list to CREATE PROCEDURE is optional
b) Stored procedure are case-sensitive
c) Stored procedures cannot be imported from one database system to another
d) Stored procedures are saved in the table mysql.proc

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

University Road Center

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

18) Which of the following command is used to select a particular database?


a) USE
b) SELECT
c) SHOW
d) DISPLAY

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

University Road Center

a) SELECT EmployeeId, EmployeeFirstName, EmployeeLastName FROM Employees


WHERE EmployeeLastName LIKE ?on%?
b) SELECT EmployeeId, EmployeeFirstName, EmployeeLastName FROM Employees
WHERE RIGHT (EmployeeLastName,2) = ?on?
c) SELECT EmployeeId, EmployeeFirstName, EmployeeLastName FROM Employees
WHERE INSTR (EmployeeLastName,2) LIKE ?on?
d) SELECT EmployeeId, EmployeeFirstName, EmployeeLastName FROM Employees
WHERE LOCATE (EmployeeLastName,2)= ?on?

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

23) Which of the following can be a valid post format?


a) Aside
b) Story
c) Poem
d) Essay
24)Which of the following is a not a governing motive of a CMS?
a) Reduction in coding from scratch
b) Ease in creating look and feel
c) Increasing user based and group based functionality
d) Increasing complex operations

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

27) Which of the following is a static WordPress entity?


a) Posts
b) Pages
c) Both A and B
d) None of these
3RD End-Term Examination (E1) Mock

University Road Center

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

31)____________________ helps in implementing CRUD operations.


a) Routes
b) Eloquent ORM
c) Operators
d) DB query builder class

32) Which of the following statements is TRUE?


A. The code folder inside the Homestead directory and the Homestead environment are
the same.
B. By default, Laravel has a Route class, which has only one method to handle each type
of HTTP request.

a) Both 1 and 2
b) Only 2
c) None of these
d) Only 1

33) ______________________ refers to the concept of sending records in blocks. a) Validation


b) Pagination
c) Routing
d) Authentication

34) The _____________________ in Laravel helps in creating tables.


a) schema builder class
b) rows
c) foreign keys
d) columns
3RD End-Term Examination (E1) Mock

University Road Center

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

37)RSS stands for ____________________


a) Regular Sequential Syndication
b) Really Sequential Syndication
c) Really Simple Syndication
d) Regular Simple Syndication

38) SMO stands for _____________________


a) Search Media Optimization
b) Social Message Optimization
c) Search Message Optimization
d) Social Media Optimization

39) Which of the following statements is correct with respect to WordPress?


a) All themes are responsive.
b) All themes are paid.
c) WordPress is an open source content management system.
d) All WordPress Websites are same.

40) _________________ is a version of the page’s name which is URL-friendly.


a) Slug
b) Parent
c) Title
d) Custom field.

41) Select the operation that cannot be performed while editing an image.
a) Adding shadows
b) Cropping
c) Rotation
d) Scaling

42) Which of the following is not a CMS?


a) WordPress
3RD End-Term Examination (E1) Mock

University Road Center

b) Drupal
c) Google
d) Joomla

43) Which relational database is used by WordPress?


a) MySQL
b) Oracle
c) PostgreSQL
d) None of these

44) Where can users access themes on WordPress?


a) Appearance -> Themes
b) Appearance -> Plugins
c) Dashboard
d) Plugins
45)______________ is a development model that includes rapid prototyping.
a) Rapid Action Program
b) Laravel Framework
c) Templating
d) Rapid Application Development

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

University Road Center

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

55) Which of the following are the On-Page Optimization Techniques?


a) Deep Linking
b) Content Optimization
c) Link Popularity
d) Keyword Research and Analysis

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

University Road Center

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

59) Match the following:

SI Left Column SI Right Column Correct Answer for


No. No. column A
A1 PHP B1 Sun Microsystems • B1
designed it in 1995 • B2
and • B3
introduced it to Web • B4
developers for
including dynamic
elements.
A2 C# B2 A scripting language • B1
which is used on • B2
Unixbased servers • B3
instead of ASP. • B4

A3 Java B3 It is used for client-side • B1


scripting on Web • B2
pages to responds to • B3
user actions. • B4

A4 JavaScript B4 It is used for • B1


serverside processing • B2
of • B3
ASP.NET Web • B4
application and is
derived from C and
Java.
3RD End-Term Examination (E1) Mock

University Road Center

60) Which of the following clause drops a hash or key partition?


a) DELETE PARTITION
b) DROP HashKey PARTITION
c) COALESCE PARTITION
d) REMOVE PARTITION
61)Which of the following statements are true with respect to transactions?
a) START TRANSACTION statement cannot affect any existing transaction as the attributes
set cannot be used within the current transaction.
b) After a transaction is terminated, it implicitly begins a new one.
c) A transaction must maintain consistency of the database even if there is a failure.
d) Successful completion of a transaction is like executing a COMMIT statement and an
unsuccessful one is like executing a ROLLBACK statement.

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

65) Which of the following options compares a table with itself?


a) INNER JOIN
b) CROSS JOIN
c) OUTER JOIN
d) SELF JOIN

66)Which of the following mathematical functions returns the smallest integer value greater than
the argument?
3RD End-Term Examination (E1) Mock

University Road Center

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

University Road Center

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

You might also like