Answer: -17
Explanation:
Our random number is 17. Let's go through line by line.
- value is a random number picked which is 17
- valueB = 17 / 2 = 8.5
- If value is greater than 0 AND value has a remainder of 1, we will set the value to value* -1.
- Value is now 17 * -1 = -17
Let's quickly calculate value mod 2. 17 % 2 = is 1. If you're wondering how we did that, the remainder after dividing 8 into 17 twice is 1, because 17 - 16 = 1.
We stop after line 4 because we stop the conditional statement after one condition is filled.
Answer:
Correct limitation for Attribute Name and value is option
b: Value and name combined must not exceed 400KB
Explanation:
For amazon dynamo db You can have unlimited attribute per item but one attribute cannot exceed 400 kb in size.400Kb is the limit of an item which can be stored in db.
If bigger data is required to store than data is stored some where and links/url to data are stored in the db.
For Item max size is 64KB
Answer:
Option (d) Software firewall is placed between the normal application and the networking components of the operating system
Explanation:
- Software Firewalls protect the computer from trojans and malicious content which can arise from unsafe applications.
- It also protect the computer from external network.
- It filters the data to and from a software application in the desktop.
- It also filters the data to and from a network.
- It safeguards the computer from not loosing access to the attackers.
- It is customizable software and has to be monitored like installing updates and storage spaces etc.
- Software Firewall in conjunction with the Hardware Firewall must be used for the security of the desktop and the networks.
Answer:
the output of the above program is
2 3
3 5
8
Explanation:
It seems the program is trying to pair two numbers into one and leaving the unpaired number (in a case of odd number of numbers) as a separate output.
This is why numbers 2 and 3 form 23, numbers 3 and 5 form 35 and 8 is another output of the program.
Answer:
Option B 120
Explanation:
There are three variables,<em> ans, x </em>and <em>y</em> given in the code. In beginning, the variable. <em>ans,</em> holds value of 10. And variable <em>x</em> and <em>y</em> hold value of 65 and 55, respectively. Since the value held by x is bigger than one held by y, the if condition is met and the statement ans = x + y will run. The execution of this statement will total x with y -> 65 + 55 and the initial value of <em>ans is </em>overwritten by the addition result which is 120.