CodeTantra

Unit VI - Lesson 1 - 6

Unit VI - Lesson 1 7.1.1. What is DOM? (c) The DOM represents the structure of a web page as a hierarchical tree of nodes. 7.1.2. Under…

Unit V - Lesson 4

6.4.1. if-else statement // write your code below this line if((year % 4 === 0 && year % 100 !==0) || year % 400 === 0){ var nDays …

Unit V - Lesson 3

6.3.1. Addition Operator // write your code below this line const v1 = boo+num; const v2 = boo+str; const v3 = num+arr; 6.3.2. Other Arit…

Unit V - Lesson 2

6.2.1. Variable declaration & initialization // this is a comment in JS. // Write your code below this var who='World'; 6.2.2…

Unit V - Lesson 1

6.1.1. JavaScript, the language (a) One can use JavaScript to build a youtube like web application (c) One of the ways JavaScript is used in…

Unit IV - Lesson 5

4.5.1. Introduction to flex (c) main axis 4.5.2. flex-direction /* Write your code below */ .flex-item-1{ background-color: red; } .…

Unit IV - Lesson 4

4.4.1. display <!doctype html> <html> <!-- Write your code below --> <head> <link rel="stylesheet" hr…

Unit IV - Lesson 3

4.3.1. Introduction to HTML Form Element (b) Collect and send data 4.3.2. Select the correct answer (b) It indicates how data should …

Unit IV - Lesson 2

4.2.1. table, thead, tr, th <!doctype html> <html> <body> <table border="1"> <!-- Write your code…

Unit IV - Lesson 1

4.1.1. Introduction to box model (d) margin, border, padding, content 4.1.2. Content <!doctype html> <html> <head>…

Unit 6 - Lesson 11

67.1.1. Introduction to web scrapping (a) Using socket programming we can retrieve web pages by posting HTTP requests to the remote web serv…

Unit 6 - Lesson 10

66.1.1. An introduction of regular expression/String pattern matching (a) A regular expression, regex or regexp is a sequence of characters t…

Unit 6 - Lesson 9

65.1.1. Packages overview (a) Packages can be thought as directories with some specific rules. (c) Each package should have a file called __i…

Unit 6 - Lesson 8

64.1.1. Using 'from' keyword along with import from Module_Imp3 import calculatearea, calculatediameter # Write your code here a = …

Unit 6 - Lesson 7

63.1.1. Importing a module # using import statement, import CheckNegative import CheckNegative # take an interger as input from the user i =…

Unit 6 - Lesson 6

62.1.1. Raising an exception def checkage(age): if age < 0: raise ValueError("age should be greater than or equal to zero") …

Unit 6 - Lesson 5

61.1.1. Try with many except blocks (a) A try block can have more than one except block, each block handling a type of Exception. (b) Based o…

Unit 6 - Lesson 4

60.1.1. Syntax Error (a) A error is generally a bug in the program usually caused by the developer who develops the code. (b) There are gener…