Question 40
Question text
Which of the following attribute is used by a HTML tag to apply inline style? Choose most appropriate option.
Feedback
Question 41
Question text
Feedback
Question 42
Question text
Feedback
Question 43
Question text
Consider the javascript code given below. What would be the print values from line 1 and line 2 on execution?
<html>
<body>
<p id="id1"></p><!-- line 1-->
<p id="id2"></p><!-- line 2-->
<script>
var y=10;
myFunction();
document.getElementById("id1").innerHTML = y;
document.getElementById("id2").innerHTML = window.y;
function myFunction() {
y=20;
y=y+window.y
}
</script>
</body>
</html>
Choose the most appropriate option.
Feedback
Question 44
Question text
SPOT THE ERROR:
Observe the below algorithm to find the average of three numbers.
Step1: Start
Step2: Get num1, num2, num3
Step3: Add num1, num2, num3 and store it in Sum
Step4: Average=sum%3
Step5: Display Sum and Average
Step6: Stop
Identify the incorrect step(if any)
Feedback
Question 45
Question text
Order the range of coupling from high to low
a. control coupling
b. stamp coupling
c. content coupling
d. uncoupled
e. common coupling
f. data coupling
Feedback
c , e , a, b, f, d
Question 46
Question text
Carefully read the question and answer accordingly. One of the best application of Stack is
Feedback
Question 47
Question text
Carefully read the question and answer accordingly. Which data structure is said to be linear data structure?
Feedback
Question 48
Question text
Time complexity of an algorithm signifies the total time required by the algorithm to complete its execution with provided resources. State True or False.
Feedback
Question 49
Question text
Which algorithm is the best sorting method in-place with no quadratic worst-case scenarios?
Feedback
Question 50
Question text
What is the time complexity of these functions?
int fact(int i)
{
if(i<=1)
return i;
return 2*fact(i-1);
}
int fact2(int i)
{
if(i<=1)
return i;
return fact2(i-1) + fact2(i-1);
}
Comments
Post a Comment