Theory of Computation — DU B.Sc. (Hons) Computer Science Previous Year Question Papers
- Programme
- B.Sc. (Hons) Computer Science
- Paper type
- DSC/DSE
- Paper code
- 2343010014
- Exam years
- 2021–2025
Theory of Computation is a DSC/DSE paper in Semester V of B.Sc. (Hons) Computer Science at Delhi University (paper code 2343010014). 6 previous year question papers from 2021–2025 are listed below; view or download each original PDF.
2025 question papers
2025
2343010014B.Sc. (Hons) Computer Science
2024 question papers
2024
2343010014B.Sc. (Hons) Computer Science
2024
2343010014B.Sc. (Hons) Computer Science
2023 question papers
2023
2343010014B.Sc. (Hons) Computer Science
2022 question papers
2022
2343010014B.Sc. (Hons) Computer Science
2021 question papers
2021
2343010014B.Sc. (Hons) Computer Science
What was asked in the 2024 Theory of Computation paper?
Text of the nov dec 2024 DU question paper (UPC 2343010014), so you can see what gets asked before opening a PDF.
(v) Write the jQuery code to change the background color of a <div> with the ID content when the mouse hovers over it.
(c) Write a jQuery function to test whether a given date lies between January 1, 2024, and December
2. This question paper has two sections A and B.
5. All parts of a question should be answered together.
1. (a) Write HTML code to create a table on a webpage with the following data:
Name Age|Country
DEF 34 India
GHI 22 Russia
Apply basic table styles such as borders, padding, and background color to the table. (5)
(b) What is the output of following code segment?
var a = true + true + true * 3; document. write(a);
(iii) To remove the list items of <ol> element.
(iv) To change the text of <div> element to
"Hello world".
(v) To toggle the visibility of an element with the ID #toggle. (5)
(b) Discuss the purpose and usage of jQuery selectors and events through the following tasks:
(i) Write the jQuery selector to select all <p>
elements on a webpage.
(ii) Write the jQuery selector to select an element with the ID myDiv.
(iii) Write the jQuery selector to select all elements with the class highlight.
(iv) Write the Query code to display an alert message when a button with the ID submitBtn is clicked.
(c) Dropdown Menu: Allow users to choose a "Course"
from at least three options.
(d) Text Area: Add a section labeled "About Yourself"
for detailed input.
(e) Radio Buttons: Include options to select "Male" or
"Female" or "Other" for "Gender."
(f) Buttons: Include a "Submit" button to send data and a "Clear" button to reset the form.
Ensure the form layout is user-friendly, with clear labels for each field and a logical organization.
7. (a) Write a single line jQuery code for the following:
(i) To insert the text "Welcome to jQuery" at the end of a <p> element.
(ii) To remove the <div> element.
att; b += a *2; document. write(b);
(iii) <script>
var count = 0; while (count < 10) {
counttt; if (count %2==1)
1 document. write(count);
var x = 5; document. write(× + "5");
var x = 10; function test) {
var x = 5; document.write(x); }
test; document. write(x);
(c) Define the following terminology with respect to the Internet.
1 (b) Write a JavaScript program to analyse a given string "JavaScript was invented by Brendan Eich in 1995". The program should count:
(i) The number of words in the string.
(ii) The number of whitespace characters.
(iii) Occurrence of each character in the string.
6. Design a webpage that includes a structured HTML form with the following fields :
(a) Text Inputs: Collect user details such as
"FirstName", "LastName" "Course", and
(b) Checkbox Options: Provide selections for
PaperName "Web Design", "Machine Learning", and "Software Engineering."
4. (a) What is the purpose of a site map in website design, and how do linear, hierarchical, and webbed website structures organize and present content for navigation? (5)
How can I prepare for Theory of Computation?
Related subjects in B.Sc. (Hons) Computer Science
Frequently asked questions
- Where can I download the DU Theory of Computation previous year question paper PDF?
- This page lists 6 Theory of Computation question papers for B.Sc. (Hons) Computer Science at Delhi University (2021–2025). Open any paper to view the original PDF or download it. It is free and needs no login.
- Which years of Theory of Computation question papers are available?
- Theory of Computation papers are available for 2025, 2024, 2023, 2022, 2021.
- What is the paper code (UPC) of Theory of Computation?
- The Unique Paper Code for Theory of Computation in B.Sc. (Hons) Computer Science is 2343010014.
- Which semester is Theory of Computation taught in?
- Theory of Computation is a DSC/DSE paper in Semester V of B.Sc. (Hons) Computer Science, according to DU's published scheme.
