0% found this document useful (0 votes)
147 views

CSS (22519) UT1 Question Bank

The document contains sample questions from different chapters that could be asked in a unit test for a Computer Engineering course on Client Side Scripting Language. It includes 2 mark and 4 mark questions on topics like JavaScript basics, arrays, functions, strings, forms and event handling.

Uploaded by

sodagep4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views

CSS (22519) UT1 Question Bank

The document contains sample questions from different chapters that could be asked in a unit test for a Computer Engineering course on Client Side Scripting Language. It includes 2 mark and 4 mark questions on topics like JavaScript basics, arrays, functions, strings, forms and event handling.

Uploaded by

sodagep4
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

BHARATI VIDYAPEETH’S COLLEGE OF ENGINEERING

(POLYTECHNIC)
QUESTION BANK
Unit Test-I
Program : - Computer Engineering Group Program Code:- CO
Course Title: - Client Side Scripting Language Semester: - Fifth
Course Abbr &Code:- CSS (22519) Scheme: I

--------------------------------------------------------------------------------------------------
CHAPTER-1 (Basics of JavaScript Programming) (CO1)

2 MARKS

1. Explain any four features of JavaScript.


2. Compare client-side and server-side scripting.
3. List types of operators in JavaScript.

4 MARKS

1. Explain data types in JavaScript.


2. Compare client-side and server-side scripting.
3. Write a JavaScript program to display squares of 1 to 10 numbers using while loop.
4. Write a JavaScript program to generate Armstrong number between 1 to 100.
5. Write a JavaScript program to check whether entered number is prime or not.
6. Differentiate between For-loop and For-in loop.
7. Write Java script to create person object with properties firstname, lastname, age, eye color,
delete eye color property and display remaining properties of person object.
8. Write a Java script that initializes an array called flowers with the names of 3 flowers. The
script then displays array elements.
9. Explain getter and setter properties in Java script with suitable example.

CHAPTER-2 (Array, Function and String) (CO2)


2 MARKS

1. Write syntax for defining the function.


2. Write a JavaScript to reverse the elements of array.
3. Explain the use of push and pop functions.
4. Define string? How to declare it?
5. List methods used for finding a Unicode of a character?
6. Explain objects as associative array?

4 MARKS

1. Explain the method of calling a function from HTML.


2. Write a JavaScript to convert a string to number.
3. Explain the scope of variable with the help of programming example.
4. How to initialize an array? Explain with example.
5. Differentiate between concat() and join() methods of array object.
6. How to add and sort elements in array? Explain with example.
7. Write a javascript to checks whether a passed string is palindrome or not.
8. Write a javascript function to generate Fibonacci series till user defined limit.
9. Write the use of CharAt() and indexof() with syntax and example.

CHAPTER-3 (Forms and Event Handling) (CO3)


2 MARKS
1. Explain form object with syntax.
2. Write the use of button object with syntax.
3. Enlist any four mouse events with their use.
4. What is an event? Explain any one event.
5. Describe the term form objects.
6. List different built-in functions in JavaScript.

4 MARKS
1. Write a JavaScript that displays textboxes for accepting name and Email Id with a submit
button. Write a JavaScript code such that when user clicks on submit button.
Check 1) Name Validation 2) Email Validation

2. Explain how to evaluate Radio button in JavaScript with suitable example.

3. Write a HTML and JavaScript code to design a form that displays two textboxes for
accepting two numbers. A new textbox to show the result and two buttons Addition and
Subtraction. When the user clicks on any one button, respective operation will be
performed on two numbers and result will be displayed in result textbox.

4. Write a JavaScript program to demonstrate java intrinsic function.

5. Write a HTML script which displays 2 radio buttons to the users for fruits and vegetable
and 1 option list. When user select fruits radio button option list should present only fruits
names to the user & when user select vegetable radio button option list should present
only vegetable names to the user.
6. Describe how to evaluate checkbox selection. Explain with suitable example.

You might also like