Here are the multiple choices below:
A. Sort sugar in descending order, and filter Calories by under 100 calories.
B. Sort sugar in ascending order, and filter Calories by over 100 calories.
C. Filter Calories by over 100 calories, and sort Sugar in descending order.
D. Filter Calories by over 100 calories, and sort Sugar in ascending order.
Sorting and Filtering in Excel or Access are two tools that let you organize and view your data. Sorting your data puts it in order and filtering lets you hide unimportant data. And in this case, it is no different. If you want to show foods with more than 100 calories, you should filter calories by over 100 and sort sugar in highest to the lowest (descending order).
Answer:
A
Explanation:
Option A is not true because a Boolean variable type can hold one of two values only that is (true/True or false/False).
All the other options given in the question are correct because
- A variable declaration refers to specifying its type and name
- If string variables are assigned a numeric values which is legal provided the values are enclosed in quaotes( " "), trying to carryout a mathematical operation like addition will result in string concatenation.
- The Variable name I_Love_to_eat_pizza is legal because it contains no special characters, doesn't start with a number and its not a reserved word in any language
Answer:
The solution code is written in Python:
- keysList = [32, 105, 101, 35]
- itemsList = [10, 20, 30, 40]
-
- output = ""
-
- for i in range(len(keysList)):
- if(keysList[i] > 50):
- output += str(itemsList[i]) + " "
-
- print(output)
Explanation:
Firstly, let us use the two sample list, keysList and itemsList in our program (Line 1-2). Then create a output variable to hold the output string (Line 4).
Next, we create a for-loop and use it to traverse through the elements in the keysList. If any keysList element is bigger than 50 then we use the same index i to get the corresponding item from itemsList and join that value to the output string (Line 7-8).
Lastly, we print the output (Line 10).