chose the best definition for Class
a. an object definition, containing the data function elements necessary create an object
b. an action in a program
c. a group of people
d. program execution
---------------------------
Choose the best definition of java script
a. a file on disk
b. An instance of a class
c. method class
d. native data types
---------------------------------
Choose the appropriate data type for this value: true
a.double
b.string
c.Boolean
d.int
--------------------
Choose the appropriate data type for this value: 5.5
a.boolean
b.String
c.double
d.int
---------------------------------------
Choose the best data type to hold the values of all possible correct answers on a multiple choice questions 'A', 'B', 'C', or 'D'
a. double
b.String
c.int
d.char
-------------------------------
Choose the appropriate data type for this value '1' that will never be longer than one digit
a.Boolean
b.String
c.int
d.char
----------------------------
Choose the appropriate data type for this field: kinfOfBirdd
a.String
b.double
c.char
d.int
------------------------------
Choose the appropriate data type for this field: numberOfEggs
a.boolean
b.double
c.string
d.int
-----------------------------------------------
Choose the appropriate data type for this field: isSwimmer
a.String
b.int
c.boolean
d. double
-------------------------------------
What is the main purpose of variables in programming?
a. to hold values in the memory of the computer
b.methods to work on data
c. CamelCasing naming conventions
d. to enforce program scoping
1) Answer is option (a). an object definition, containing the
data function elements necessary to create an object
why because, the class is described as one or more objects.object
is an instance of the class. so the option 'a' is the answer.
2)Answer is option (c).method class
why because Method class gives data about a single method in a
class.
3)Answer is option (c). Boolean
why because, Boolean variables consist of only two values, ie, true
or false.
other options do not belong to this question. because double
datatype consists of floating-point numbers, string consist of
variables, and int datatype consists of integers.
4)Answer is option (c).double
why because, as we said earlier that, double datatype consists of
floating-point numbers. other options do not belong to this
question. because Boolean variables consist of only two values, ie,
true or false, string consist of variables, and int datatype
consist of integers.
5)Answer is option (d). char
why because, char datatype consists of characters with single-byte
or multibyte.other options are not belongs to this question.
because double datatype consists of floating-point numbers, string
consists of variables, and int datatype consists of integers.
6)Answer is option (d). char
why because, char datatype consists of characters with single-byte
or multibyte, and it is enclosed within single quotes.other options
do not belong to this question. because int datatype consists of
integers, Boolean variables consist of only two values, ie, true or
false, string consists of variables.
7)Answer is an option (a). string
why because, string consist of variables, other options do not
belong to this question. because char datatype consists of
characters with single-byte or multibyte, double datatype consists
of floating-point numbers, and int datatype consists of
integers.
8)Answer is option (d). int
why because int datatype consists of integers. other options do not
belong to this question. because Boolean variables consist of only
two values, ie, true or false, double datatype consists of
floating-point numbers, and string consists of variables.
9)Answer is option (c). boolean
why because, Boolean variables consist of only two values, ie, true
or false.
other options do not belong to this question. because double
datatype consists of floating-point numbers, string consist of
variables, and int datatype consists of integers.
10)Answer is option (a).to hold values in the memory of the
computer
why because variables are stored on the stack area or heap area and
local variables are stored on the stack area.so other options do
not belong to this question.
hope you got the correct answer...
Please like...Thank you!
Get Answers For Free
Most questions answered within 1 hours.