NEB Class 12 · Past paper
The complete NEB Class 12 2081 exam paper for Computer Science, all 10 questions with solved model answers.
Tap a question to open its answer.
Evaluate the advantages of DBMS compared to traditional file-based data storage systems.
How does Second Normal Form (2NF) differ from First Normal Form (1NF), and what are the key benefits of achieving 2NF in database design ? Explain.
Write a JavaScript function that checks if a number is even or odd and print the result.
What is purpose of the mysqli_connect ( ) function in PHP ? Describe its usage and parameters.
The mysqli_connect() function in PHP is used to open a connection between a PHP script and a MySQL database server, so that the script can later run queries against that database.
Its general usage is:
$conn = mysqli_connect($server, $username, $password, $database);
It normally takes four parameters:
"localhost"."root".The function returns a connection object (or false on failure) which is then passed to other mysqli_* functions such as mysqli_query() to actually send SQL commands. If the connection fails, mysqli_connect_error() can be used to retrieve the error message.
Write short note on class and object in OOPs with a real-word example.
Class: a class is a blueprint or template that defines the properties (data members) and behaviors (methods) that its objects will have, without itself occupying memory for actual data. It only describes what an object of that type will look like.
Object: an object is a specific instance of a class, created in memory, that has its own actual values for the properties defined by the class and can call the methods defined in that class.
Real world example: Car can be defined as a class with properties such as brand, color and speed and methods such as start() and stop(). A specific car such as "a red Toyota" is then an object of the Car class, with brand = "Toyota" and color = "red". Many different objects (many actual cars) can be created from the same Car class, each with its own values but sharing the same structure and behavior defined by the class.
How do various requirement gathering techniques help in achieving a careful grasp of user needs and system requirements during SDLC's analysis phase ?
Give five examples of AI applications in the education.
How does the star network topology differ from the bus network topology, in terms of its architectural layout and data transmission methodology in modern computing environments ?
Write a C program that uses structures to represent details of five books (title, author, publisher and price) and prints them out.
Discuss the concept of binary file handling in C programming and explain how putw ( ) and getw ( ) functions facilitate binary input/output operations. Give examples.
The mysqli_connect() function in PHP is used to open a connection between a PHP script and a MySQL database server, so that the script can later run queries against that database.
Its general usage is:
$conn = mysqli_connect($server, $username, $password, $database);
It normally takes four parameters:
"localhost"."root".The function returns a connection object (or false on failure) which is then passed to other mysqli_* functions such as mysqli_query() to actually send SQL commands. If the connection fails, mysqli_connect_error() can be used to retrieve the error message.