Home


Test I

Prepare yourself

0: What would be a value of variable x (which is integer), if don't initialize its value? Why?
1: In what way is #define working? What is the reason to use it?
2: What is the difference between union and structure? What it has in common?
3: What is a namespace? Why we use it?
4: What pointer could refer to?
5: How to create an array of a structures?
6: How to get an address of a variable in memory?
7: How to pass a function as an argument to a function's invoke? There is no such function defined before. (tip: lambda)
8: Why should we use srand?
9: What is #include? In what way it works?
10: How can we refer to an array's element without square brackets?
11: What is "->"? What comes before? What comes after?
12: Describe string's memory representation in C language (char*).
13: What are keywords: new, delete?
14: What is F function, if we find something like this in a source code: "F()(3)"?
15: What is the value of a variable x (which is integer), if we ommit value initialization? Why?
16: What every C++ source code should contain?
17: How many memory do I need, to swap 2 rows of 2D dynamic-array?
18: We found in source code something like "**x". What is x?
19: What if we put an integer inside if's condition? Would it compile?