Home
About
Disclaimer
Privacy Policy
Home-icon
FYBCS
_C
_HTML & CSS
SYBCS
_DS
_SCILAB
TYBCS
_JAVA
_PHP
_PHP Solve Slips
_PHP Project Topics
_OS/SysPro Slips
Download Apk
Tech Info
TYBCS PHP Assignment 2
Set A
Q: 1) Write a menu driven program to perform the following operations on an associative array:
a) Display the elements of an array along with the keys.
b) Display the size of an array
c) Delete an element from an array from the given key/index.
d) Reverse the order of each element’s key-value pair [Hint: use array_flip()]
e) Traverse the elements in an array in random order [[Hint: use shuffle()].
Q:2) Accept a string from the user and check whether it is a palindrome or not (Implement stack operations using array built-in functions).
Set B
Q: 1) Declare a Multidimensional Array. Display specific element from a Multidimensional array. Also delete given element from the Multidimensional array.(After each operation display array content [Hint : use print_r() ] )
Q: 2) Define an array. Find the elements from the array that matches the given value using appropriate search function.
Set C
Q: 1) Write a menu driven program to perform the following stack and queue related operations:[Hint: use Array_push(), Array_pop(), Array_shift(), Array_unshift() ]
a) Insert an element in stack
b) Delete an element from stack
c) Display the contents of stack
d) Insert an element in queue
e) Delete an element from queue
f) Display the contents of queue
Q: 2) Write a menu driven program to perform the following operations on associative arrays:
a) Sort the array by values (changing the keys) in ascending, descending order.
b) Also sort the array by values without changing the keys.
c) Filter the odd elements from an array.
d) Sort the different arrays at a glance using single function.
e) Merge the given arrays.
f) Find the intersection of two arrays.
g) Find the union of two arrays.
h) Find set difference of two arrays.
Post a Comment
1 Comments
Unknown
December 9, 2021 at 7:24 PM
Send os practical answer 2019 credit pattern
Reply
Delete
Replies
Reply
Add comment
Load more...
Social Plugin
Popular Posts
PHP script to keep track of number of times the web page has been access - PHP | IProgramX
January 14, 2019
PHP script to change the preference of your web page like font style, font, size, font color, background color using cookie - PHP | IProgramX
January 15, 2019
Write a PHP script to accept username and password - PHP | IProgramX
January 14, 2019
Powered by Blogger
1 Comments
Send os practical answer 2019 credit pattern
ReplyDelete