Knowee
Questions
Features
Study Tools

Which of the following statement(s) is/are NOT correct?  Tick all correct answer(s).  No partial marks and no negative marks.Select one or more:A variable must be declared before using itSwitch statement can only check the fractional valuesNested-if statements cannot check fractional values.

Question

Which of the following statement(s) is/are NOT correct?  Tick all correct answer(s).  No partial marks and no negative marks.Select one or more:A variable must be declared before using itSwitch statement can only check the fractional valuesNested-if statements cannot check fractional values.

🧐 Not the exact question you are looking for?Go ask a question

Solution 1

The statements that are NOT correct are:

B. Switch statement can only check the fractional values - This is incorrect because a switch statement in most programming languages can only check integer and character values, not fractional values.

C. Nested-if statements cannot check fractional values - This is incorrect because nested-if statements can check any type of values including fractional values.

This problem has been solved

Solution 2

The statements that are NOT correct are:

A. A variable must be declared before using it - This statement is generally correct in many programming languages such as C++, Java, and Python. You need to declare a variable to allocate memory space before using it.

B. Switch statement can only check the fractional values - This statement is incorrect. In many programming languages, switch statements do not support fractional values. They typically work with integer and character data types.

C. Nested-if statements cannot check fractional values - This statement is also incorrect. Nested-if statements can check any type of values including fractional values as long as the condition for the if statement is properly written.

So, the correct answers are B and C.

This problem has been solved

Similar Questions

Which of the following declaration(s) is/are correct for a String?  Tick all correct answer(s).  No partial marks and no negative marks.

Which of the following statement(s) is/are correct?  Tick all correct answer(s).  No partial marks and no negative marks.ConstantsSelect one or more:Are declared using 'const' keywordDo not change during the execution of the programAre fixed values

Select the correct answerWhich of these statements is correct?Options true and false are numeric values 0 and 1true and false are numeric values 1 and 0true is any non zero value and false is 0true and false are non numeric values

Which of the following statement(s) is/are correct?  Tick all correct answer(s).  No partial marks and no negative marks.Select one or more:Functions always return boolean valuesOnce a function is executed, the control will be returned to where it was accessed fromA function is a self-contained program executing a specific taskEvery program consists of one or more functions

Which of the following statements is true about the "if" statement?Marks : 1Negative Marks : 0Answer hereThe "if" statement can exist without the "else" statementThe "else" statement can exist without the "if" statementBoth "if" and "else" statements are mandatory in any programThe "if" statement is optional and can be omitted

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.