Multiple Choice Questions

How many bits are in the int data type in Java?

  1. 8

  2. 16

  3. 32

  4. 64

Answer(s): 32,
Tag(s): digital logic, data types,
Subject: Computer Science

What symbol set indicates a dictionary in Python?

  1. [ ]

  2. { }

  3. " "

Answer(s): { },
Tag(s): Python, dictionaries,
Subject: Computer Science

A multi-way decision structure can contain a(n):

  1. if statement(s)

  2. else statement(s)

  3. elif statement(s)

  4. All of the above

Answer(s): All of the above,
Tag(s): if else if statements, Python,
Subject: Computer Science

The results the following xpath query will be what data type?

tree.xpath('//tei:titleStmt/tei:author/text()', namespaces = ns)

  1. list

  2. dictionary

  3. Boolean

  4. NoneType

Answer(s): list,
Tag(s): Python, lists,
Subject: Computer Science