55 Questions
In C++ programming, a variable which stores a reference to another variable is called
Pointer
A program that translates a high-level language like C++ to a machine language is called a _____
Compiler
In C++ programming, assume that the value of the variable A is 0 and the value of the variable B is 10. Which one of the following alternatives is false?
(A > 10) && (x < y)
Which one of the following formats is correct about functions in structural Programming?
Type name ( parameter1, parameter2,...) {statement }
Which of the following is a valid function call (assuming the function add exists & have two parameters)?
add(a,b);
A function is said to be a recursive function__________?
If the function calls itself
What will be the return type of a function, if the function does not have a return value?
Void
____ is a header file which permits writing of data to a file.
ofstream
Which one of the following statements are true?
All are correct
_________ a Variable that is available anywhere within your program.
Global Variable
If a class is named Student, the class constructor name is__________..
Student
A visibility modifier that makes methods and data fields accessible only from within its own class is
Private
The keyword used to create subclass/derived class in inheritance is
Extends
Which of the following is not a valid variable in java?
A@2$
A blueprint of an object is called ________.
Class
It defines how and where data are organized in physical data storage
Internal Schema
During modeling your data, Entity Relationship is applied at
Conceptual database
Criteria that should not be considered when evaluating or assessing requirement analysis?
Speed
The SQL command that you use to define the primary key for an existing table called 'Employee' with the primary column as 'empid'?
ALTER TABLE Employee ADD PRIMARY KEY (empid)
While checking the normalization process, the problem that doesn’t exist on transitive dependency is
Revoke Anomaly
You need to produce a report for mailing labels for customers. The mailing label must have only the customer name and address. The CUSTOMERS table has these columns: ID, NAME, ADDRESS, PHONE. Which SELECT statement accomplishes this task?
SELECT name, address FROM customers;
If the maximum cardinality is equal to 1 in both directions of a relationship, then it is classified as:
One-to-one
What is the preferred way for adding a background color in HTML?
What is the method used to get the result from the form data sent with both GET and POST?
A & B
Which of the following is an optional parameter while using mysqli_connect() method?
Password
From the following list, choose the most appropriate update statement
UPDATE student SET name='abel' where ID='123';
When does a page fault occur?
The page does not present in memory.
Which of the following is a condition that causes deadlock?
All of these
What is an operating system?
All of the above
Which CPU scheduling algorithm allocates the CPU first to the process that requests the CPU first?
First-come, first-served scheduling
What is the ready state of a process?
When the process is unable to run until some task has been completed
A set of processes is in a deadlock if ________?
Each process is blocked and will remain so forever
In Operating Systems, which of the following are CPU scheduling algorithms?
All of the mentioned
In which of the storage placement strategies, is a program placed in the largest available hole in the main memory?
Worst fit
A measurement that defines the level of inter-dependability among modules of a program is ________.
Coupling
Which of the following are Advantages of modularization in software design?
Program can be divided based on functional aspects
Which of the following is not an element of Requirement Engineering Process?
Software Requirement Design
Which type of test determines if the system meets all the requirements (functional and nonfunctional)?
Acceptance Test
How is generalization implemented in Object-Oriented software engineering?
Inheritance
All of the following are required to develop an effective test except:
Skill to a specific programming language
Use case descriptions commonly contain:
Precondition, main scenario, alternative scenarios
Which document is created by a system analyst after the requirements are collected from different stakeholders?
Software Requirement Specification
Choose the incorrect statement in terms of Objects.
Objects can't manage themselves
Which mechanism allows several objects in a class hierarchy to have different methods with the same name?
Polymorphism
________is a process that translates system specifications into a formal or semi-formal model.
Design
Which of the following is a disadvantage of Object-Oriented Design?
Objects are difficult to maintain
If a grammar produces more than one leftmost derivation for a sentence, it is called:
Ambiguous grammar
The intersection of a context-free language and a regular language is ________
context-free
Which one of the following is not a part of a Turing machine?
Head
The output of a lexical analyzer is ________
A set of tokens
Which of the following is NOT a primary role of a code generator in compiler design?
Declaration of variables
Which one of the following is different from the others?
Tree
When is the type checking usually done?
During syntax analysis
Which of the following can NOT represent target Code?
Byte Code
Which of the following is NOT an important property of intermediate code representation?
Register allocation
Study Notes
Programming Concepts
- A variable that stores a reference to another variable is called a pointer.
- A program that translates a high-level language like C++ to a machine language is called a compiler.
- A recursive function is a function that calls itself.
- If a function does not have a return value, its return type is Void.
- ofstream is a header file that permits writing of data to a file.
- A global variable is a variable that is available anywhere within a program.
Object-Oriented Programming
- A class is a blueprint of an object.
- The constructor of a class is a special method that is called when an object is created.
- Private is a visibility modifier that makes methods and data fields accessible only from within its own class.
- The keyword used to create a subclass/derived class in inheritance is extends.
Databases
- Internal Schema defines how and where data are organized in physical data storage.
- Entity Relationship is applied at the conceptual database design level.
- The SQL command to define the primary key for an existing table is ALTER TABLE.
- Normalization is a process of organizing the fields and tables of a database to minimize data redundancy and dependency.
Computer Architecture
- Von-Neumann Architecture is a type of computer architecture that uses a single bus to transfer data and instructions.
- Cache memory is a small, fast memory that stores frequently used data or instructions.
- Virtual memory is a technique that uses both hardware and software to enable a computer to use more memory than is physically available.
Data Communication
- OSI model is a 7-layered framework for designing and implementing computer networks.
- Segmentation of a data stream happens at the Transport layer of the OSI model.
- Fiber-optic cable is a type of cable that is not susceptible to Electromagnetic Interference (EMI).
Algorithms
- Dynamic Programming is a method of solving complex problems by breaking them down into simpler subproblems.
- Greedy Algorithm is a method of solving problems by making the locally optimal choice at each step.
- Breadth-First Search (BFS) is a graph traversal algorithm that traverses a graph in a breadthward motion.
Web Development
- Static website is a website that does not change its content unless the actual webpage file is edited.
- Server-side scripting language is a programming language that runs on a web server to generate dynamic web pages.
- JavaScript is a client-side scripting language that is used to create interactive web pages.
Operating Systems
- Deadlock is a situation where two or more processes are blocked, waiting for each other to release resources.
- Page fault occurs when a process requests a page that is not in memory.
- Scheduling algorithms are used to allocate the CPU to different processes.
- Modularization is a technique of breaking down a program into smaller, independent modules.
Software Engineering
- Requirements engineering is the process of defining, analyzing, documenting, and maintaining the requirements of a software system.
- System testing determines if a system meets the entire requirements (functional and nonfunctional).
- Aggregation, composition, and generalization are mechanisms of object-oriented design.
Let me know if you'd like me to expand on any of these topics!
This quiz covers basic concepts and terminology in C++ programming, including variables, pointers, and compilers.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free