Deck 1: PHP and SQL Functions and Concepts
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 1: PHP and SQL Functions and Concepts
1
the _____function returns the square root of a number:
A)count
B)min
C)abs
D)sqrt()
A)count
B)min
C)abs
D)sqrt()
sqrt()
2
The _____function rounds a floating-point number to its nearest integer:
A)round
B)min
C)abs
D)sqrt()
A)round
B)min
C)abs
D)sqrt()
round
3
The _______ function generates a random number:
A)rand
B)min
C)abs
D)sqrt()
A)rand
B)min
C)abs
D)sqrt()
rand
4
To create a constant, use the _____ function.is used
A)define()
B)min()
C)abs()
D)sqrt()
A)define()
B)min()
C)abs()
D)sqrt()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
In PHP7, you can create an Array constant using the ____ function.
A)define()
B)min()
C)abs()
D)sqrt()
A)define()
B)min()
C)abs()
D)sqrt()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The ____statement is used to perform different actions based on different conditions.
A)switch
B)min
C)abs
D)sqrt()
A)switch
B)min
C)abs
D)sqrt()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
The PHP ____function formats a timestamp to a more readable date and time.
A)date()
B)min()
C)abs()
D)sqrt()
A)date()
B)min()
C)abs()
D)sqrt()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
A)cookie
B)session
C)abs
D)sqrt
A)cookie
B)session
C)abs
D)sqrt
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
A ______ is a way to store information (in variables) to be used across multiple pages.
A)cookie
B)session
C)abs
D)sqrt
A)cookie
B)session
C)abs
D)sqrt
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
_______are the two main aspects of object-oriented programming.
A)classes and objects
B)constructor and destructor
C)object and array
D)none of these
A)classes and objects
B)constructor and destructor
C)object and array
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
A ______allows you to initialize an object's properties upon creation of the object.
A)classes
B)constructor
C)object
D)none of these
A)classes
B)constructor
C)object
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
If you create a __construct() function, PHP will automatically call this function when you create an object from a class.
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
A ______is called when the object is destructed or the script is stopped or exited.
A)destructor
B)constructor
C)object
D)none of these
A)destructor
B)constructor
C)object
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
If you create a __destruct() function, PHP will automatically call this function at the end of the script.
A)true
B)false
C)both a and b
D)none of these
A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
URL stands for ____________ .
A)Uniform resource locator
B)Universal resource location
C)Universe research land mark
D)non of theses
A)Uniform resource locator
B)Universal resource location
C)Universe research land mark
D)non of theses
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The __________ array contains information from the web server.
A)S_client
B)S_server
C)dynamic
D)non of these
A)S_client
B)S_server
C)dynamic
D)non of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
The _________ works through request header and response.
A)Authentication
B)Authority
C)Responsibility
D)none of these
A)Authentication
B)Authority
C)Responsibility
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
_____________ is a php super global variable which is used to access global variable from anywhere in PHP script.
A)$_ localb
B)$_Global
C)Client
D)none of these
A)$_ localb
B)$_Global
C)Client
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The size of file can be limited using _________ limit and _____________ limit.
A)soft and hard
B)little and short
C)mg and gb
D)none of these
A)soft and hard
B)little and short
C)mg and gb
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
How do you create cookie in PHP by ________.
A)set-cookie()
B)create Cookie ()
C)make Cooking()
D)none of these
A)set-cookie()
B)create Cookie ()
C)make Cooking()
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
MYSQL i here "i" means________
A)implementation
B)interface
C)improved
D)none of these
A)implementation
B)interface
C)improved
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Data source name in pear DB is _________
A)String
B)character
C)float
D)int
A)String
B)character
C)float
D)int
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Which are build in data types that sql supports?
A)real ,double precision
B)mysql
C)pear db
D)data
A)real ,double precision
B)mysql
C)pear db
D)data
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
which type of language used in sql
A)DDL
B)DML
C)DIL
D)none of these
A)DDL
B)DML
C)DIL
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
java script was designed as a _____ scripting language.
A)get
B)Post
C)Server
D)Client
A)get
B)Post
C)Server
D)Client
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck