Job offers
Companies
Tests
Blog
I'm an employer
Sign up
Log in
Group 2@2x
Created with Sketch.
Home
>
IT Tests
>
Samuel
Samuel
Contribution
157
Contributions
14202
Contributions played
Tests
4
Tests completed
60
Questions completed
Achievements
+2
Tests
Contributions
Achievements
Submit a new question
or
see all questions
Easy
14
Medium
45
Hard
15
Expert
6
Technology
Profession
Sort by
Newest
Most popular
Last review
Filter by
Published
80
Not published
0
To review
0
Published
To review
Newest
Filters
Easy
14
Medium
45
Hard
15
Expert
6
Technology
Profession
Sort by
Newest
Most popular
Last review
Filter by
Published
80
Not published
0
To review
0
Cancel
80 questions
1
2
3
4
Hard
3 votes
279 runs
0 comment
Which statement concerning constructors is false ?
Back-end developer
constructors
attributes
at Mar 28, 2022
Medium
1 vote
231 runs
1 comment
The operator + has been defined for Complexe objects thanks to an intern overloading.
Back-end developer
operators
overloading
at Mar 5, 2024
Expert
1 vote
212 runs
0 comment
Write a C++ program that uses static variables.
Back-end developer
static
constructor
destructor
at Mar 28, 2022
Hard
1 vote
147 runs
0 comment
Write a C++ class with a constructor that takes two arguments.
Back-end developer
constructor
inheritance
at Mar 28, 2022
Medium
1 vote
19 runs
0 comment
What does the following code return ? int main() { int i = 1; int& j(i); i = 4; cout << j << endl; j = 6; cout << i << endl; return 0; }
Back-end developer
references
pointers
at Feb 27, 2023
Hard
1 vote
14 runs
0 comment
Write a C++ program that displays 111111.
Back-end developer
vector
references
at Feb 13, 2023
Samuel
Samuel
Samuel
Samuel
Samuel
Samuel
Easy
7 votes
491 runs
0 comment
Inheritance in OOP.
IT Architect
OOP
inheritance
methods
at Mar 28, 2022
Easy
4 votes
483 runs
0 comment
Can a class implements several interfaces ?
IT Architect
OOP
interfaces
inheritance
at Mar 28, 2022
Medium
4 votes
461 runs
1 comment
When can you do a+b in OOP ?
IT Architect
OOP
operator overloading
classes
at Mar 28, 2022
Expert
1 vote
407 runs
0 comment
What does the following code return ? public class A { public void talk() { echo "I am A" } public secretTalk() { this.talk() } } public class B extends A { private void talk() { echo "I am B" } public secretTalk() { this.talk() } } A b = new B() b.talk() b.secretTalk() Answer : "I am A" "I am B"
IT Architect
OOP
inheritance
overriding
at Mar 28, 2022
Medium
1 vote
386 runs
0 comment
Overloading an operator in OOP
IT Architect
OOP
operators
classes
at Mar 28, 2022
Samuel
Samuel
Samuel
Samuel
Samuel
Expert
6 votes
473 runs
0 comment
Overrided method visibility must be the same or less restrictive than the inherited method.
IT Architect
OOP
visibility
inheritance
at Mar 28, 2022
Medium
1 vote
448 runs
1 comment
In this code, the class B extends the class A. The class B overrides the method talk() from the class A. The object b is an instance of the class B. The object a is an instance of the class A. The object a is assigned to the object b. The object a calls the method talk(). The method talk() from the class B is called.
IT Architect
OOP
inheritance
polymorphism
at Mar 28, 2023
Medium
1 vote
425 runs
0 comment
Explain the difference between overriding and overloading in OOP.
IT Architect
OOP
methods
inheritance
at Mar 28, 2022
Easy
1 vote
388 runs
0 comment
How to apply the principle of encapsulation in OOP?
IT Architect
OOP
encapsulation
visibility
at Mar 28, 2022
Medium
1 vote
116 runs
0 comment
How to add two vectors in a class Vector2D in OOP
IT Architect
OOP
operator overloading
classes
at Mar 28, 2022
Medium
0 vote
422 runs
0 comment
How to instantiate objects with a type which is derivated from an abstract type in OOP
IT Architect
OOP
design pattern
abstract
at Mar 28, 2022
Easy
0 vote
390 runs
0 comment
Encapsulation rule in Object-Oriented Programming
IT Architect
OOP
encapsulation
classes
at Mar 28, 2022
Easy
0 vote
390 runs
0 comment
Which Design Pattern should I use if I want an object to be notified when another kind of object state changed?
IT Architect
OOP
design pattern
observer
at Mar 28, 2022
Medium
0 vote
389 runs
0 comment
What does this code return ? public class A { public void talk() { echo "Hello my name is A" } } public class B extends A { public void talk() { echo "Hello my name is B" } } B b = new B(); A a = b; B b2 = (B) a; b2.talk();
IT Architect
OOP
inheritance
polymorphism
at Mar 28, 2022
Samuel
Samuel
Samuel
Samuel
Samuel
Samuel
Samuel
Samuel
Samuel