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

CSS Questions

The document outlines various JavaScript programming tasks and concepts across multiple semesters, including features, operators, functions, and event handling. It includes exercises on creating objects, validating forms, using cookies, and implementing user interactions. Each section presents a set of questions that require practical coding skills and understanding of JavaScript fundamentals.

Uploaded by

vawagav635
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

CSS Questions

The document outlines various JavaScript programming tasks and concepts across multiple semesters, including features, operators, functions, and event handling. It includes exercises on creating objects, validating forms, using cookies, and implementing user interactions. Each section presents a set of questions that require practical coding skills and understanding of JavaScript fundamentals.

Uploaded by

vawagav635
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Winter 2019

1. Attempt any FIVE:

(a) List any four features of JavaScript.


(b) List comparison operators in JavaScript.
(c) Create a person object with properties, delete one, and display remaining.
(d) Initialize flowers array with 3 names and display elements.
(e) Call a JavaScript function from HTML.
(f) Design a form for User ID & Password.
(g) State two properties/methods of location object.

2. Attempt any THREE:

(a) Explain getter/setter properties with example.


(b) Explain prompt() and confirm() methods.
(c) Compute average marks and assign grades (A-E).
(d) Explain charAt() and indexOf() with examples.

3. Attempt any THREE:

(a) Differentiate concat() and join().


(b) Replace "fail" with "pass" in "I will fail".
(c) Display 5 array elements in sorted order.
(d) Explain window.open() method.

4. Attempt any THREE:

(a) Regular expressions and search() method.


(b) Webpage protection techniques (describe one).
(c) Create a slideshow with 3 images (next/previous).
(d) Text rollover example.
(e) Modify status bar using onMouseOver/onMouseOut.

5. Attempt any TWO:

(a) HTML form with radio buttons (Fruits/Vegetables) and dynamic dropdown.
(b) Read/write cookies with example.
(c) Validate name and email on form submission.

6. Attempt any TWO:


(a) Evaluate checkbox selection with example.
(b) Frame structure with links loading content in FRAME 3.
(c) Pull-down menu (Google, MSBTE, Yahoo) for redirection.

Summer 2022
1. Attempt any FIVE:

(a) Features of JavaScript.


(b) Session vs. persistent cookies.
(c) Check if a number is prime.
(d) Explain onmouseup and onblur events.
(e) Change window contents dynamically.
(f) JavaScript frameworks and applications.
(g) Access elements of a child window.

2. Attempt any THREE:

(a) Validate user accounts using switch-case.


(b) Differentiate concat() and join().
(c) Demonstrate intrinsic functions.
(d) Store username/password in cookies.

3. Attempt any THREE:

(a) Create/read/update/delete cookies.


(b) Link banner ads to URLs.
(c) Calculator for add/sub/multiply/divide.
(d) Regular expressions with example.

4. Attempt any THREE:

(a) Differentiate for and for-in loops.


(b) Find string length.
(c) Validate email using regex.
(d) Book table with rollover discount info.
(e) Webpage protection techniques.

5. Attempt any TWO:


(a) Check if a string is a palindrome.
(b) Convert character to Unicode and vice versa.
(c) Slideshow with 6 images (next/previous).

6. Attempt any TWO:

(a) Open child window with frames (button → image).


(b) Display images based on dropdown selection.
(c) Generate Fibonacci series up to user limit.

Winter 2022
1. Attempt any FIVE of the following:

(a) State the use of methods in JavaScript with a suitable example.


(b) List and explain data types in JavaScript.
(c) Write a simple calculator program using switch-case in JavaScript.
(d) Write a program using the sort method of the Array object.
(e) Describe property getters and setters.
(f) Enlist and explain any two intrinsic JavaScript functions.
(g) Describe the browser location object.

2. Attempt any THREE of the following:

(a) Write a JavaScript program to display the current date in DD/MM/YYYY format.
(b) Write a JavaScript program to remove duplicate elements from an array.
(c) Write a JavaScript program to display a list of students in ascending order of
marks and calculate the class average.
(d) Explain string functions for converting a string to a number and vice versa.

3. Attempt any THREE of the following:

(a) Differentiate between concat() and join() methods of the Array object.
(b) Write a JavaScript function to check if the first character of a string is uppercase.
(c) Write a JavaScript function to merge two arrays and remove duplicate values.
(d) Write a JavaScript function to open a new window when a button is clicked.

4. Attempt any THREE of the following:


(a) Describe text rollover with an example.
(b) Write a JavaScript program to create a pull-down menu with three options for
website redirection.
(c) Describe quantifiers with an example.
(d) Explain JavaScript frameworks and their applications.
(e) Describe how to link banner advertisements to URLs with an example.

5. Attempt any TWO of the following:

(a) Create an HTML form for Name, Email, and Pin Code with validation:

• Fields must not be blank.


• Pin Code must be 6 digits (numeric only).
(b) Design a webpage form to store username and password in a cookie.
(c) Create a frame structure where links (Chapter 1, Chapter 2) load content
in FRAME3.

6. Attempt any TWO of the following:

(a) Create a dropdown list (Red, Green, Blue, Yellow) to change the webpage
background color.
(b) Develop a JavaScript program for rotating banner ads.
(c) Write JavaScript for a folding tree menu.

Winter 2023
1. Attempt any FIVE:

(a) Explain +a and document.bgcolor.


(b) Syntax of prompt().
(c) Assignment operators (e.g., +=).
(d) Differentiate shift() and push().
(e) Define a function with example.
(f) Explain with clause.
(g) Date object and two methods.

2. Attempt any THREE:

(a) Sum digits of a number.


(b) navigator object methods (browser name/version).
(c) for-in loop example.
(d) Calculate simple interest (S.I. = PNR/100).

3. Attempt any THREE:

(a) Calculator (add/subtract/multiply).


(b) Create email from first name and domain.
(c) Differentiate substring() and substr().
(d) Explain cookies and persistent cookies.

4. Attempt any THREE:

(a) Search for "MSBTE" in a string using regex.


(b) window object properties and popup messages.
(c) Display laptop images on mouseover.
(d) setTimeout() example.
(e) Hide JavaScript code.

5. Attempt any TWO:

(a) Floating menu implementation.


(b) Regex for:

• Email validation
• Aadhaar card (dddd-dddd-dddd)
• Phone number ((ddd)-(dddddddd))
(c) Beverage selection dropdown (Tea/Coffee/Soft Drink).

6. Attempt any TWO:

(a) Six form events.


(b) Crawling status bar message ("Welcome to JavaScript").
(c) Frameset layout and regex properties.

Summer 2023
1. Attempt any FIVE:

(a) Ways to display output.


(b) Logical operators (&&, ||, !).
(c) Create/delete student object properties.
(d) Initialize Colors array and display.
(e) Call functions with arguments.
(f) Four mouse events (onclick, onmouseover).
(g) Four navigator object properties.

2. Attempt any THREE:

(a) Getters/setters example.


(b) Object creation using new.
(c) Check odd/even numbers (1–15).
(d) charCodeAt() and fromCharCode().

3. Attempt any THREE:

(a) Differentiate push() and join().


(b) Split "Sudha Narayana Murthy" into first/middle/last names.
(c) splice() method example.
(d) Persistent cookies example.

4. Attempt any THREE:

(a) Regex test() and exec().


(b) Webpage protection techniques.
(c) Rotating banner ads.
(d) Text/image rollover.
(e) Moving status bar message.

5. Attempt any TWO:

(a) Form for addition/subtraction.


(b) Real-time digital clock (start/stop).
(c) Validate UserID (10 chars, starts uppercase) and Aadhaar No. (12 digits).

6. Attempt any TWO:

(a) Evaluate radio buttons.


(b) Frame structure with buttons loading pages in frames.
(c) Pull-down menu (AICTE, DTE, MSBTE, Google).

Winter 2024
1. Attempt any FIVE:

(a) Four bitwise operators (&, |, ^, ~).


(b) do-while syntax.
(c) Embed external JavaScript in HTML.
(d) Add elements to array end.
(e) Compare join() and concat().
(f) Four <form> tag attributes (action, method).
(g) Timer functions (setInterval, setTimeout).

2. Attempt any THREE:

(a) switch-case example.


(b) Getters/setters example.
(c) Prime number check.
(d) String-to-number conversion methods.

3. Attempt any THREE:

(a) charCodeAt() and fromCharCode().


(b) Functions with arguments.
(c) Sort array in descending order.
(d) Eight JavaScript features.

4. Attempt any THREE:

(a) Regex quantifiers (*, +, ?).


(b) Four JavaScript frameworks.
(c) Disable right-click.
(d) Call child window function.
(e) Conceal email addresses.

5. Attempt any TWO:

(a) Form with fruit/vegetable radio buttons and dynamic dropdown.


(b) Read/write/delete cookies.
(c) Frame structure with links loading content in another frame.

6. Attempt any TWO:

(a) Mouse/keyboard events.


(b) Validate username (no digits) and password (special chars).
(c) Rotating banner ads with URL links.
Summer 2024

1. Attempt any FIVE:

(a) Features of JavaScript.


(b) Four Math object methods.
(c) Print even numbers (1–20).
(d) Display array in ascending/descending order.
(e) Function syntax with example.
(f) Two mouse events.
(g) JavaScript URL explanation.

2. Attempt any THREE:

(a) Object, method, property uses.


(b) Getters/setters example.
(c) Check positive/negative/zero using switch-case.
(d) charCodeAt() and fromCharCode().

3. Attempt any THREE:

(a) Associative arrays.


(b) Check if a string is a palindrome.
(c) Add/sort array elements.
(d) Browser location and history.

4. Attempt any THREE:

(a) Frames and creation example.


(b) Floating and chain select menus.
(c) Banner ads for advertising.
(d) Validate IP address.
(e) Create status bar.

5. Attempt any TWO:

(a) Disable form fields and validate password length.


(b) Store student roll numbers/names in cookies.
(c) Text/image rollover for book titles.

6. Attempt any TWO:


(a) Form controls (Button, Text, TextArea, etc.).
(b) Protect webpage: hide source, disable right-click, hide JS.
(c) Rotating banner ads with URL links.

You might also like