0% found this document useful (0 votes)
419 views

Test Paper

This document contains a 50 question software evaluation test with questions ranging from HTML, CSS, and JavaScript topics. Multiple choice answers are provided for each question testing knowledge of code syntax, output, and concepts across various languages. The test covers foundational topics for web development like HTML tags, CSS properties, and JavaScript arrays and loops.

Uploaded by

Top It Academy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
419 views

Test Paper

This document contains a 50 question software evaluation test with questions ranging from HTML, CSS, and JavaScript topics. Multiple choice answers are provided for each question testing knowledge of code syntax, output, and concepts across various languages. The test covers foundational topics for web development like HTML tags, CSS properties, and JavaScript arrays and loops.

Uploaded by

Top It Academy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Software Evaluation Test

Total Que: 50
Marks 50

1. HTML stands for


A.Hyper Text Markup Language
B.High Text Markup Language
C.Hyper Tabular Markup Language
D.None of these
Ans: A

2. Which attribute specifies a unique alphanumeric identifier to be associated with an element?


a. class b. id c. article d. html
Ans: b

3. Correct HTML tag for the largest heading is


a. <head> b. <h6>
c. <heading> d. <h1>
Ans : d

4. A webpage displays a picture. What tag was used to display that picture?
a. picture b. image c.img d. src
Ans:c

5. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong> b. <dar> c. <black> d. <emp>
Ans:a
6. Which CSS property controls the text size?
A. font-size
B. font-style
C. text-style
D. text-size
Ans: A

7. What is the correct CSS syntax for making all the <p> elements bold?
A. <p style=”text-size:bold”>
B. p {font-weight:bold}
C. p {text-size:bold}
D. <p style=”font-size:bold”>
Ans: B

8. How do you display hyperlinks without an underline?


A. a {text-decoration:no underline}
B. a {decoration:no underline}
C. a {text-decoration:none}
D. a {underline:none}
Ans: C

9. How do you make each word in a text start with a capital letter?
A. text-transform:capitalize
B. You can’t do that with CSS
C. text-transform:uppercase
Ans: A

10. How do you change the font of an element?


A. font-family:
B. font=
C. f:
Ans: A
11. Which of the following is not a valid variable name declaration?
a) int _a3;
b) int a_3;
c) int 3_a;
d) int _3a
Answer: c

12. All keywords in C are in ____________


a) LowerCase letters
b) UpperCase letters
c) CamelCase letters
d) None of the mentioned

Answer: a

13. What will be the output of the following C code?


#include <stdio.h>
int main()
{
int i = 5;
i = i / 3;
printf("%d\n", i);
return 0;
}
a) Implementation defined
b) 1
c) 3
d) Compile time error
Answer: b
14 What will be the output of the following C code?
#include <stdio.h>
int main()
{
short i;
for (i = 1; i >= 0; i++)
printf("%d\n", i);
 
}
The control won’t fall into the for loop
b) Numbers will be displayed until the signed limit of short and throw a runtime error
c) Numbers will be displayed until the signed limit of short and program will successfully
terminate
d) This program will get into an infinite loop and keep printing numbers with no errors

Answer: c

15. What will be the output of the following C code?

#include <stdio.h>
void main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("Hello");
}
Run time error
b) Hello is printed thrice
c) Hello is printed twice
d) Hello is printed infinitely
Answer: b

Is it possible to run program without main() function?


Yes
(B) No
Ans: B

16.Which of the following is executed by Preprocess?


#include<stdio.h>
(B) return 0
(C) void main(int argc , char ** argv)
(D) None of above

Ans: A

17. A deviation from the specified or expected behavior that is visible to end-users is called:
a) an error
b) a fault
c) a failure
d) a defect
Ans: C

18. A configuration management system would NOT normally provide:


a) Linkage of customer requirements to version numbers.
b) The precise differences in versions of software component source code.
c) Facilities to compare test results with expected results.
d) Restricted access to the source code librar
Ans: C
19. Test cases are designed during:
a) Test recording.
b) Test configuration.
c) Test planning.
d) Test specification
Ans:D

20. Which of the following statements about reviews is true?


a) Reviews should be performed on specifications, code, and test plans
b) Reviews are the least effective way of testing code.
c) Reviews are unlikely to find faults in test plans.
d) Reviews cannot be performed on user requirements specifications.
Ans: A

22. In case of Large Systems


a) Only few tests should be run
b) Test Cases written by good test engineers should be executed
c) Only Good Test Cases should be executed
d) Testing should be on the basis of Risk
Ans: D

23. Which of these operators is used to allocate memory to array variable in Java?
a) malloc
b) alloc
c) new
d) new malloc
View Answer

Answer: c
Explanation: Operator new allocates a block of memory specified by the size of an array, and
gives the reference of memory allocated to the array variable.

24. Which of these is an incorrect array declaration?


a) int arr[] = new int[5].
b) int [] arr = new int[5].
c) int arr[] = new int[5].
d) int arr[] = int [5] new
View Answer

Answer: d
Explanation: Operator new must be succeeded by array type and array size.

25. What will this code print?

int arr[] = new int [5];


System.out.print(arr);
a) 0
b) value stored in arr[0].
c) 00000
d) Class name@ hashcode in hexadecimal form
View Answer
Answer: d
Explanation: If we trying to print any reference variable internally, toString() will be called which
is implemented to return the String in following form:
classname@hashcode in hexadecimal form

26. Which of these is an incorrect Statement?


a) It is necessary to use new operator to initialize an array
b) Array can be initialized using comma separated expressions surrounded by curly braces
c) Array can be initialized when they are declared
d) None of the mentioned
View Answer

Answer: a

Explanation: Array can be initialized using both new and comma separated expressions
surrounded by curly braces example : int arr[5] = new int[5]; and int arr[] = { 0, 1, 2, 3, 4};

27. Which of these is necessary to specify at time of array initialization?


a) Row
b) Column
c) Both Row and Column
d) None of the mentioned
View Answer

Answer: a
28   _________________are used for generic programming.

a. Inheritance 
b. Virtual Functions 
c. Templates
d. None of these

ANSWER: Templates
29   In CPP, cin and cout are the predefined stream __________ .

a. Operator 
b. Functions 
c. Objects 
d. Data types

ANSWER: Objects
30   Can constructors be overloaded?

a. Yes
b. No

ANSWER: Yes
31   Assume class TEST. Which of the following statements is/are responsible to invoke copy
constructor?

a. TEST T2(T1) 
b. TEST T4 = T1
c. T2 = T1 
d. both a and b 
e. All of these

ANSWER: both a and b


32   In CPP program, Can we declare and define a user defined function inside a struct as we do
in a class ?

a. Yes
b. No
c. Can’t say
ANSWER: Yes
33    ____________ refers to the act of representing only essential features without including
the background details.

a. Data Hiding
b. Data Encapsulation 
c. Data Abstraction
d. All of these

ANSWER: Data Abstraction


34   Assigning one or more function body to the same name is called ____________ .

a. Function Overriding 
b. Function Overloading 
c. Both a and b 
d. None of the above

ANSWER: Function Overloading


35    __________________ is the OOP feature and mechanism that binds together code and the
data it manipulates, and keep both safe from outside world.

a. Data Binding 
b. Data Encapsulation 
c. Data Storing 
d. Data Abstraction

ANSWER:. Data Encapsulation 
36   C structure differs from CPP class in regards that by default all the members of the
structure are __________ in nature.

a. private
b. protected 
c. public 
d. None of these

ANSWER: public 
37. Which of these in not a core data type?
a) Lists
b) Dictionary
c) Tuples
d) Class

Answer: d
Explanation: Class is a user defined data type.
38. Given a function that does not return any value, What value is thrown by default when
executed in shell.
a) int
b) bool
c) void
d) None
View Answer

Answer: d
Explanation: Python shell throws a NoneType object back.
39. What will be the output of the following Python code?
>>>str="hello"
>>>str[:2]
>>>
a) he
b) lo
c) olleh
d) hello

Answer: a
Explanation: We are printing only the 1st two bytes of string and hence the answer is “he”.
40. Which of the following will run without errors?
a) round(45.8)
b) round(6352.898,2,5)
c) round()
d) round(7463.123,2,1)
Answer: a
Explanation: Execute help(round) in the shell to get details of the parameters that are passed
into the round function.
5. What is the return type of function id?
a) int
b) float
c) bool
d) dict

Answer: a
Explanation: Execute help(id) to find out details in python shell.id returns a integer value that is
unique.

41. What will be the output of the following Python code?


x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
a) [‘ab’, ‘cd’]
b) [‘AB’, ‘CD’]
c) [None, None]
d) none of the mentioned
Answer: a
Explanation: The function upper() does not modify a string in place, it returns a new string
which isn’t being stored anywhere.

42. What will be the output of the following Python code?


x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
a) [‘AB’, ‘CD’]
b) [‘ab’, ‘cd’, ‘AB’, ‘CD’]
c) [‘ab’, ‘cd’]
d) none of the mentioned
View Answer

Answer: d
Explanation: The loop does not terminate as new elements are being added to the list in each
iteration.

43. What will be the output of the following Python code?


i=1
while True:
if i%0O7 == 0:
break
print(i)
i += 1
a) 1 2 3 4 5 6
b) 1 2 3 4 5 6 7
c) error
d) none of the mentioned
View Answer

Answer: a
Explanation: Control exits the loop when i becomes 7.

44) In JavaScript, what is a block of statement?


Conditional block
block that combines a number of statements into a single compound statement
both conditional block and a single statement
block that contains a single statement

Answer: B
45. What will be the output of the following JavaScript code?
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2
a) true false
b) false true
c) true true
d) false true

Answer: a
Explanation: Array a1 is defined with null values. Therefore we can access the indexes 0, 1 and
2. But array a2 is only defined not declared. Therefore we cannot access index 0.
46. The pop() method of the array does which of the following task?
a) decrements the total length by 1
b) increments the total length by 1
c) prints the first element but no effect on the length
d) updates the element

Answer: a
Explanation: pop() function pops out that is delete the last element from the array. Hence pop()
method (it works with push()) reduces the length of an array by 1.

47. You can add a row using SQL in a database with which of the following?
A. ADD
B. CREATE
C. INSERT
D. MAKE
Answer: Option C
48. Which data manipulation command is used to combines the records from one or more
tables?
A.SELECT B.PROJECT
C.JOIN D.PRODUCT
Answer : JOIN [Option : C]

49. Which operator is used to compare a value to a specified list of values?


A.BETWEEN B.ANY
C.IN D.ALL
Answer : IN [Option : C]

50. Q.
The SQL used by front-end application programs to request data from the DBMS is called
_______
A.DML B.DDL
C.VDL D.SDL
Answer: DML [Option: A]

You might also like