FORMATIVE 6 Flashcards

(16 cards)

1
Q

How do you specify the base URL for pagination links?

By using the url configuration option

By using the siteURL configuration option

B setting the linkURL option

By using the baseURL configuration option

A

By using the baseURL configuration option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you pass the pagination links to a view?
Group of answer choices

$data[‘pager’] = $pager;

$data[‘pagination’] = $pager->links();

$data[‘pagination’] = $pager->createLinks();

$data[‘links’] = $pager->generateLinks();

A

$data[‘pager’] = $pager;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following is a valid configuration option for pagination in CodeIgniter 4?

resultsPerPage

perPage

itemsPerPage

items

A

perPage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which library in CodeIgniter 4 is used to implement pagination?
Group of answer choices

Database

Form Validation

Session

Pagination

A

Pagination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which method in the Pagination library is used to create pagination links?
Group of answer choices

getLinks()

paginationLinks()

generateLinks()

createLinks()

A

createLinks()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which method is used to remove a specific piece of session data?
Group of answer choices

clear()

deleteData()

remove()

removeData()

A

remove()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which method is used to regenerate the session ID in CodeIgniter 4?
Group of answer choices

newSessionID()

refreshID()

regenerate()

resetID()

A

regenerate()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which function is used to set session data in CodeIgniter 4?
Group of answer choices

setSessionData()

set()

updateSession()

addSessionData()

A

set()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which session driver uses the file system for storing session data in CodeIgniter 4?
Group of answer choices

CodeIgniter\Session\Handlers\RedisHandler

CodeIgniter\Session\Handlers\DatabaseHandler

CodeIgniter\Session\Handlers\CookieHandler

CodeIgniter\Session\Handlers\FileHandler

A

CodeIgniter\Session\Handlers\FileHandler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you retrieve all session data at once in CodeIgniter 4?
Group of answer choices

retrieveAll()

getSessionData()

fetchData()

get() without any arguments

A

get() without any arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the default number of links shown in pagination?
Group of answer choices

2

5

3

4

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which helper function can be used to create pagination links directly in the view?
Group of answer choices

pager->pagination()

pager->generate()

pager->create()

pager->links()

A

pager->links()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which method is used to start a session in CodeIgniter 4?
Group of answer choices

startSession()

beginSession()

initSession()

session()

A

session()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the getFlashdata() method do in CodeIgniter 4?
Group of answer choices

Retrieves persistent session data

Retrieves a specific piece of session data

Retrieves all session data

Retrieves temporary session data that is only available for the next request

A

Retrieves temporary session data that is only available for the next request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which session handler uses a database for storing session data?
Group of answer choices

CookieHandler

FileHandler

MemcachedHandler

CodeIgniter\Session\Handlers\DatabaseHandler

A

CodeIgniter\Session\Handlers\DatabaseHandler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens to session flashdata after it is retrieved once?
Group of answer choices

It is stored permanently

It is automatically deleted

It is retained for the duration of the session

It is moved to a new session key

A

It is automatically deleted