Computer Science MCQs · C Programming Which type does the sizeof operator yield in C? A size_t, an unsigned type Correct answer B int, a signed type C long, a signed type D unsigned char, one byte MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing An SLA in cloud computing is: A a software licensing and support agreement with the vendor B a security audit log entry generated by the provider C a storage location in the cloud region D a contract defining the guaranteed level of service Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing In a serverless model, the cloud provider is responsible for: A designing the database schema B provisioning and scaling the underlying servers Correct answer C managing user accounts and their passwords D writing the application code itself MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Auto-scaling in the cloud means: A billing customers strictly by the hour B encrypting stored data at rest C adjusting resources automatically to match demand Correct answer D replicating data across multiple cloud regions MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Amazon S3 is a service for: A object storage Correct answer B relational databases C virtual networking D identity management MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Kubernetes is used to: A orchestrate containers across a cluster Correct answer B compile source code into binaries C store backups in object storage D design user interfaces for apps MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing The ability of a cloud service to add or remove resources automatically with demand is called: A virtualisation B elasticity Correct answer C multi-tenancy D federation MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Server virtualisation allows a single physical server to: A host several isolated virtual machines Correct answer B run without an operating system C increase its clock speed D replace the need for storage MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Which of the following is an example of Software as a Service (SaaS)? A Windows Server licence B Docker Engine C Gmail Correct answer D Amazon EC2 MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Platform as a Service (PaaS) mainly provides: A physical data centre space for hosting servers B raw virtual machines without any platform layer C a managed environment for deploying applications Correct answer D end-user software delivered over the internet MCQSEXAM Show answer Read explanation
Computer Science MCQs · Cloud Computing Which of the following is an Infrastructure as a Service (IaaS) offering? A Google Docs B Amazon EC2 Correct answer C Gmail D Heroku MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming A friend function of a class can: A only access its public data members B replace the class constructor entirely C access its private and protected members Correct answer D inherit publicly from its base class MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming A class containing at least one pure virtual function is called: A a template class B an abstract class Correct answer C a friend class D a nested class MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming Function overloading in C++ means: A a function that calls itself repeatedly at run time B the same function declared inside two classes C replacing a base-class function entirely D functions with the same name but different parameter lists Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming In C++, cout is an object of which class? A iostream B ostream Correct answer C istream D fstream MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming An STL map stores elements as: A versions of the same object B key-value pairs sorted by key Correct answer C a contiguous array of values D unique values sorted ascending MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming Which keyword introduces a generic function or class in C++? A generic B typename class C virtual D template Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming In C++, new and delete are used for: A type casting between related classes B dynamic allocation and release of objects Correct answer C exception handling during program run time D reading and writing files on a disk MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming Which statement about a C++ reference is correct? A It can be left uninitialised B It can be reassigned to another variable later C It stores a copy of the object D It must be initialised and cannot be rebound Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming The :: operator in C++ is called the: A scope resolution operator Correct answer B member access operator C conditional operator D insertion operator MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming The default access specifier for members of a class in C++ is: A public B protected C internal D private Correct answer MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming Which STL container behaves like a dynamically resizable array? A vector Correct answer B map C set D stack MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming Declaring a function virtual in C++ enables: A multiple inheritance of data B automatic memory management C runtime polymorphism Correct answer D compile-time polymorphism MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming The destructor of a class named Account is written as: A delete Account() B destructor Account() C ~Account() Correct answer D Account~() MCQSEXAM Show answer Read explanation
Computer Science MCQs · C++ and Object-Oriented Programming In C++, a constructor must have: A the same name as the class Correct answer B the name 'init' C a return type of void D the keyword constructor MCQSEXAM Show answer Read explanation