CyberChallenge.IT 2019 - Test
Demo of the test for the 2019 edition of CyberChallenge.IT

Additional material for other tests is available at the link https://cyberchallenge.it/training
Sign in to Google to save your progress. Learn more
Question 1

Given the following piece of code:
Complete the malloc so that dest points to the smallest memory area that can accommodate the string src:
1 point
Clear selection
Question 2
Which of the following expressions is always true?  
1 point
Clear selection
Question 3
What is the output of the above program?
1 point
Clear selection
Question 4

Consider the following C program:
What would you put in place of ..., so that the function f() outputs the value of x[1][2] (i.e., the number 7)?  
1 point
Clear selection
Question 5
Consider the two C expressions x & 255 and x % 256.
Which of the following is correct?
1 point
Clear selection
Question 6
What is the purpose of the above function?

Remember that x ^ y denotes the bitwise XOR of x and y, x & y denotes their bitwise AND, and << is the left shift.  
1 point
Clear selection
Question 7
What can we deduce from the sentence “All the computers have a CPU and a memory”?
1 point
Clear selection
Question 8
I’m 5 years older than my sister, who is 7 years younger than Lucy.
How old was Lucy when her age was equal to the sum of ours?
1 point
Clear selection
Question 9
There is a set of actions, labeled from A to G. B and D requires A (that is, A must be executed before we can execute either B or D). F and G require D; F requires G too. C requires B, while A requires E. Finally, F requires C  
If you execute all actions, respecting these dependencies, which is the last action that you can start?
1 point
Clear selection
Question 10
A peach tree is left with only two branches, with one higher than the other. A few birds are resting perched on its branches. If right now a bird hops on the lower branch, the birds on the lower branch become twice as many as the ones on the higher one. However, if a bird hops instead on the upper branch, the number of birds perched on each branch becomes the same.
How many birds are now on the lower branch?
1 point
Clear selection
Question 11
CyberSec Inc. is a multinational technology company that employs thousands of people around the world. The salary of the company’s CEO is 30 times the average salary of an over 45-year-old software engineer. Moreover, it is known that:

- There are 1000 software engineers working for CyberSec in total, with an average salary of $80K (per year).
- There are 2000 employees who are over 45 years old, and their average salary is $65K (per year).
- There are 2700 “expensive employees” in total, where an “expensive employee” is a software engineer or any person over 45 years of age.
- The total wage bill for expensive employees is $180.9 million (per year).
What is the salary of CyberSec’s CEO?
1 point
Clear selection
Question 12
There are 5 houses in 5 different colors, each owned by a person with a different nationality. These owners drink a certain type of beverage, smoke a certain brand of cigar and keep a certain pet. No one has the same pet, smokes the same brand of cigar or drinks the same beverage. Moreover,
1. The Englishman lives in the red house.
2. The Spaniard owns the dog.
3. Coffee is drunk in the green house.
4. The Ukrainian drinks tea.
5. The green house is immediately to the right of the ivory house.
6. The Old Gold smoker owns snails.
7. Kools are smoked in the yellow house.
8. Milk is drunk in the middle house.
9. The Norwegian lives in the first house.
10. The man who smokes Chesterfields lives in the house next to the man with the fox.
11. Kools are smoked in the house next to the house where the horse is kept.
12. The Lucky Strike smoker drinks orange juice.
13. The Japanese smokes Parliaments.
14. The Norwegian lives next to the blue house.
Who owns the zebra?
1 point
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy