0

programming languages Online Quiz - 265

Description: programming languages Online Quiz - 265
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

With an extensible Schema definition you cannot:

  1. Reuse your Schema in other Schemas

  2. Create your own data types derived from the standard types

  3. Reference multiple schemas in the same document

  4. All the above


Correct Option: D

XML Schema became a W3C Recommendation

    1. May 2001
    1. May 2001
    1. May 2000
    1. May 2002

Correct Option: A

A simple element is an XML element that can contain only

  1. IMAGE

  2. NUMBER

  3. TEXT

  4. ALL OF THE ABOVE


Correct Option: C

The syntax for defining an attribute is


Correct Option: B

Restrictions on XML elements are called

  1. cards

  2. decks

  3. facets

  4. faces


Correct Option: C

How many indicators are present in Schema ?

  1. 5

  2. 6

  3. 7

  4. 8


Correct Option: C

One of the greatest strength of XML Schemas is the support for

  1. data types

  2. images

  3. graphics

  4. functions


Correct Option: A

With XML Schemas, the sender can ________ the data in a way that the receiver will understand.

  1. describes

  2. develops

  3. designs

  4. inform


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of XML Schemas.

XML Schemas are used to define the structure, content, and data types of XML documents. They provide a way to describe the expected format and organization of data in an XML document.

Let's go through each option to understand why it is correct or incorrect:

Option A) Describes - This option is correct because XML Schemas are used to describe the structure and content of XML documents. By using XML Schemas, the sender can specify the expected format and organization of the data in a way that the receiver will understand.

Option B) Develops - This option is incorrect because XML Schemas are not used to develop data. They are used to define the structure and content of data.

Option C) Designs - This option is incorrect because XML Schemas are not used to design data. They are used to define the structure and content of data.

Option D) Inform - This option is incorrect because XML Schemas do more than just inform the receiver. They provide a detailed description of the expected format and organization of the data.

The correct answer is A) describes. This option is correct because XML Schemas are used to describe the data in a way that the receiver will understand.

Which of these are not a kind of complex elements

  1. empty elements

  2. elements that contain only other elements

  3. elements that contain only text

  4. elements that contain only numbers


Correct Option: D

AI Explanation

To answer this question, you need to understand the concept of complex elements.

Complex elements are elements in HTML that can contain other elements and/or text. They are made up of a start tag, an end tag, and the content in between. Empty elements, on the other hand, do not have any content between the start and end tags.

Let's go through each option to understand whether it is a kind of complex element or not:

Option A) Empty elements - This option is not a kind of complex element because empty elements do not have any content between the start and end tags. Examples of empty elements in HTML include <br>, <img>, and ``.

Option B) Elements that contain only other elements - This option is a kind of complex element because it contains other elements within it. For example, <div> is a complex element that can contain other elements such as <p> or <span>.

Option C) Elements that contain only text - This option is a kind of complex element because it contains text between the start and end tags. For example, <p> is a complex element that can contain text.

Option D) Elements that contain only numbers - This option is not a kind of complex element because elements in HTML cannot contain only numbers. Elements can only contain text, other elements, or a combination of both.

The correct answer is D. Elements that contain only numbers are not a kind of complex element in HTML.

Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7);

  1. 10

  2. 11

  3. 1

  4. 0


Correct Option: B

What does the following code do: int c=0; cout<

  1. Undefined

  2. 01

  3. 00

  4. 10


Correct Option: A

What is the outcome of cout<

  1. 16

  2. 17

  3. 16.5

  4. Undefined


Correct Option: A
  1. There is none; they both work as expected

  2. They both do nothing.

  3. The first will not invoke all myObj destructors

  4. It would'nt delete all the memory allocated to the objects


Correct Option: C
  1. cin.getline(x, 100, '\n');

  2. cin.getline(100, x, '\n');

  3. readline(x, 100, '\n');

  4. read(x);


Correct Option: A

What does the argument count variable store which is paased to main()?

  1. the number of arguments

  2. the number of arguments plus one

  3. the number of arguments minus one

  4. The total size of the argument array


Correct Option: B

Which header file do you need to include to use typecasting?

  1. stdin.h

  2. ctype.h

  3. math.h

  4. None


Correct Option: D

AI Explanation

To use typecasting in C/C++, you do not need to include any specific header file. Typecasting is a built-in feature of the C/C++ language and does not require any additional header files.

The correct answer is D) None.

- Hide questions