Below the inhibited board stares the irresponsible piano.
Bsc.Physical Science Computer Science (CBCS) Programs
Computer System Architecture Programs
1. Write a program to convert a number in Radix ‘R’ to radix 10 and vice versa. Test the same by a. Converting an unsigned number from binary, octal, hex to decimal. b. Converting an unsigned number from decimal to binary, octal, hex. 2. Write a program that will prompt for the input of two integer values. Then using the bitwise shift operators show the result of a. Left shifting the first number by the second b. Right shifting the first number by the second c. Exclusive OR of the first number by the second bitwise d. OR of the first number by the second bitwise e. AND of the first number by the second bitwise 3. Write a program that will prompt for the input of a binary value. Find out following complements. a. One's complement b. Two's complement 4. Write a program to print the values of a 5 bit binary up-down counter. User should be able to specify the up or down nature of the counter. 5. Write a program to implement the following binary operations: a. Addition b. Subtraction using 2's complement
1. Create a PHP page using functions for comparing three integers and print the largest number. 2. Write a function to calculate the factorial of a number (non-negative integer). The function accept the number as an argument. 3. WAP to check whether the given number is prime or not. 4. Create a PHP page which accepts string from user. After submission that page displays the reverse of provided string. 5. Write a PHP function that checks if a string is all lower case. 6. Write a PHP script that checks whether a passed string is palindrome or not? ( A palindrome is word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run) 7. WAP to sort an array. 8. Write a PHP script that removes the whitespaces from a string. Sample string : 'The quick " " brown fox' Expected Output : Thequick""brownfox 9. Write a PHP script that finds out the sum of first n odd numbers. 10. Create a login page having user name and password. On clicking submit, a welcome message should be displayed if the user is already registered (i.e.name is present in the database) otherwise error message should be displayed. 11. Write a PHP script that checks if a string contains another string. 12. Create a simple 'birthday countdown' script, the script will count the number of days between current day and birth day. 13. Create a script to construct the following pattern, using nested for loop. * * * * * * * * * * * * * * * 14. Write a simple PHP program to check that emails are valid. 15. WAP to print first n even numbers. 16. $color = array('white', 'green', 'red') Write a PHP script which will display the colors in the following way : Output : white, green, red, a. green b. red c. white 17. Using switch case and dropdown list display a “Hello” message depending on the language selected in drop down list. 18. Write a PHP program to print Fibonacci series using recursion. 19. Write a PHP script to replace the first 'the' of the following string with 'That'. Sample : 'the quick brown fox jumps over the lazy dog.' Expected Result : That quick brown fox jumps over the lazy dog.