LIVE days knowledge and pseudo code rounds
Webdev Day 18/09/2024
Which of these was invented most recently?
- XHTML
- CSS
- JavaScript
- HTMX (correct answer)
Notes: Carson Gross first released HTMX in 2020.
Which of these is NOT a deprecated HTML tag?
<big>
<multicol>
<copyright>
(correct answer)<ilayer>
Notes: Copyright is a fictional tag. The others are real. but deprecated.
Which language was the majority of Wordpress built with?
- JavaScript
- Ruby
- PHP (correct answer)
- Go
Pseudo Code question:
Function findImportantLetter(inputString)
Set letterCount to an empty dictionary
Set importantLetter to an empty string
Set maxCount to 0
For each letter in inputString
Convert letter to uppercase
If letter is in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" then
Increment letterCount[letter] by 1
End If
End For
For each letter in letterCount
If letterCount[letter] is greater than maxCount then
Set maxCount to letterCount[letter]
Set importantLetter to letter
End If
End For
Return importantLetter
End Function
If inputString is “WeAreDevelopers”, what will findImportantLetter() return?
- E (correct answer)
- A
- D
- V
See code in JS - it’s just a fancy way to count the most used character in the string.