Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1

D7
FC
60

A
55
Paper / Subject Code: 48892 / Web Computing

DA
85

CC
B8
C2
1T01875 - T.E. Computer Science & Enginering (Artificial Intelligence & Machine Learning) (Choice Based) (R-2019-20'C'

51

FC
60
AE

AA

CD
25
Scheme) SEMESTER - V / 48892 - Web Computing

85

B8
AF

CD
C

AC
51
QP CODE: 10013894
(3 hours) DATE:24/11/2022 Total Marks: 80

60
E
DA

8F
A

DA
85
C2
F

B
17

AA

FC
60
AE

5
D6

85
7D
N.B. 1. Question No. 1 is compulsory

B8
2
F

D
6B

EC
AA

51

C
1

60
2. Attempt any three questions from remaining five questions

6
D7

8F
FA

5
BD

85
D

C2
3. Assume suitable data if necessary and justify the assumptions

0B
CC

17

1
6

AE

55
4. Figures to the right indicate full marks

DA
6

56
7
AA

D
CD

C2
AF

18
6B

17
CD

AE
AC

55
DA
6
D7

5
C2
8F

F
DA

18
Q1 A Explain the working of DNS with the suitable diagrams. Clearly explain all the 05

6B
CC

17

A
0B

AE

55
DA
D6
D7
steps involved in DNS resolution.

FC

A
56

C2
AF
DA

B
C

17
B Write a JavaScript code for displaying a digital clock on a web page. 05

8
18

0B

AE
AC

DA
D6
D7
FC
55

56

AF
DA
C What is Express JS? Explain the advantages of using it. 05

B
C

17
B8
C2

18

AE
C

DA
6
D7
C
0
AE

AA
55

D Explain the event handling in React. Write a React code to create a button “Greet

BD
05
56

8F

AF
CC

17
C2
F

the User” and display an alert box saying “Hello!” on clicking that button. 8

CD
0B

76
AA

DA
51

D6
E

CD
56

F
A

25

6B
7D

17
8
F

18

CD
0B
C

C
AA

D6
D7
Q2 A Compare ES 5 and ES 6. Write a code in JavaScript to validate the email address 10
61

A
5

F
A

25

A
entered by the user (check the presence of “@” character. If this character is missing,
BD

6B
85
7D

CC
8
AF

CD
0B
EC

51

D7
61
6

AA
the script should display an alert box reporting the error and ask the user to reenter
DA

6
D7

8F
FA

25
BD

85

CC
it again).

CD
B
EC
CC

17

AA

51

60
6

AA
B Explain the concept of Hooks in React. What are the rules for using the Hooks? Write 10
6
D7

F
FA

25
AA

BD

85
7D

8
a code making use of React Hooks that displays four buttons namely, “Red”, “Blue”,

CD
B
C
CC

AA

1
CD

61

60
6

55
“Green”, “Yellow”. On clicking any of these buttons, the code displays the message
D7

8F
A
AA

85
7D

C2
8F

0B
6B

that you have selected that particular color.


CC

AA

51
CD

1
0B

AE
D6

56
D7

5
AA

7D
56

C2
8F

18
6B
C

Q3 A Explain the Document Object Model using a diagram. Write a code in JavaScript for 10
AA
18

CD

61
0B

AE
C

55
7
AA

any one of the following:


55

BD
CD

D
56

C2
8F

F
17
C2

AA

1) To change the background color of the web page automatically after every 5
18

CD
0B

AE
C

D6
D7
AE

AA
55

seconds.
D
56

8F

AF
6B
CC

17
C2

To display three radio buttons on the web page, namely, “Red”, “Blue” and
AF

18

2)
CD
0B

DA
6
7
AE

AA
55

“Green”. Selecting any button changes the background color as per the name of the
D
CD
56

6B

17
8
C2
AF

18

D
0B

button.
AC

D6
D7
FC
AE

55
DA

56

B Explain the class components in React. What are the advantages of using them? 10
DA

6B
CC
8
2
AF

18

B
EC
17

Demonstrate its use by creating a class for the cars of different models. The
D7
C
60

A
55
DA
D6

8F
FA

component should access the state to display the model of the car on the web page.
DA
85

CC
2

0B
EC
17

AA

51

FC

AA
D6

6
FA

Q4 A What is NodeJs? What are the advantages of using it? Demonstrate the working of 10
5
7D

8
C2

18

CD
0B
6B

AA

NodeJs by creating a simple server to display a “Welcome” message.


61

AE

55

56
7

8F
BD
CD

7D

B Explain the architecture of NodeJs with a neat diagram. Demonstrate its use by 10
C2
AF

18

0B
61
76

AE

writing the code which creates a simple text file with the data provided by the user.
AC

55
DA

56
BD
CD

C2
AF

18
17
6

AE
AC

55
DA
D6
D7

C2
AF
DA

6B
CC

17

AE
DA
D6
7
FC

AA

CD

AF
6B

17
B8

CD

AC

DA
6
D7

BD
8F

DA

CC

17
0B

D6
D7
FC

AA
56

6B

13894 1
CC
B8
18

CD

D7
60

AA
55

8F
85

CC
CD
0B
51

AA

AAFAEC25518560B8FCDAACCD76BD617D
56

8F
25
55 B8 AC D6 AF
18 FC CD 17 AE
56
0B
DA 7 6B DA C2
25 8F AC D6 AF 55
51 CD 18
85 CD 17 AE 56
60 AA 76 DA C2 0B
B8 BD AF 55 8F
FC CC 61 18
D7 7D AE 56 CD
56 DA
6 C2 AA

Q6
Q5

0B AC BD AA 0B
8F 55 8F CC
CD 61 FA 18
C
B

CD D
A

CD

13894
56 D7
7 7D EC 6
AA 6B AA 2 55
0B
8F
AA
CC
BD
8F CC D6 FA 18 61
CD D7 17 EC 56 CD D7 7D
AA 6B DA
2 0B AA 6 BD AA
CC D6 AF 55 8F CC F
17 AE 18 CD AE D7 61
D7 56 7D
AA 6 0BDA C2 AA C2 6 AA
BD 5 8 F
AF C
BD 55
F
CC 6 51 C 6 17 A 18
D7 17
DA
AE 85
60
CD D7 DA E C2 56
6B C2 B AA 6B 0B
D6 AF 55 8 C D AF 55 8F
17 AE 18
5
FC
D
CD 61 A E
18
56 CD
DA C2 6 0B AA 7 6B
7D C 0B AA
55 AA 25 8 CC
AF 8F CC D6 FA 51 FC
AE 18
56 C DA D7 1 7D EC 8 56 DA D7
C2 0B 6 BD AA 25 0 B8 AC 6B
55
18 8 FC
AC
CD 61 FA 5 18 FC CD
D6
17
56 7 7D EC 56 DA 7 6
different parts of the Express server file?

DA DA

2
0B A 6B AA 25 0B
8F A BD AF
8F CC D6
17 F A
51
85 C
CC 61 AE
CD D7 D EC 6 DA D7
6B
7D C2
AA 6B AA 25 0B AA
D 8 AC D F
55
--------------------------------

CC 6 F 51 F C 617 A 1
D7 17
D
AE 85
6
CD D7 D EC
What are the criteria for an API to be a RESTful API?

6B AA C2 0B AA 6B AA 25
55 8 C D

AAFAEC25518560B8FCDAACCD76BD617D
D6 F 1 F C 6 F 51
Demonstrate the routing of web pages using React Router.

17 AE 85 CD D7 17 AE 85
DA 60 A 6 DA C2 60
Paper / Subject Code: 48892 / Web Computing

C2 B
Write a JavaScript code to set a cookie on the user's computer.

AF 5 B 8F A CC D6 A 5 51
51 FA 85
AE 85 CD D7 17 EC
C2 60
B A A 6 B
DA
2
60
55 8 C AF 5 5
B8
F
When are the React components re-rendered? Explain giving examples.

18 CD CD
D6
17 AE 185 FC
56 AA 76 DA C2 60
0B BD A 5 B8
8F
CD
CC 617 F AE
51
85 FC
B What is Express used for? Explain the advantages of using Express. What are the

D7 DA 60 DA
AA 6B C2 B A
A Explain the MVC architecture with a diagram. What are the advantages of using it?
QP CODE: 10013894

AF 55 8F
CC
D7
D6
17 AE 185 CD
10
10
05
05
05
05

6B DA C2 60 AA
D6 AF 55 B8 CC
17 AE 18 FC
56 DA D7
DA C2 0B
AF 55 8F AC
AE 18
5 C D
CD

You might also like