Company: Deloitte IITK
Difficulty: medium
In C++, which of the following is the correct signature for overloading the post-increment operator for a class named 'Test'? Test operator++() Test& operator++() Test operator++(int) Test& operator++(int) Given the SQL tables TableA and TableC (where TableC has a foreign key on attr1 referencing TableA with ON DELETE CASCADE), which of the following queries will execute successfully? Query (i): INSERT INTO TableA VALUES ('d', 'dd', 'ddd'); Query (ii): DELETE FROM TableA WHERE attr1 = 'a'; Only Query (i) Only Query (ii) Both Query (i) and Query (ii) Neither Query (i) nor Query (ii) In Microsoft Word, which feature should be used to automatically repeat a user's name and a dynamic page number on every page of a 100-page document? Mail Merge Header and Footer Watermark Macros What is the result of the following JavaScript-like logic? let i = 5, j = 10, k = 10; let n; // Based on the provided example logic: i=5, j=5, k=5 n = (i == j) ? k : j; print(n); 0 5 10 undefined Which of th