0% found this document useful (0 votes)
58 views7 pages

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

Uploaded by

samikhan031027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views7 pages

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

Uploaded by

samikhan031027
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

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: getenv()
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: preg_match()
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: Asynchronous JavaScript and XML
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: Live search box
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: 2020
Reference: Heading 1.4, page no 13

Page 1 of 7
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: x86
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: Web Platform Installer (Web PI)
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: Server-side Scripting
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: JIT compiler
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: JIT
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: PHP Interpreter
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()

Page 2 of 7
PRIME 2.0 Sem2 Dynamic Website Development using PHP

Correct Answer: unlink()


Reference: Heading 11.1, page no 272

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: Class
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: Member Variables
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: Access modifiers
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: Inheritance
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: Only 2

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


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

Page 3 of 7
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: public folder

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: Mass Assignment

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

S NO LEFT S NO RIGHT COLUMN CORRECT ANSER FOR COLUMN A


COLUMN
A1 PHP B1 Used to generate  B1 B2 B3 B4 B5 B6
SSH keys.

A2 Composer B2 An automation tool  B1 B2 B3 B4 B5 B6


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 installed  B1 B2 B3 B4 B5 B6
on the Windows
host operating

Page 4 of 7
PRIME 2.0 Sem2 Dynamic Website Development using PHP

system to use
Composer.
A6 Homestead B6 A free and open  B1 B2 B3 B4 B5 B6
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: Controllers

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: Resource Controller

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

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

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
C. numeric D string

Page 5 of 7
PRIME 2.0 Sem2 Dynamic Website Development using PHP

Correct Answer: required

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: SSH Keys

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: cmd

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

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: get

Q:32 _______________helps in implementing CRUD operations.


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

Page 6 of 7
PRIME 2.0 Sem2 Dynamic Website Development using PHP

Page 7 of 7

You might also like