Quiz: Good Programming Practices

Take a quiz on what we have learned about good programming practices.

1

Which is the correct way to define constants in C++?

A)
#define MAX_LENGTH 100000
B)
const int32_t kMaxLength = 100000;
C)
const kMaxLength = 100000;
D)
#const MAX_LENGTH 100000
Question 1 of 50 attempted

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.