Company: Applogic networks_Software engineer intern_Oncampus_21july

Difficulty: medium

Problem Statement

This set contains six independent multiple-choice questions from the assessment, covering C++, operating systems, probability, Java, data structures and computer networks. Each question is self-contained. How your answer is graded: your program reads no input. Print the option number you chose for each of the six questions, one per line, in order Q1 … Q6. Q1 (C++). What is the output of the code given below? #include <iostream> using namespace std; class A { int x; void print() { cout<<" X = "<<x; } friend void call_print(); }; void A :: call_print() { A a; a.print(); } int main() { call_print(); return 0; } X=0 Compile Time Error Runtime error Garbage Value Q2 (Operating Systems). A sequential access file has fixed-size 25-byte records. Assuming the first record is record 1, the first byte of record 8 will be at what logical location? 176 175 200 201 Q3 (Probability). A learning app assigns a student to one of three practice modes: A, B and C. The probabilitie

More Applogic networks_Software engineer intern_Oncampus_21july OA questionsInterview experiences