Exam in
80 questions
The number of objects in a web page which consists of 4 JPEG images and HTML text is:
The values GET, POST, HEAD, etc... are specified in
Find the oddly matched HTTP status codes:
HTTP uses the services of _______ on well-known port 80:
In HTTP, the first line in a request message is called a _______ line; the first line in the response message is called the _______ line.
An HTTP request message always contains
_______ is more robust and secure than _______
Which of the following property of an anchor element signifies an element that currently has the user's mouse pointer hovering over it?
In css, "color:red" can be called as
In CSS, "font-size" can be called as
_______ selectors are used to specify a group of elements.
"font-style comes first than font-weight in font attribute", State true or false.
Which CSS property is equivalent for the attribute <center>?
Which of the following is the correct way to applying style to a document?
With, which tag you write the style rules directly within the document found within the head of the document.
Inline style has the lowest priority.
When a user views a page containing a JavaScript program, which machine executes the script?
Which of the following lines of JavaScript code will change the HTML inside of an element with the attribute id="myElement" to "CS 105"?
If the function print() has been defined that prints the value passed in as the parameter to it, how many times is "Hello" printed?
If the initial value of x (set on Line #1) is now 5 instead of 20, how many times is "Hello" printed?
Based on its usage in the function, what type of variable x be?
Which of the following statements are true about this code?
In the JavaScript, which one of the following is not considered as an error:
How are the objects organized in the HTML DOM?
What is the work of the form control elements in the HTML DOM?
Which of the following statements is correct in this python code?
What will the following python code print?
What is a Django App?
What are Migrations in Django?
Django is based on which framework?
What does {{name}} mean in Django Templates?
Which of the following is a valid forloop attributes of Django Template System?
What does the architecture of Django consist of?
Django is a type of
Which Command issued to create a project in Django?
In a URL, an optional _______ can be inserted between the host and the path, and it is separated from the host by a colon.
A cookie is created by
The _______ of the _______ can contain parameters sent to the server.
In JavaScript, the statement "40" + 6 will return
To determine if an object contains a certain property, we can use the _______ operator.
Consider you have a function "funcX" that multiplies any input number by 3. And you have a list of numbers Y=[1,3,4]. The result of the statement Y.map(funcX) is
An HTTP Response message must contain
"Expires: Tuesday, 17 Dec 2020 18:30 GMT" is a _______ header denoting _______
To denote a permission of using a resource, you must use
Using authorization, have a response of status 200 means that
A lock icon in the browser denotes
<del> HTML element is used to
Cascading style sheets are used to
A CSS rule-set consists of
50.<link rel="stylesheet" type="text/css" href="style.css"> is a declaration of
What is the correct JavaScript syntax to change the content of the HTML element <P id="demo">This is a demonstration.</p>
What is the output of the following JavaScript snippet?
var writeMe="console.log('document.writeln(x);')"
var x=13
eval(writeMe);
x="20"
y=10
document.writeln(x+y, x-y)
If you have the following JavaScript statement: const f = (a,b)=>a+b+5;
To select numbers that are less than 10 from an array of numbers (named myNumbers), the following is a correct syntax to do it:
In the following function:
function multiply(...myNumbers) {
let total = 1
for (let myNumber of myNumbers) total *= myNumber;
return total; }
The "..." will:
The "..." in the previous question are called:
In the following Python statements: if2<1:
print("Two is less than one!")
x = { "name": "Ahmed", "id": "1", "mobile": 123456789, "mobile": 987654321 }
print(x)
The above print will return:
def f (**person):
f (name= "Ahmed", age=10)
print("Person's name is " + person["name"])
The above statement will return:
y = lambda x: x/20
print(y(100))
The first console.log statement (line 4), will output:
The second console.log statement (line 8), will output:
The last console.log statement (lines 10, 11), will output:
If we called func(1, "1"); it will log:
If we called func("1"); it will log:
If we called func("A", "2", "Ali", "Z"); it will log:
If we called func(); it will log:
Line 2 in this code will (ignoring lines from 3- to the end):
Assume Line 2 in this code is removed, then line 3 in this code will (ignoring lines from 4- to the end):
Assume Lines from 1 to 3 in this code are removed, then line 5 will:
Assume Lines 2, 4, and 5 in this code are removed, line 6 will output:
Assume Lines from 1 to 3 in this code are removed, and line 6 is removed too, code is only lines (4, 5 and 7), line 7 will output:
JavaScript is a statically typed language.
var a=200; var b="200"; a===b will return true while a==b will return false?
isNaN("Hello") returns true while isNaN(undefined) returns false?
In Python, the value of [] is False.
In Python. A set is a collection which is both unordered and indexed.
In the following statement: myNumbers = {1, 2, 3}
x = myNumbers.pop()
The removed item will be 3.
x=("apple", "banana", "cherry") is a definition of a list.