You are on page 1of 7

MCA Scholar’s Group

Academic year: 2022-23 Session: II


Subject: Advanced Internet Technologies Year: I Semester: -II

Question Bank

Chapter 1: Introduction to HTML5

1) What do you understand by HTML tags? How many tags are required to create a web
page in HTML5?
2) Explain the various formatting tags in HTML5.
3) Explain the various new tags introduced by HTML5 in Media Elements.
4) What is the correct usage of the following HTML5 semantic elements?
5) How many ways can a CSS be integrated as a web page?
6) What benefits and demerits do External Style Sheets have?
7) What are the limitations of CSS?
8) Explain what are the components of a CSS Style?
9) What do you mean by CSS selector?
10) Which property is used for controlling the image position in the background?
11) What is the main difference between class selectors and id selectors?
12) Which property of a table is used to the appearance of the adjacent borders?
13) How many formats you can display a CSS colour?
14) What do you mean by animation in CSS?
15) What are pseudo elements?
16) Explain difference between tag and semantic tag in details with examples
17) Write short notes on following:
a. audio tag
b. video tag
18) Explain how to embed video in web page?
19) Explain how to incorporate audio in web page?
20) List out some uses of mark tag?
21) Why canvas tag is used?
22) Write HTML code to embed the video in web document.
23) Write HTML code to place the following web page into your web page.
24) Draw a square using HTML5 SVG, fill that square with yellow color and make a
5px blue stroke width.
25) Write HTML5 code to draw the given image using Canvas.
26) Draw an semi arc using HTML5 canvas.
27) Write HTML code to draw a rectangle using Canvas and fill color in gradient from red
to pink from start to end.

Chapter 2: Introduction to CSS3

1) What is the CLASS selectors used for?


2) What do you understand by parent-child selector?
3) What is the purpose of Nesting Selectors?
4) What is the difference between class selector and ID selector?
5) Explain Pseudo classes
6) Create a web page for your curriculum vitae using the following design. On the
right column, some information about the markup and the visual presentation is
provided.

7) Create a web site for your curriculum vitae. You must use a two-column layout and the
second column must be the navigation bar.
Chapter 3: Node.js

1. Define two functions. The first function a should return 'Hello a!' and the second
function b should return 'Hello b!'.
2. Define a function greet returning the value 'Haydo!'. Declare a variable salutation.
Call the function greet and assign the result of the call to the variable salutation.
3. Write a function echo that also returns the passed parameter.
4. Write a function greet having one parameter and returning 'Hello <parameter>!'.
5. Write a function shortcut that takes two strings and returns the initial letters of
theses strings.
6. Write a function secondIndexOf, taking two strings and determining the second
occurrence of the second string in the first string. If the search string does not occur
twice,
-1 should be returned.
7. Write a function normalize, that replaces '-' with '/' in a date string.
Example: normalize('20-05-2017') should return '20/05/2017'.
8. Write a function add that takes a string with a summation task and returns its result as
a number. Two natural numbers should be added. The summation task is a string of the
form '102+17'.
9. Write a function sumMultiples taking a natural number n and returning the sum of
all multiples of 3 and of 5 that are truly less than n.

Example: sumMultiples(20) should return 78.

All multiples of 3 and 5 less than 20 are 3, 5, 6, 9, 10, 12, 15 and 18. Their sum is 78.

10. Write a program to show current date and time using user defined module
11. Program using NPM which will convert entered string into either case
12. Create a simple calculating module that calculates operations like +,-, x and /
using Node.js
Chapter 4: Angular

1. Program to demonstrate the ngif, ngfor, ngswitch statements.


2. Create angular project which will demonstrate the usage of component directive,
attribute directives
3. Create angular project which has HTML template and handle the click event on click of
the button
4. What is TypeScript?
5. Write a pictorial diagram of Angular architecture?
6. What are the key components of Angular?
7. What are directives?
8. What are components?
9. What are the differences between Component and Directive?
10. What is a template?
11. What is a module?
12. What are lifecycle hooks available?
13. What is a data binding?
14. What is metadata?
15. What is Angular CLI?
16. What is the difference between constructor and ngOnInit?
17. What is a service
18. What is dependency injection in Angular?
19. How is Dependency Hierarchy formed?
20. What is the purpose of async pipe?
21. What is the option to choose between inline and external template file?
22. What is the purpose of *ngFor directive?
23. What is the purpose of ngIf directive?
24. What happens if you use script tag inside template?
Chapter 5: PHP

1. Write a program to compare between things that are not integers. Suppose the strings are -

$str1 = "00004";

$str2 = "008";

$str3 = "00007-STR";

2. Write a division table program in PHP using for loop.

3. Write a program in PHP to print prime numbers between 1 and 100.

4. Write a program to print numbers from 10 to 1 using recursion function.

5. Write a program to store the username in cookie and check whether the user
have successfully login or not.

6. Write a program to convert the given string into an array.

7. Write a php program to loop over the json data.

8. Write a program in php to remove all html tags except paragraph and italics tags.

9. Write a program to loop through an associative array using for each. Suppose
an associative array is -

$a = array('one' => 'I', 'two' => 'II', 'three' =>'III', 'four' => 'IV');

11. Write a program to differentiate between fgets, fgetss and fgetcsv.

12. There are two deals of an item to buy. The quantities and prices of the item are
given below. Write a program in PHP to find the best deal to purchase the item.

13. Write a program to set session on successful login.

14. Write a program to read from directory.

15. Write a PHP program to create image from text and save.

16. Write a PHP program to get data from XML file in PHP.

17. Write a PHP program to create word document from HTML.

18. How do you check if a year is leap or not?

19. Write a PHP program to print fibonacci series.

20. How to generate QR Code in PHP?

21. How does PHP store data in cache?

22. How to detect a mobile device using PHP?


23. How to send HTML form data to email using PHP?

24. Write a program to print “Hello PHP” using php variable?

25. Write a program to print “Welcome to the PHP World” using some part of the text in
26. variable & some part directly in echo.

26. Write a program to print 2 php variables using single echo statement.

27. Write a program to print “Welcome to my PHP World” using echo only?

28. Write a simple calculator program in PHP using switch case (operation’s like
addition, subtraction, multiplication, division)

29. Write a PHP program to check if a person is eligible to vote or


not. Conditions:
 Minimum age required for vote is 18.
 You can use PHP Functions.
 You can use Decision Making Statements.
30. Write a PHP program to check whether a number is positive, negative or zero.

31. Write a Program to display count, from 5 to 15 using PHP loop as given below.

32. Write a program to calculate factorial of a number using for loop in php.

33. Write a PHP program to calculate area of rectangle by using PHP Function.

34. Write a PHP program to find factorial of a number using recursive function.

35. Write a PHP program to reverse the string.

36. Write a PHP program to find the length of the string.

37. Write a PHP program to count the words in the string.

38. Write a PHP program to convert all the characters inside the string into uppercase.
(use built-in string function).

39. Write a PHP script that checks if a string contains another string.

40. Write a PHP script that removes the last word from a

string. Sample string: 'Welcome to University of Mumbai’

Expected Output: Welcome to University of

41. Write a PHP script that removes the whitespaces from a

string Sample string: 'The university " " of mumbai'

Expected Output: Theuniversity""ofmumbai

42. Write a PHP script to remove nonnumeric characters except comma and

dot. Sample string: '$123,34.00A'


Expected Output: 12,334.00

43. Write a PHP script to remove all characters from a string except a-z AZ 0-9 or " ".

Sample string: abcde$ddfd @abcd )der]

Expected Result : abcdeddfd abcd der

44. How a variable is declared in PHP?

45. What is the difference between "echo" and "print" in PHP?

46. What is the array in PHP?

47. Explain some of the PHP array functions?

48. Explain setcookie() function in PHP?

49. What is a session?

50. What is the method to register a variable into a session?

51. What is $_SESSION in PHP?

52. What is the difference between session and cookies in PHP?

53. How to create and destroy cookies in PHP?

54. How do you connect MySQL database with PHP?

55. How to create database connection and query in PHP?

56. What is Cookie? How to create cookies in PHP?

57. How to send email using php script?

58. Explain the difference between mysql_fetch_array(), mysql_fetch_object()?

59. Write PHP Program to display First name and Last name of female employees from
“Production Department” of table “Employee”.

Regards MCA

Scholar’s Goup

(Rushi Patil)

You might also like