ZScaler | Senior Software Engineer | Bangalore | Awaited
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-06-20Added By Anonymous
Source: Link
ZScaler | Senior Software Engineer | Bangalore | Awaited
- Products - Interview(Windows C++ Developer): June:2022 ## Cloud Security Products 1. ZScaler Internet Access 2. ZScaler Cloud Protection 3. ZScaler Deception ### Interview:June2022 #### Round-1 - Project Discussion - C++ Code: Count in a file - single line comment - Multi line comment #### Round-2 - Project Discussion - Predict Output questions: ``` //Question-1 #include<iostream> #include<thread> using namespace std; int x=0; void fun() { for (int i=0;i<1000;++i){ x++; } } int main(){ thread t1(fun); thread t2(fun); t1.join(); t2.join(); cout << x; //Why 2000 everytime } //Question-2 int main() { int s = 1; char *p = (char*)&s; cout << (int)*(p+1); //Why 0 everytime } //Question-3: value of *c on Big Endian system and why? int main(){ unsigned int i = 1; char *c = (char*)&i; if (*c) cout << "Little Endian"; else cout << *c; //What it will print on Big endian system } ```
- Products - Interview(Windows C++ Developer): June:2022 ## Cloud Security Products 1. ZScaler Internet Access 2. ZScaler Cloud Protection 3. ZScaler Deception ### Interview:June2022 #### Round-1 - Project Discussion - C++ Code: Count in a file - single line comment - Multi line comment #### Round-2 - Project Discussion - Predict Output questions: ``` //Question-1 #include<iostream> #include<thread> using namespace std; int x=0; void fun() { for (int i=0;i<1000;++i){ x++; } } int main(){ thread t1(fun); thread t2(fun); t1.join(); t2.join(); cout << x; //Why 2000 everytime } //Question-2 int main() { int s = 1; char *p = (char*)&s; cout << (int)*(p+1); //Why 0 everytime } //Question-3: value of *c on Big Endian system and why? int main(){ unsigned int i = 1; char *c = (char*)&i; if (*c) cout << "Little Endian"; else cout << *c; //What it will print on Big endian system } ```