100% found this document useful (1 vote)
4 views

(UPDATED 18-SEP-2024) Dynamic Website Development using PHP-7062

The document contains a series of questions and answers related to PHP and web application development, covering topics such as environment variables, AJAX, PHP versions, and object-oriented programming concepts. Each question is accompanied by multiple-choice options and references to specific headings and pages in a textbook. It serves as a study guide for students in a dynamic website development course using PHP.

Uploaded by

mhammadsamad178
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
4 views

(UPDATED 18-SEP-2024) Dynamic Website Development using PHP-7062

The document contains a series of questions and answers related to PHP and web application development, covering topics such as environment variables, AJAX, PHP versions, and object-oriented programming concepts. Each question is accompanied by multiple-choice options and references to specific headings and pages in a textbook. It serves as a study guide for students in a dynamic website development course using PHP.

Uploaded by

mhammadsamad178
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

PRIME 2.

0 Sem2 Dynamic Website Development using PHP

Book Name: Architecting Web Applications Using PHP

Q.1 PHP provides function to access the value of all the environment variables.
A. getenv() B. getenvi()
C. goenv() D. goenvi()
Correct Answer:
Reference: Heading 14.1, page no 361

Q.2 Which function helps to identify the browser which can be either Internet Explorer, Mozilla, or
Netscape?
A. pre_match() B. preg_match()
C. rand() D. srand()
Correct Answer:
Reference: Heading 14.1, page no 363

Q.3 What is the full form of AJAX?


A. Asynchronous JavaScript and XML B. Asynchronize JavaScript and XML
C. Asynchronous Java and XML D. Asynchronize Java and XML
Correct Answer:
Reference: Heading 15.1, page no 385

Q.4 A is a search input box that displays the search results as and when the user starts typing
words.
A. Free tool box B. Live tool box
C. Live search box D. Free search box
Correct Answer:
Reference: Heading 15.5, page no 397

Q.5 Which of the following operators is used to compare operands for equality as well as same data
type in PHP?
A. == B. >=
C. === D. <=
Correct Answer:
Reference: Table 4.2 , page no 91

Q.6 In which year was PHP version 8.0 released?


A. 2015 B. 2018
C. 2020 D. 2022
Correct Answer:
Reference: Heading 1.4, page no 13

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

Q.7 Which PHP build is for 32-bits systems?


A. Thread-Safe (TS) PHP build B. Non-Thread-Safe (NTS) PHP build
C. x86 D. x64
Correct Answer:
Reference: Heading 2.1.3, page no 27

Q.8 What is the easiest technique to utilize while setting up PHP if a user uses Internet Information
Services (IIS)?
A. Web Platform Installer (Web PI) B. Visual C Runtime(CRT)
C. Nginx D. MAMP
Correct Answer:
Reference: Book name: Heading 2.1.3, page no 27

Q.9 In which of the following areas is the PHP scripts extensively used?
A. Server-side Scripting B. Google Cloud BigTable
C. Command-line Scripting D. Writing Desktop
Correct Answer:
Reference: Heading 1.3, page no 11

Q.10 What allows users to compile a program into machine code just before it can be executed?
A. Block blob B. JIT compiler
C. Google Cloud RealStore D. CSV
Correct Answer:
Reference: Heading 1.5, page no 18

Q.11 Which is the most significant feature that has been added in PHP 8.0?
A. Nullsafe Operators B. Union Types
C. Named Arguments D. JIT
Correct Answer:
Reference: Table 1.1, page no 9

Q.12 Which of these software must be installed on local machines of the users
to run PHP
programs?
A. Apache B. PHP Interpreter
C. MySQL D. C2x
Correct Answer:
Reference: Heading 1.1, page no 24

Q.13 Users can delete a file using the PHP _function.


A. delete_file() B. unlink_file()
C. unlink() D. delete()
Correct Answer:
Reference: Heading 11.1, page no 272

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

Q.14 A can contain variables (termed as properties), constants, and functions (termed as
methods) that are designed to perform one or more tasks.
A. Class B. Object
C. Character D. Result
Correct Answer:
Reference: Heading 12.1, page no 301

Q.15 What variables are declared inside a class?


A. Member Methods B. Member Variables
C. Inheritance D. Constructor
Correct Answer:
Reference: Heading 12.1 Table 12.2, page no 302

Q.16 OOP has certain keywords called that decide the accessibility for various class
methods, variables, and other member methods.
A. Ability modification B. Access modification
C. Ability modifiers D. Access modifiers
Correct Answer:
Reference: Heading 13.1, page no 331

Q.17 Which important principle in OOP enables a class to use methods and properties of other
classes?
A. Public B. Abstract
C. Inheritance D. Final
Correct Answer:
Reference: Heading 13.2, page no 333

Q:18 Which of the following statements is TRUE?


(1) The code folder inside the Homestead directory and the Homestead
environment are the same.
(2) 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
Correct Answer:

Q:19 _____________refers to the concept of sending records in blocks.


A. Validation B. Pagination
D. Routing D Authentication
Correct Answer:

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

Q:20 The basic contents of a Web application are written in the________________


A. template engine B. local file
C. master template D public folder
Correct Answer:

Q:21 A _____________ is a case where the attributes of a model are blindly


updated.
A.Attribute B.Mass Assignment
C.Static Controller D. Mighty Model
Correct Answer:

Q:22 Match the following components with their respective description:

S NO LEFT S RIGHT COLUMN CORRECT ANSER FOR COLUMN


COLUMN NO A
A1 PHP B1 Used to  B1 B2 B3 B4 B5 B6
generate SSH
keys.
A2 Composer B2 An automation  B1 B2 B3 B4 B5 B6
tool for
building and
managing
virtual machine
environments
A3 VirtualBox B3 A virtual  B1 B2 B3 B4 B5 B6
environment
that
provides
resources to
efficiently code
Web
applications in
Laravel.
A4 Vagrant B4 A dependency  B1 B2 B3 B4 B5 B6
management
tool for
PHP
A5 GitBash B5 Should be  B1 B2 B3 B4 B5 B6
installed on the
Windows host

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

operating
system to use
Composer.
A6 Homestead B6 A free and  B1 B2 B3 B4 B5 B6
open source
hypervisor that
allows running
guest VMs.

Q:23 __________help in organizing codes by grouping requests that handle the


codes in a single route and class
A. Models B. Controllers
C. Views D. Applications
Correct Answer:

Q:24 A_________is preconfigured using a single line of artisan command.


A.Single Action Controller B. Moderate Controller
C Resource Controller D Class View
Correct Answer:

Q:25 The Update operation is similar to the ______________ operation.


A. Edit B. Yield
C. Update D Create
Correct Answer:

Q:26 In key value pairs, the value should contain validating keywords separated
by the ________ symbol.
A. * B. -
C.| D. \
Correct Answer:

Q:27 Which of the following validators validates if any value was passed for a
column?
A. between B. required

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

C. numeric D string
Correct Answer:

Q:28 ______________are required to use Composer and Homestead on Windows.


A.Virtual Environment B. PHP Binaries

C Windows tools D. SSH Keys


Correct Answer:

Q:29 Which of the following commands will help to verify that Composer is
installed on the computer?
A. GitBash B. ssh
C. cmd D install
Correct Answer:

Q:30 The GNU License information appears when you install ______________
A. Composer B. Vagrant
C. Homestead D GitBash
Correct Answer:

Q:31 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
Correct Answer:

Q:32 _______________helps in implementing CRUD operations.


A.Routes B. Eloquent ORM
C Operators D DB query builder class
Correct Answer:

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

Page PAGE 1 of NUMPAGES 1


PRIME 2.0 Sem2 Dynamic Website Development using PHP

Page PAGE 1 of NUMPAGES 1

You might also like