Q: 1 The logical error is also known as
Compile time error
Run time error
Exception
Both (b) and (c)
[ Option D ]
A logical error happens when a program is syntactically correct and runs without crashing, but it produces a wrong output. This type of error is related to poor understanding of programming logic.
Logical errors are occurred during program execution and are often considered along with run-time problems or exceptions in basic programming concepts.
Q: 2 In C language
(1) Array can be a part of structure.
(2) Array stores data of same type.
(3) Array is collection of heterogeneous type element.
(4) Pointer to function is allowed.
Only (1) (2) (3) (4) are correct
Only (1) (2) (4) are correct
Only (1) (2) (3) are correct
Only (2) (3) (4) are correct
[ Option B ]
An array is a collection of homogeneous (same type) elements stored in contiguous memory locations.
A structure is a user-defined data type that can contain different types of data members, including arrays.
A function pointer is a pointer that stores the address of a function, and it is allowed in C.
Q: 3 Exceptions are occurred during
Run time
Compile time
Exceptions are not occurred
Writing time
[ Option A ]
An exception is an unexpected or unwanted problem that happens while a program is running. Exceptions disturb the normal flow of program execution and usually occur due to situations like dividing by zero, invalid input, or accessing unavailable resources.
So, exceptions are generally occurred during run time, when the program is being executed.
Q: 4 Select the statement which is true about gotoxy() function.
No such type of function exists
Use to set the cursor position at desired location
Prototype define in conio.h header file
Both (b) and (c)
[ Option D ]
The gotoxy() function is a console-related function used in C programming (Turbo C). It is used to move the cursor to a specific position on the screen before printing output.
The function gotoxy(x, y) places the cursor at the specified column(x) and row(y) on the console screen. The prototype of gotoxy() is defined in the conio.h header file.
Q: 5 The maximum number of rows print in console window is?
80
25
13
32
[ Option B ]
In traditional C programming environments such as Turbo C or DOS-based consoles, the screen is arranged in a text mode that consists of rows and columns. The standard console screen size is 80 columns (character in each row) wide and 25 rows high, meaning it can display a maximum of 25 lines of text at one time.
Q: 6 Netbeans have visual components to drag and drop front end components, _______ is an example of it.
Debugger
Plugins
Radio Button
Keypad
[ Option C ]
NetBeans IDE (Integrated Development Environment) provides a visual design interface for building the front end of applications. This allows developers to drag and drop UI components onto a form without writing all the code manually.
Radio Button is an example of a front-end component that can be added using this drag-and-drop feature in NetBeans. Other examples include buttons, text fields, checkboxes, labels, and panels.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.