2024 Quiz 101
2024 Quiz 101
2024/05/12
2024 QUIZ NO 101 ictfromabc
Ravindu Bandaranayake
2. Select the correct ASCII code for the word ‘Calculate’ from the following answers.
my; i|yka ms<s;=rej,ska ‘Calculate’ hk jpkh i|yd ksjerÈ ASCII fla;h f;darkak'
1) 01000011 01100001 01101100 01100011 01110101 01101100 01100001 01100011 01100101
2) 01000011 01100001 01101100 01100011 01110101
3) 01000011 01100001 01101100 01100011 01110101 10100100 01001111 00110010 01100011
4) 01100100 01101000 01101100 01100101 01110010 01101100 01100001 01101111 01100011
5) 01000011 01100001 01101100 01100011 01110101 01101100 01100001 01110100 01100101
3. What is the correct result of the Bitwise XOR operation between two binary numbers 11002 and 11112?
oaúuh wxl 11002 iy 11112 w;r ìgqwkqidß; XOR fufyhqfï ksjerÈ m%;sM,h l=ulao@
1) 0 .
̅
2) C + B 3) 1 4) C . 5) A+B
1) This returns all the information of all persons whose name starts with the letter S in the teacher table.
fuu.ska teacher j.=fõ name S wl=frka wdrïN jk ish¿u mqoa.,hkaf.a ish¿u f;dr;=re ,nd
fohs'
2) This returns multiple selected fields of all persons whose name starts with S and ends with a in the
teacher table.
fuu.ska teacher j.=fõ name S wl=frka wdrïN jk yd a wl=frka wjika jk ish¿u
mqoa.,hkaf.a f;dard.;a lafIa;% lsysmhla ,nd fohs'
3) This returns all the fields of all persons that have an S and a in the field name in the teacher table.
fuu.ska teacher j.=fõ name ;=, S wl=rla yd a wl=rl mj;sk ish¿u mqoa.,hkaf.a ish¿u
lafIa;% ,nd fohs'
4) This returns all the fields of all persons whose name starts with S and ends with a in the teacher
table.
fuu.ska teacher j.=fõ name S wl=frka wdrïN jk yd a wl=frka wjika jk ish¿u
mqoa.,hkaf.a ish¿u lafIa;% ,nd fohs'
5) This returns all the information of all persons whose name ends with the letter a in the teacher table.
fuu.ska teacher j.=fõ name a wl=frka wjika jk ish¿u mqoa.,hkaf.a ish¿u f;dr;=re
,nd fohs'
7. What will be the output when the following Python code is executed?
my; mhs;ka fla;h l%shd;aul l< úg ,efnk m%;sodkh l=ulao@
x=50
while x>0:
x =x - 10
print(x, end=" ")
1) 50 40 30 20 10
2) 40 30 20 10
3) 40 30 20 10 0
4) 403020100
5) error
9. Which of the following can be used as a value for the type attribute of the HTML <input> tag?
HTML <input> Wiq,kfha type Wm,laIKfha w.hla f,i Ndú; l, yelafla my; ljrlao@
10. Which of the following PHP code snippets correctly initializes an associative array with the keys
"apple", "banana", and "orange", and their corresponding values "red", "yellow", and
"orange"?
"apple", "banana", iy "orange" hk h;=re iy tAjdfha wkqrEm w.hka jk "red",
"yellow", iy "orange" iuÕ ksjerÈj associative array tlla wdrïN lrkafka my; i|yka
l=uk PHP fla; fldgfiyso@
1) $array = ["apple" => "red", "banana" => "yellow", "orange" => "orange"];
2) $array = ["red" => "apple", "yellow" => "banana", "orange" => "orange"];
3) $array = ["apple", "banana", "orange"];
4) $array = ["red", "yellow", "orange"];
5) $array = ["apple" : "red", "banana" : "yellow", "orange" : "orange"];
⁕⁕⁕