snjb’s late sau. k. b. jain college of engineering, chandwad. … · 2019-01-18 · structure is...

41
SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. Information Technology FPL-II: Multiple Choice Questions Unit1: 1. Structure 2. Union 3. Enumeration 4. Typedef 1. Structure 1. User-defined data type can be derived by___________. A. struct B. enum C. typedef D. All of the mentioned Ans:D 2. Which operator connects the structure name to its member name? A. - B. . C. Both (b) and (c) Ans:B 3. What is the output of following C code? main() { struct emp { char name[20]; int age; float sal; }; struct emp e ={"Tiger"} printf("%d%d%f",e.age,e.sal); } [A] Error [B] Garbage Collection [C] 0 0.000000 [D] 1 0.000000 Answer: A. Error 4. Which of the following comment about the usage of structures in true? [A] Storage class can be assigned to individual member [B] Individual members can be initialized within a structure type declaration [C] The scope of the member name is confined to the particular structure, within which it is defined [D] None of above Answer: C. The scope of the member name is confined to the particular structure, within which it is defined Explanation:

Upload: others

Post on 09-Feb-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad.

Information Technology

FPL-II: Multiple Choice Questions

Unit1:1. Structure2. Union3. Enumeration 4. Typedef

1. Structure

1. User-defined data type can be derived by___________.

A. struct B. enum C. typedef D. All of the mentioned Ans:D

2. Which operator connects the structure name to its member name?

A. - B. . C. Both (b) and (c) Ans:B

3. What is the output of following C code? main(){ struct emp { char name[20]; int age; float sal; }; struct emp e ={"Tiger"} printf("%d%d%f",e.age,e.sal);}[A] Error[B] Garbage Collection[C] 0 0.000000[D] 1 0.000000Answer: A. Error

4. Which of the following comment about the usage of structures in true? [A] Storage class can be assigned to individual member[B] Individual members can be initialized within a structure type declaration[C] The scope of the member name is confined to the particular structure, within which it is defined[D] None of above

Answer: C. The scope of the member name is confined to the particular structure, within which it is defined

Explanation:

Page 2: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Structure is user defined data type which is used to store heterogeneous data under unique name.

5. Which of the following comment about Union is false? [A] Union is a structure whose members share same memory area[B] The compiler will keep track of what type of information is currently stored[C] Only one of the members of union can be assigned a value at particular time[D] Size allocated for Union is the size of its member needing the maximum storage

Answer: B. The compiler will keep track of what type of information is currently stored

Explanation:

Union is similar to structure the only difference is the way the memory allocated to structure and union

6. Which of the following is a collection of different data types? [A] String[B] Array[C] Structure[D] Files

Answer: C. Structure

Explanation:

Structure is a user defined data type which contains the variables of different data types.

7.Which operator is used to connect structure name to its member name? [A] dot operator(.)[B] logical operator(&&)[C] pointer operator(&)[D] Arrow operator(->)

Answer: A. dot operator(.)

8. Which of the following are themselves a collection of different data types?

A. String

B. Structure

C. Char

D. All of the mentioned

Answer: Option B

9 Which of the following cannot be a structure member?

A. Another structure

Page 3: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

B. Function

C. Array

D. None of the mentioned

Answer: Option B

10. Number of bytes in memory taken by the below structure is?

struct test{int k;char c;};

A. Multiple of integer size

B. integer size+character size

C. Depends on the platform

D. Multiple of word size

Answer: Option B

11 What is the output of this C code?

#include <stdio.h>

struct student

{

char *name;

};

struct student s;

struct student fun(void)

{

s.name = "newton";

printf("%s\n", s.name);

s.name = "alan";

return s;

}

void main()

Page 4: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

{

struct student m = fun();

printf("%s\n", m.name);

m.name = "turing";

printf("%s\n", s.name);

}

a) newton alan alanb) alan newton alanc) alan alan newtond) Compile time error

Ans: a

12. What is the output of this C code?

#include <stdio.h>

struct student

{

char *name;

};

void main()

{

struct student s, m;

s.name = "st";

m = s;

printf("%s%s", s.name, m.name);

}

a) Compile time errorb) Nothingc) Junk valuesd) st st

Ans:d

13. Presence of code like “s.t.b = 10” indicate.a) Syntax Errorb) structurec) double data type

Page 5: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

d) An ordinary variable nameAns: b

2.union14. Size of a union is determined by size of the.

A. First member in the union

B. Last member in the union

C. Biggest member in the union

D. Sum of the sizes of all members

Answer: Option C

15.What would be the size of the following union declaration?

union uTemp{double a;int b[10];char c;}u;(Assuming size of double = 8, size of int = 4, size of char = 1)

A. 4

B. 8

C. 40

D. 80

Answer: Option C

16. Members of a union are accessed as________________.

A. union-name.member

B. union-pointer->member

C. Both a & b

D. None of the mentioned

Answer: Option C

17 Which of the following share a similarity in syntax? 1. Union, 2. Structure, 3. Arrays and 4. Pointers

Page 6: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

A. 3 and 4

B. 1 and 2

C. 1 and 3

D. 1, 3 and 4

Answer: Option B

18. Comment on the following union declaration?

1. #include <stdio.h>2. union temp3. {4. int a;5. float b;6. char c;7. };

union temp s = {1,2.5,’A’}; //REF LINE Which member of the union will be active after REF LINE?a) ab) bc) cd) Such declaration are illegalAnswer:a

19. What would be the size of the following union declaration?

1. #include <stdio.h>2. union uTemp3. {4. double a;5. int b[10];6. char c;7. }u;

(Assuming size of double = 8, size of int = 4, size of char = 1)a) 4b) 8c) 40d) 80

20. What is the output of this C code(size of int and float is 4)?

1. #include <stdio.h>2. union3. {4. int ival;5. float fval;6. } u;

Page 7: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

7. void main()8. {9. printf("%d", sizeof(u));10. }

a) 16b) 8c) 4d) 32Answer:c

21. What is the output of this C code?

1. #include <stdio.h>2. union stu3. {4. int ival;5. float fval;6. };7. void main()8. {9. union stu r;10. r.ival = 5;11. printf("%d", r.ival);12. }

a) 9b) Compile time errorc) 16d) 5View Answer

Answer:d

22.What is the similarity between a structure, union and enumeration?

A. All of them let you define new values

B. All of them let you define new pointers

C. All of them let you define new data types

D. All of them let you define new structures

Ans: C

23.The correct syntax to access the member of the ith structure in the array of structures is? Assuming: struct temp { int b; }s[50];a) s.b.[i];b) s.[i].b;

Page 8: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

c) s.b[i];d) s[i].b;Answer:d

24.comment on the output of this C code?

1. #include <stdio.h>2. struct temp3. {4. int a;5. int b;6. int c;7. };8. main()9. {10. struct temp p[] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};11. }

a) No Compile time error, generates an array of structure of size 3b) No Compile time error, generates an array of structure of size 9c) Compile time error, illegal declaration of a multidimensional arrayd) Compile time error, illegal assignment to members of structureView Answer

Answer:a

25 Union differs from structure in the following way

a) All members are used at a timeb) Only one member can be used at a timec) Union cannot have more membersd) Union initialized all members as structure

ANSWER: B

26 About structure which of the following is true.

1. Structure members are aligned in memory depending on their data type.2. The size of a structure may not be equal to the sum of the size of its members.

a) Only option 1b) Only option 2c) Both option 1 and 2d) Neither option 1 nor 2

ANSWER: C

27.A union cannot be nested in a structure

A.

True

Page 9: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

B.

False

Answer: Option B

3. Typedef:

28. The correct syntax to use typedef for struct is.a) typedef struct temp { int a; }TEMP;b) typedef struct { int a; }TEMP;c) struct temp { int a; }; typedef struct temp TEMP;d) All of the mentionedAnswer:d

29. For the following expression to work, which option should be selected. string p = “HELLO”;a) typedef char [] string;b) typedef char *string;c) Both (a) and (b)d) Such expression cannot be generated in CAnswer:b

30 Which of the following is FALSE about typedef?a) typedef follow scope rulesb) typedef defined substitutes can be redefined again. (Eg: typedef char a; typedef int a;)c) You cannot typedef a typedef with other term.d) All of the mentionedView Answer

Answer:b

31. typedef which of the following may create problem in the programa) ;b) printf/scanfc) Arithmetic operatorsd) All of the mentionedView Answer

Answer:d

Page 10: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

32. typedef declarationa) Does not create a new typeb) It merely adds a new name for some existing type.c) Both a & bd) None of the mentionedAnswer:c

33. What is the output of this C code?

1. #include <stdio.h>2. typedef struct student3. {4. char *a;5. }stu;6. void main()7. {8. stu s;9. s.a = "hi";10. printf("%s", s.a);11. }s

a) Compile time errorb) Variesc) hid) hAnswer:a

4.Enumeration

34. What will be the output of the program ?

#include<stdio.h>

int main(){ enum days {MON=-1, TUE, WED=6, THU, FRI, SAT}; printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT); return 0;}A.

-1, 0, 1, 2, 3, 4

B.

-1, 2, 6, 3, 4, 5

C.

-1, 0, 6, 2, 3, 4

D.

-1, 0, 6, 7, 8, 9

Answer: Option D

Page 11: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

What will be the output of the program ?

#include<stdio.h>

int main()

{

enum status {pass, fail, absent};

enum status stud1, stud2, stud3;

stud1 = pass;

stud2 = absent;

stud3 = fail;

printf("%d %d %d\n", stud1, stud2, stud3);

return 0;

}

a)0,1,2 B)1,2,3 C)0,2,1 D)1,3,2 ANS:C

Page 12: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

1. The OOPs concept, exposing only necessary information to users or clients is known as

A. Abstraction B. Encapsulation C. Data hiding D. Hiding complexity

2. Which of the following is an abstract data type?

A. Class B. Int C. String D. Double

3. Hiding the complexity is known as

A. Abstraction B. Encapsulation C. Data hiding D. Composition

4. In a class, encapsulating an object of another class is called

A. Composition B. Inheritance C. Encapsulation D. None

5. IS A relationship in C++ is

A. Inheritance B. Encapsulation C. Composition D. None

6. If you want to write multiple functions in a class with same name, then what C++ feature will you use?

A.. Function overriding B. Encapsulation C. Function overloading D. None

7. For Cat and Animal class, correct way of inheritance is

A. class Cat: public Animal B. class Animal: public Cat

C. Both are correct way D. None is correct way

8. Which C++ oops feature is related to re-usability?

A. Encapsulation B. Inheritance C. Abstraction D. None

9. Correct way of creating an object of a class called Car is

A. Car obj; B. Car *obj = new Car(); C. Only B D. A & B both

10. In C++ programming, cout is a/an

A. Function B. Operator C. Object D. macro

11. Data members and member functions of a class in C++ program are by default

A. protected B. public C. private D. None

12. Which operator is used to allocate an object dynamically of a class in C++?

A. Scope resolution operator B. Conditional operator C. New operator D. Membership access

13. Which is used to define the member function of a class externally?

A. : B. :: C. # D. None

14. Variable that are listed in function's calls are called

A. Actual parameter B. Declared parameter C. Passed parameter D. None of them

15. A programmer can create custom header files that must be end with

A. .h extension B. .l extension C. .ios extension D. .a extension

16. Unary scope resolution operator is denoted by

A. ! ! B. % % C. : D. : :

17. To make large programs more manageable programmers modularize them into subprograms

that are called

Page 13: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

A. Operators B. Classes C. Functions D. None of them

18. Keywords are also called

A. Preprocessors B. Reserved words C. Punctuation marks D. Operators

19. Overflow is a one kind of

A. Syntax error B. Logical error C. Run time error D. None of them

20. In C++ a name that is assigned by a user for a program elements such as variable, type, class,

function or namespaces is called

A. Operators B. Identifiers C. Literals D. All of them

21. An object in a class is often called

A. element B. instance C. bit D. baud

22. What is required in inheritance to initialize the data members of the base class through derived class?

A. Object declaration B. Destructor C. Constructor D. Inheritance

23. In which case is it mandatory to provide a destructor in a class?

A. Almost in every class

B. Class for which two or more than two objects will be created

C. Class for which copy constructor is defined

D. Class whose objects will be created dynamically

24. Which of the statements is true in a protected derivation of a derived class from a base class?

A. Private members of the base class become protected members of the derived class

B. Protected members of the base class become public members of the derived class

C. Public members of the base class become protected members of the derived class

D. Protected derivation does not affect private and protected members of the derived class

25. When the access specifier of the base class in the derived class definition is public, the base

class is ..

A. Publicly inherited B. Protectively inherited C. Privately inherited D. None of the above

26. A pointer to the base class can hold address of

A. only base class object B. only derived class object

C. base class object as well as derived class object D. None of the above

27. A template class

Page 14: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

A. is designed to be stored in different containers B. works with different data types

C. generates objects which must be identical

D. generates classes with different numbers functions

28. The constructor and the destructor of a class are automatically invoked when memory is

allocated and deallocated to an ….

A. Data type B. Copy constructor C. Object D. None of the above

29. A pure virtual function is a virtual function that

A. has no body B. returns nothing C. is used in base class D. both (A) and (C)

30. A class defined within another class is

A. Nested Class B. Inheritance C. Containership D. Encapsulation

31. Which variable stores the memory address of another variable?

A. Reference B. Pointer C. Array D. None of the above

32. What does your class can hold?

A. data B. functions C. both a & b D. none of the mentioned

33. How many specifiers are present in access specifiers in class?

A. 1 B. 2 C. 3 D. 4

34. How many kinds of classes are there in c++?

A. 1 B. 2 C. 3 D. 4

35. Which other keywords are also used to declare the class other than class?

A. struct B. union C. object D. both a & b

36. Which of the following is a valid class declaration?

A. class A { int x; }; B. class B { } C. public class A { } D. object A { int x; };

37. Constructors are used to

A. initalize the objects B. construct the data members

C. both a & b D. none of the mentioned

38. Which class is used to design the base class? A. abstract class B. derived class C. base class D. None of the mentioned

Page 15: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

39. Which operator is used to declare the destructor?

A. # B. ~ C. @ D. $

40. Which of the following correctly declares an array?

A. int array[10]; B. int array; C. array{10}; D. array array[10];

41. What is the index number of the last element of an array with 9 elements? A. 9 B. 8 C. 0 D. Programmer-defined

42. Where does the execution of the program starts? A. user-defined function B. main function

C. void function D. none of the mentioned

43. What are mandatory parts in function declaration? A. return type,function name B. return type,function name,parameters

C. both a and b D. none of the mentioned

44. which of the following is used to terminate the function declaration? A. : B. ) C. ; D. none of the mentioned

45. Which is more effective while calling the functions?

A. call by value B call by reference C. call by pointer D. none of the mentioned

46. What is the output of this program?

#include < iostream >

void fun(int x, int y) {

x = 20;

y = 10; }

int main(){

int x = 10;

fun(x, x);

cout << x;

return 0; }

A. 10 B. 20 C. compile time error D. none of the mentioned

Page 16: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

47. What is the scope of the variable declared in the user definied function? A. whole program B. only inside the {} block

C. both a and b D. none of the mentioned

48. Which operator is used for input stream? A. << B. >> C. <= D. >=

49. Which operator is used for input stream? A. << B. >> C. <= D. >=

50. Which of the following concepts means wrapping up of data and functions together?

A.) Encapsulation B.) Inheritance C.) Polymorphism D.) Abstraction

51. Which of the following concepts means waiting until runtime to determine which function to call?

A. Data hiding B. Dynamic loading C. Dynamic casting D. Dynamic binding

52. Which of the following approach is adapted by C++? A. Top-down B. Left-right C. Bottom-up D. Right-left 53. Which of the following concepts provides facility of using object of one class inside another class? A. Abstraction B. Composition C. Inheritance D. Encapsulation

54. How will you free the allocated memory ? A. remove(var-name); B. free(var-name); C. delete(var-name); D. dalloc(var-name);

55. What is the similarity between a structure, union and enumeration? A. All of them let you define new values B. All of them let you define new data types C. All of them let you define new pointer

Page 17: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

D. All of them let you define new structure 56. A union cannot be nested in a structure A. True B. False

57. Nested unions are allowed

A. True B. False

58. A structure can be nested inside another structure.

A. True B. False

59. Which of the following statement is True?

A. User has to explicitly define the numeric value of enumerations

B. User has a control over the size of enumeration variables.

C. Enumeration can have an effect local to the block, if desired

D. Enumerations have a global effect throughout the file.

60. The '.' operator can be used access structure elements using a structure variable.

A. True B. False

61. Point out the error in the program?

struct emp { int ecode; struct emp *e; };

A. Error: in structure declaration B. Linker Error C. No Error D. None of above

62. Point out the error in the program?

typedef struct data mystruct;

struct data { int x; mystruct *b; };

A. Error: in structure declaration B. Linker Error C. No Error D. None of above

63. Size of a union is determined by size of the.

A. First member in the union B. Last member in the union

Page 18: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

C. Biggest member in the union D. Sum of the sizes of all members

64. What would be the size of the following union declaration? (Assuming size of double = 8, size of int = 4, size of char = 1) union uTemp { double a; int b[10]; char c; }u;

A. 4 B. 8 C. 80 D. 40

65. Members of a union are accessed as________________.

A. union-name.member B. union-pointer->member

C. Both a & b D. None of the mentioned

66. Most appropriate sentence to describe unions is A. Union are like structures B. Union contain members of different data types which share the same storage area in memory C. Union are less frequently used in program D Union are used for set operations 67. Which of the following comments about union are true?

A. Union is a structure whose members share the same storage area

B. Size allocated for union is the size of its member needing the maximum storage

C. Only one of the members of union can be assigned a value at a particular time

D. All of these

68. In object oriented language, single unit which has data and its function is termed as

A. attribute B. object C. constant D. loop

69. First object oriented language is

A. SmallTalk B. C++ C. C D. JAVA

70. Data encapsulation and data hiding are key features of

A.procedural language B. machine language

Page 19: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

C.structural language D.object oriented language

71. Object oriented language has single unit which combines

A. data and function B.data and constant C. function and simulation D. string and character

72. C++ was originally developed by;

A. Clocksin and Mellish B. Donald E. Knuth C. Sir Richard Hadlee D. Bjame Stroustrup

73. cout stands for

A. class output B. character output C. common output D. call output

74. A constructor is called whenever

A. an object is declared B. an object is used C. a class is declared D. a class is used

Question No. Answer Question

No.

Answer Question

No.

Answer

1 a 26 c 51 d

2 a 27 b 52 c

3 a 28 c 53 b

4 b 29 d 54 b

5 a 30 a 55 b

6 c 31 b 56 b

7 a 32 c 57 a

8 b 33 c 58 a

9 d 34 b 59 c

10 c 35 d 60 a

11 c 36 a 61 c

12 c 37 a 62 c

13 b 38 a 63 c

14 a 39 b 64 d

Page 20: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

FPL-II MCQ Question Bank

Prepared By. Prof. V. K. Wani [SNJB's KBJ CoE Chandwad.]

15 a 40 a 65 c

16 d 41 b 66 b

17 c 42 b 67 d

18 b 43 a 68 b

19 c 44 c 69 a

20 b 45 b 70 d

21 b 46 a 71 a

22 c 47 b 72 d

23 d 48 b 73 c

24 c 49 a 74 a

25 a 50 a 75

Page 21: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 1: The common element which describe the web page, is ?

A.heading B. Paragraph C. List D. All of these Answer:D 2: HTML stands for?

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

Answer:A 3: which of the following tag is used to mark a begining of paragraph ?

A.<TD> B. <br> C. <P> D. <TR> Answer:C 4: Correct HTML tag for the largest heading is

A.<head> B. <h6> C. <heading> D. <h1> Answer:D 5: Markup tags tell the web browser

A.How to organise the page B. How to display the page C.How to display message box on page D. None of these

Answer:B 6: www is based on which model?

A.Local-server B. Client-server C. 3-tier D. None of these Answer:B 7: What are Empty elements and is it valid? A.No, there is no such terms as Empty Element C.No, it is not valid to use Empty Element Answer:B

B.Empty elements are element with no data D. None of these

8: Which of the following attributes of text box control allow to limit the

maximum character? A.size B. Len C.maxlength D. all of these

Answer:C 9: Web pages starts with which ofthe following tag?

A.<Body> B. <Title> C. <HTML> D. <Form> Answer:C 10: HTML is a subset of

A.SGMT B. SGML C. SGMD D. None of these Answer:B Page 1

Page 22: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 11: Character encoding is

A.method used to represent numbers in a character B. method used to represent character in a number C.a system that consists of a code which pairs each character with a pattern,sequence of natural numbers or electrical pulse in order to transmit the data D.none of these

Answer:C 12: Correct HTML to left align the content inside a table cell is

A.<tdleft> B. <td raligh = "left" > C.<td align = "left"> D. <td leftalign> Answer:C 13: The tag which allows you to rest other HTML tags within the description is

A.<TH> B. <TD> C. <TR> D. <CAPTION> Answer:D 14: How can you open a link in a new browser window?

A.< a href = "url" target = "new"> B. <a href = "url" target= "-blank"> C.<a href = "url".new> D. <a href = "url" target ="open">

Answer:B 15:The tag used to create a new list item and also include a hyperlink is

A.<LI> B. <DL> C. <DD> D. <UL> Answer:A 16: Which of the tag is used to creates a number list?

A.<LI> B. <OL> C. <LI> and <OL> D. None of these Answer:C 17: <INPUT> is

A.format tag B. empty tag C. both (a) and (b) D. none of these Answer:B

19: The latest HTML standard is A.XML B. SGML C. HTML 4.0 D. HTML 5.0

Answer:D

20: What i s the correct HTML for adding a background color? A.<background>yellow<Background> B. <body color = "yellow"> C.<body bg color = "yellow"> D. <body bg ="yellow">

Answer:C

21: Main container for <TR>, <TD> and <TH> is A.<TABLE> B. <GROUP> C. <DATA> D. All of these

Answer:A

Page 2

Page 23: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 22: The body tag usually used after

A.Title tag B. HEAD tag C. EM tag D. FORM tag Answer:B 23:How can you make an e-mail link?

A.<mail href +"[email protected]"> B. <a href ="mail to: [email protected]"> C.<a href = "[email protected]"> D. Both (b) and (c)

Answer:B 24: Which tag creates a number/order list?

A.<UL> B. <OL> C. <OT> D. None of these Answer:B 25: The web standard allows programmers on many different computer platforms to dispersed format and display the information server. These programs are called A. Web Browsers B. HTML C. Internet Explorer D. None of these Answer:A 26.HTML Document can contain ______________. A.Attributes B.All of these C.Tags D. Plain Text

Answer:B

27.Page Designed in HTML is called as ________. A.Front Page B. Yellow Page C.Web page D.Server page Answer:C 28.We can write HTML Code using ______. Select appropriate option(s). A.Notepad B.Microsoft word C.both a&b D.vlc media Answer:C 29.HTML is platform independent------------ A. True B. False Answer:B 30.HTML is available to developers or web designers free of cost. A. Yes B. No Answer:A 31.We need to invest more money to buy HTML licence before publishing HTML

powered web page. A.True B.False Answer:B Page 3

Page 24: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 32.HTML program is saved using ____________ extension.

A. .hml B. .htnl C. .htl D. .html

Answer:D 33.HTML program can be read and rendered by _________.

A. Web browser B. Compiler C. Server D.Interpreter Answer: A

34.HTML Code written in MAC can be browsed in a PC with Window 7 installed , User

will be able to see same design that was designed on the MAC Pc. A.

True B.False Answer:A

35. Browser renders .html and .htm pages in the same fashion. A. True B.False Answer: A 36. Which of the following is not an example of browser ?

A.Netscape navigator B.Opera C.Mozilla Firefox D.Microsoft’s Bing Answer: D

37. Who was the primary author of HTML (Hyper Text Markup Language). ?

A. Brendan Eich B. Tim Berners-Lee C. Google Inc. D. Sabir Bhatiya Answer: B

38. HTML was firstly proposed in year

_______. A. 1995 B.1990 C.2000 D.1998 Answer: B

39. HTML tags are surrounded by __________ brackets.

A. Square B.Round C.Curly D.Angular Answer: D

40. HTML Tags are generally written in ____________.

A. Single B. Pair Answer: B

41. Opening Tag of HTML Tag is called as __________.

A. Starting tag B. Forward tag C. Ending tag D. Closed tag Answer: A

42. The end tag is written with a __________ slash before the tag name.

A. Forward B. Backward

Page 4

Page 25: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III

Answer: A 43 .HTML document contain 1 root tag called __________.

A. Head B. Body C. Title D. HTML Answer: D

44.HTML Tags may be in Uppercase or in Lowercase.

A. True B. False Answer: A

44.HTML Tags are case sensitive. Are you agree with the statement ? A. No B. Yes Answer: A 45 .Not all HTML Tags have Closing Tag associated with it.

A. True B. False Answer: A

46.HTML document will not be rendered if we forgot to write closing tag.

A. True B. False

Answer: B 47. Basic Fundamental Block is called as ___________.

A. HTML element B. HTML body C.HTML tag D.HTML attribute Answer: C

47.Is .htm and .html the same?

A. No B. Yes Answer: B

48.. ......................... connects web pages. A. Connector B. Link C. Hyperlink D. None of the above Answer:C

49. Internet is ............................... A) a network of networks B) an ocean of resources waiting to be mined C) a cooperative anarchy D) all of the above Answer:

D

5 0 . .................. is suitable for remote administration of a computer. A) FTP B) Shell C) Remote Procedure Call D) Telnet Answer: D

Page 5

Page 26: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 51. Title tag is nested within the ....................... tag. A) Body B) Head C) List D) Table Answer: B

52. .................... is a web's native protocol. A) SLIP B) TCP/IP C) HTTP D) PPP Answer: C

53. The Internet uses the ........................ as the protocol engine. A) SLIP B) HTTP C) TCP/IP D) PPP Answer: C

54.A ............................. is a symbolic name a network administrator assigns to a machine. A) URL B) DNS C) IP address D) Host name Answer: D 55. Which of the following protocol is used for e-mail services.

A) SMAP B) SMTP C) SMIP D) SMOP Answer: B 56....................... is the incoming e-mail server. A) POP B) SMTP C) SMIP D) PPP Answer: B 57. ....................... is a uniform naming scheme for locating resources on the web. A) URI B) HTTP C) WEBNAME D) RESOURCENAME Answer: A

Answers:

1. C) Hyperlink

2. D) all of the above

3. D) Telnet

4. B) Head

5. C) HTTP

6. C) TCP/IP Page 6

Page 27: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III

7. D) Host name

8. B) SMTP

9. A) POP

10. A) URI 58. A world wide web contains web pages ....... A. residing in many computers B. created using HTML C. with links to other web pages D. residing in many computers linked together using HTML Answer: D 59.Which of the following is used as character based browser? A. Mosaic B. Internet Explorer C. Netscape D. Lynx Answer: D 60.A........ is a network in which the computers are connected directly, usually by some type of cable. A. LAN B. MAN

C. CAN

D. HAN

Answer: A 61.FTP applications are A. Internet Browsers B. Used to send emails C. Used to download and upload files D. None of the above Answer: C 62.The purpose of Markup is to A. Add hypertext capabilities B. Enhance the document C. Both A and B D.None of the above Answer: C 64) The interface that the user must navigate often is called...... A. the look and feel of a website B. the most liked website C. the unwanted website D. the adhoc website Answer: A 65) Modem speeds are measured in A. BSP B. BPS C. BDS D. None of the above Answer: B Page 7

Page 28: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 66) The Domain name "gov" stands for A. U.S. government B. Any government C. Developed Nations Government D. None of the above Answer: A

67) In HTML the visited website display the link in........... color. A. red or purple B. red or blue C. blue or green D. black or white Answer: A

68) Which of the following is not a part of the Internet Advisory Board? A. Internet Engineering Task Force B. Internet Engineering Research Task Force C. Internet Engineering Steering Group D. All are a part of the IAB Answer: B

69) The World Wide Web Consortium (W3C) is a group which is lead by A. Tim Berners Lee B. Tim Thompson C. Dave Cutler D. None of the above Answer: A 70) The .......... tag defines the relationship between a document and an external resource. A. <src> B. <href> C. <anchor> D. <link> Answer:D 71) The Internet uses the TCP/IP as its protocol engine and this uses A. All of the ISO/OSI layers B. Only five of the ISO/OSI layers C. Only six of the ISO/OSI layers D. Only two of the ISO/OSI layers Answer: B 72) The Internet based e-mail offers two types of access on the Internet. A. Web based e-mail and post office protocol based e-mail B. Data based e-mail and Internet protocol based e-mail C. Shell based e-mail and post office protocol based e-mail D. None of the above Answer: A 73) The ...... tag provides a way to create numbered or alphanumeric lists rather than bullets. A. <ul>...</ul> B. <ol>...</ol> C. <li>...</li> D. <i>....</i>

Answer: B

Page 8

Page 29: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 74) Which of the following functions is not performed by mail server? A. It stores the message when network traffic is low and transfers it when network traffic is high B. It acts as a gateway or translator between the different types of e-mail systems. C. It temporally stores the e-mail messages D. It forwards the e-mail messages to the next server Answer: A 75) Which of the following options do not hold good in case of sending your E-mail by the E-mail service providers? A. The ESPs charge is independent of the connect time B. The ESPs charge is dependent on the connect time C. You can send e-mail message to a fax number D. The ESPs existed before the Internet caught the country by storm Answer:A 76) Choose the correct HTML to right-align the content inside a table cell. B. <tdright> C. <td align="left"> D. <td rightalign> Answer:C 77) The symbol that identifies the "href" attribute as the name of a NAME anchor rather than an address or file name is A. "&" B. "$" C. "#" D. "!" Answer:C 78) Which of the following tags are belongs to <Table> tag. A. <table> <head><title> B. <td><br> C. <ol><ul> D. <table><tr><td> Answer: D 1) D. residing in many computers linked together using HTML 2) D. Lynx 3) A. LAN 4) C. Used to download and upload files 5) C. Both A and B 6) A. the look and feel of a website 7) B. BPS Page 9

Page 30: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 8) A. U.S. government 9) A. red or purple 10) B. Internet Engineering Research Task Force 11) A. Tim Berners Lee 12) D. <link> 13) B. Only five of the ISO/OSI layers 14) A. Web based e-mail and post office protocol based e-mail 15) B. <ol>...</ol> 16) A. It stores the message when network traffic is low and transfers it when network traffic is high 17) A. The ESPs charge is independent of the connect time 18) C. <td align="left"> 19) C. "#" 20) D. <table><tr><td> 79.What attribute is used to specify number of rows? A. Rownum B. Rownumb C. Rn D. Rowspan ANSWER : D 79.Which of the following attributes are used for a font name? A. fontname B. Fn C. Font D. face ANSWER : D 80.<meta> tag cannot be defined in the <head> tag. A. False B. True ANSWER : A

81. width=”100px” and width=”100%” the same? A. No B. Yes ANSWER : A

82.What is the <br> tag for? Page 10

Page 31: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III A. Space B. Paragraph break C. Line break D. Word break ANSWER : C

83.What are <div> tags used for? A. To replace paragraphs. i.e. p tags C.To logically divide the document ANSWER : C

B.to logically divide the paragraphs D.To provide space between tables

84.Can I play audios in HTML? A. No B. Yes ANSWER : Yes 85.What is the attribute for <image> tag? A. pt B. url C. Path D. src ANSWER : D 86.Can a data cell contain images? A. Yes B. No ANSWER : A 87.Each list item in an ordered or unordered list has which tag? A. list tag B. ls tag C. li tag D. ol tag ANSWER : C 88.How can we resize the image? A. Using resize attribute B. Using height and width C. Using size attribute D. Using rs attribute ANSWER : B

89.What are meta tags used for? A. To store information usually relevant to browsers and search engines. B. To only store information usually relevant to browsers C. To only store information about search engines. D.To store information about external links ANSWER : A 90.What is the difference between XML and HTML?

A. HTML is used for exchanging data, XML is not. B. XML is used for exchanging data, HTML is not.

Page 11

Page 32: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III

C. HTML can have user defined tags, XML cannot D.Both b and c above ANSWER : B

91.bgcolor is an attribute of body tag

A. True B. False ANSWER : A

92. - Which of the following feature is a part of HTML 5? A Canvas B - Audio & Video C - Geolocation D - All of the above. Answer : D Note:-.All of the above options are new features introduced in HTML5. 93. We hear that the internet is based on HTML. What is HTML exactly? A. HTML is a binary file format that codes web pages for use on the Internet. B. HTML is a protocol that is used to route data across the internet, via TCP/IP. C. HTML is a text-based language that is used to structure and present content on the world wide web. D. HTML is a disk file system used in modern operating systems. Ans. C

94. HTML is governed by who? A. The Microsoft Corporation. B. The Google Corporation. C. The World Wide Web Consortium (W3C). D. The United Nations committee on Telecommunications Ans. C

95. Presentation elements such as <font> and <center> which were deprecated in HTML4.01 can still be used in HTML5? A. True B. False Ans. B

96. HTML5 now supports drag-and-drop of elements into a receiver called a "canvas". A. True B. False Answer:1 97. HTML5 now supports Geolocation which can be used to find the location of the person browsing. A. True B. False Ans. A

Page 12

Page 33: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 98. HTML5 Now supports installing applications remotely without user intervention. A. True B. False Ans. B

99. HTML5 browswers will support the following new technology. A. CSS 2 B. PDF 10.2 C. Macromedia Flash D. CSS 3 Ans. D

100. What is the previous version of HTML, prior to HTML5? A. HTML 4.1 B. HTML 4.01 C. HTML 4.9 D. HTML 4.5 Ans. 2 101. Which of the following elements is no longer supported in HTML5? A. <font> B. <q> C. <ins> D. <menu> Ans. A 102. What is the correct HTML5 element for playing video files? A. <video> B. <media> C. <movie> D. None of the above Ans. A 103. What is the correct HTML5 element for playing audio files? A. <mp3> B. <sound> C. <audio> D. None of the above Ans. C 104. Which of the following correct syntax of link element? A. <link type=" " hrel=" / "> B. <link rev=stylesheet type=" "> C. <link rel=" " href=" "> D. None of the above Ans. C 105. While designing the links page of your website, you want the link to open a new browser window. How will you implement this with HTML? A. <anchor href="http://www.mailer.com">Mailer</anchor> B. <anchor href=http://www.mailer.com target=_blank>Mailer</anchor> C. <A HREF="http://www.mailer.com">Mailer</A> D. <a href="http://www.mailer.com" target="_blank">Mailer</a> Ans. D

Page 13

Page 34: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III 106. Which of the following values is not valid for the align attribute of a heading tag? Note: The align attribute was deprecated in HTML 4.01. Use styles instead in new coding. A. left B. Right C. Middle D. top Ans. C 107. Which of the following font styling tag is not valid? A. <small> B. <i> C. <big> D. <large> Ans. D 108.What is the correct HTML tag for adding a background color?

A. < body bgcolor=”yellow”> B.< background>yellow< backgound> C.< bold style=”background-color:white”> D.None of these

ANSWER : A

109.In HTML 5 width attribute specifies the width of the----------------- A.inline frame

B.outline frame

C.frameset

D.table

ANSWER : inline frame 110.Height attribute specifies the height of which frame? A. Iframe B.jframe C. inline frame D.outline frame ANSWER : inline frame 111.Attributes consist of a name and a value separated by ___ sign A. ” ” B. , C.= D.; ANSWER : = 112.Target attribute is used for A.opening new document B.selecting previous document C.deleting frame D.none of above

ANSWER : opening new document

113.Following code is used for <video width=“320″ height=“240″ controls=“controls”> Page 14

Page 35: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

Prepared By Mr. V. K. Wani

Fundamental Programming Languages-II Unit-III <source src=“test.mp4″ type=“video/mp4″ /> </video> A. display audio B.display video C. display text ANSWER : A

D.display image

114.The doctype should already be on the first line of every HTML page. A. yes B. no ANSWER : A 115.Text/Html is called the __________ of the page

A. content type B. MIME type C.content type/MIME type D.none of these ANSWER : content type/MIME type

116.Web run on ------------type A.- content type B. MIME

C. Data type D. none of these

ANSWER : B 117.HTML is based on which language?

A. XHTML B.XML C.SGML D. DTD ANSWER :C

118.In order to write HTML code we need to have active internet connection, Are you agree with this statement.

A. Yes B. No Answer:B

Page 15

Page 36: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

FPL-II UNIT-III

QUESTION BANK 1. A webpage displays a picture. What tag was used to display that picture? a. picture b. image c.img d. src 2. <b> tag makes the enclosed text bold. What is other tag to make text bold? a. <strong> b. <dar> c. <black> d. <emp> 3. Tags and test that are not directly displayed on the page are written in _____section. a. <html> b. <head> c. <title> d. <body>

4. Which tag inserts a line horizontally on your web page? a. <hr> b. <line> c. <line direction="horizontal"> d. <tr>

5. What should be the first tag in any HTML document? a. <head> b. <title> c. <html> d. <document>

6. Which tag allows you to add a row in a table? a. <td> and </td> b. <cr> and </cr> c. <th> and </th> d. <tr> and </tr>

7. How can you make a bulleted list? a. <list> b. <nl> c. <ul> d. <ol>

8. How can you make a numbered list? a. <dl> b. <ol> c. <list> d. <ul>

9. How can you make an e-mail link? a. <a href="xxx@yyy"> b. <mail href="xxx@yyy"> c. <mail>xxx@yyy</mail> d. <a href="mailto:xxx@yyy">

10. What is the correct HTML for making a hyperlink? a. <a href="http:// 12.com">HTML</a> b. <a name="http://12.com">HTML</a>

c. <http://12.com</a> d. url="http://123.com">HTML

11. Choose the correct HTML tag to make a text italic a. <ii> b. <italics> c. <italic> d. <i>

12. Choose the correct HTML tag to make a text bold? a. <b> b. <bold> c. <bb> d. <bld>

13. What is the correct HTML for adding a background color? a. <body color="yellow"> b. <body bgcolor="yellow"> c. <background>yellow</background> d. <body background="yellow">

Page 37: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

14. Choose the correct HTML tag for the smallest size heading? a. <heading> b. <h6> c. <h1> d. <head>

15. What is the correct HTML tag for inserting a line break? a. <br> b. <lb> c. <break> d. <newline>

16. HTML tags are surrounded by __________ brackets. A. Squart B. Round C. Angle D. Curly

17. HTML Tags are generally written in ____________. A. Pair B. Single

18. Opening Tag of HTML Tag is called as __________. A. Ending Tag B. Closed Tag C. Starting Tag D. Forward Tag 19. The end tag is written with a __________ slash before the tag name. A. Backward B. Forward 20. Which of the following is not a pair tag? a. <p> b. < u > c. <i> d. <img> 21. To create HTML document you require an a. web page editing software b. High powered computer c. Just a notepad can be used d. None of above 22. The special formatting codes in HTML document used to present content are a. tags b. attributes c. values d. None of above 23. HTML documents are saved in a. Special binary format b. Machine language codes

c. ASCII text

d. None

24. Some tags enclose the text. Those tags are known as a. Couple tags b. Single tags c. Double tags

d. Pair tags

25. Who is known as the father of World Wide Web (WWW)? A. Robert Cailliau B. Tim Thompson C. Charles Darwin D. Tim Berners-Lee 26. In HTML document the tags a. Should be written in upper case b. should be written in lower case c. should be written in propercase d. can be written in both uppercase or lowercase 27. Marquee is a tag in HTML to a. mark the list of items to maintain in queue b. Mark the text so that it is hidden in browser c. Display text with scrolling effect

d. None of above

Page 38: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

28. There are ____ different of heading tags in HTML a. 4 b. 5 c. 6 d. 7 29. To create a blank line in your web page a. press Enter two times b. press Shift + Enter c. insert <BR> tag d. insert <BLINE> 30. What is the full form of HTML? a.Hyper text markup language c. Hyphenation test marking language

b. Hyphenation text markup language d.Hyper text marking language

31. The way the browser displays the object can be modified by _____ a. attributes b. parameters c. modifiers d. None of above

32. Which of the following HTML code is valid? a. <font colour="red"> b. <font color="red"> c. <red><font> d. All of above

33. which of the following is an attribute related to font tag? a. size b. face c. color d. All of above

34. HTML supports a. ordered lists b. unordered lists c. both type of lists d. None

35. What tag is used to list individual items of an ordered list? a. LI b. OL c. UL d. None of above 36. When should you use path along with file name of picture in IMG tag? a. path is optional and not necessary b. location of image file & html file are different c. when image file and html file both are on same location d. path is always necessary when inserting image 37. Which of the following is not a valid alignment attribute? a. Left b. Right c. Top d. All of above 38. Which attribute is used with img tag to display the text if image could not load in browser? a. description b. name c. alt d. id 39. Which attribute can be used with BODY tag to set background color green? a. background="green" b. bgcolor="green" c. vlink="green" d. None of above 40. What is the full form of HTTP? a. Hyper text transfer protocol c. Hyphenation text test program 41. What is a search engine? a. a program that searches engines c. a hardware component

b.Hyper text transfer package d. none of the above b. a web site that searches anything d. a machinery engine that search data

Page 39: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

42. What is the full form of TCP/IP? a. transmission control protocol / internet protocol b. telephone call protocol / international protocol c. transport control protocol / internet protocol d. none of the above

43. HTML document start and end with which tag pairs? a. <HEAD>….</HEAD> b. <BODY>….</BODY> c. <HTML>….</HTML> d. <WEB>….</WEB>

44. Which tag is used to create body text in HTML? a. <HEAD> b. <TEXT> c. <TITLE> d. <BODY>

45. "Yahoo", "Infoseek" and "Lycos" are _________? a. Search Engines b. Browsers c.News groups d. None of the above

46. What does the .com domain represents? a. Education domain b. Commercial domain c. Network d. None of the above

47. Outlook Express is a _________ a. E-Mail Client b. Browser c. Search Engine d. None of the above

48. <TITLE> … </TITLE> tag must be within ________ a. Title b. Form c. Header d. Body

49. Text within <EM> … </EM> tag is displayed as ________ a. bold b. italic c. list d. indented

50. Text within <STRONG> … </STRONG> tag is displayed as ________ a. bold b. italic c. list d. indented

51. <UL> … </UL> tag is used to ________ a. display numbered list b. underline the text c. display bulleted list d. bold the text

52. Which tag is used to display the numbered list? a. <OL></OL> b. <DL></DL> c. <UL></UL> d. <LI></LI>

53. Which tag is used to display the large font size? a. <LARGE></LARGE> b. <BIG></BIG> c. < SIZE ></SIZE> d. <FONT></FONT>

54. using <P> tag will a. start new paragraph b. break the line c. end current paragraph d. none

55. <TD> … </TD> tag is used for ________ a. Table heading b. Table Description/Records c. Table row d. none 56. Which is true to change the text color to red? a. <BODY BGCOLOR=RED> b. <BODY TEXT=RED> c. <BODY COLOR=RED> d. none

Page 40: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

57. A homepage is __________ a. an index of encyclopedia articles c. required for access to the Internet

b. where all Internet data is stored d. the first page of a website

58. Which of the following is used to explore the Internet? a. Browser b. Spreadsheet c. Clipboard d. Draw

59. What is Internet Explorer? a. An Icon b. A File Manager c. A Browser d. The Internet

60. What do I need to get onto the Internet? a. Computer b. Modem c. Browser d. All of the above

61. What is an ISP? a. Internet System Protocol b.nternal System Program c. Internet Service Provider d. None of the above

62. Which is not a domain name extension a. mil b. org c.int d.com

63. Which of the following are commonly found on web pages? a. Internet b. hyperlinks c. intranet d. all of the above 64. What is the correct syntax in HTML for creating a link on a webpage? a. <LINK SRC= "test.html"> b. <BODY LINK = “test.html"> c. <A SRC = “test.html" > d. < A HREF = “test.html"> 65. Which HTML tag would be used to display power in expression (A+B)2 ? a. <SUP> b. <SUB> c. <B> d. <P>

66. HTML document contain 1 root tag called __________. A. HTML B. BODY C. TITLE D. HEAD

67. Extension of HTML file can be? A. .html B. h C. .htm D. both a and c

68. <a> tag stands for - A. Active Tag B.Action Tag C.Anchor Tag D.Additional Tag 69. Value of Attribute "href" is also called as __________ of the Destination Web Page. A.URM B.URL C.URK D.URS 70. URL in HTML stands for ____________. A.Uni Resource Locator B.Uniform Resource Locator C.Universal Resource Locator D.None of these

Page 41: SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad. … · 2019-01-18 · Structure is user defined data type which is used to store heterogeneous data under unique name

SNJB’s KBJ CoE Chandwad Prepared By: Mr. V. K. Wani

71. What kind of language is HTML? a. Web server programming language b. Structured programming language c. Web client programming language d. Markup language 72. ARPANET Stands for a. Advanced Research Project Agency Networkb. Artificial Research Project Agency N/W c.American Research Project Agency Network d. Advanced Research Project Agency N/W 73. WWW Stands for…. a. World Web Wide b. Web World Wide c. World Wide Web d. All 74. First Web Browser…… a. Chrome b.Epic c. Netscape d. Mosaic 75. A piece of icon/image on a web page associated with another webpage is called a) url b) hyperlink c) plugin d) none of the mentioned ********************************** BEST OF LUCK **************************