Sub Code 4281 'A' NEB GRADE XII 2079 ( 2022 ) Computer Science New Course ( For regular students ) Candidates are required to give their answers in their own words as far as practicable . The figures in the margin indicate full marks. Time : 2 hrs . Full Marks : 50 Attempt all the questions . Group ' A ' Rewrite the correct options of each questions in your answer sheet 9×1=9
- Which of the following SQL statement is used to DELETE rows from a database table ?
- DELETE
- REMOVE
- DROP
- CLEAR
- A field that is used to uniquely define a particular record in a table is called :
- Primary Key
- Entity
- Relationship
- Constraints
- What does " MAC " stands for in MAC Address ?
- Mandatory Access Control
- Media Access Control
- Micro Access Control
- Media Access Certificate
- What is the correct syntax for referring to an external JavaScript script ?
- < script src = " myscript.js " > < / script >
- < script href = " myscript.js " > < / script >
- < js href = " myscript.js " > < / js >
- < js src = " myscript.js " > < / js >
- Which of the following is the correct way of defining a variable in PHP ?
- A ) $variable name = value ;
- B ) $variable_name = value ; C ) $variable_name = value D ) $variable name as value ;
- What is the output of C program ?
- A) 25 25 B) 1234 1234 C ) 25 1234 D ) 1234 25
- Which feature of OOP is illustrated the code reusability ?
- A ) Polymorphism B ) Abstraction C ) Encapsulation D ) Inheritance
- Which of following is the discovering requirement from a user in the requirement collection process
- A) Feasibility study B) Requirement Elicitation C) Requirement Specification D) Requirement validation
- What devices are detecting and responding to changes in an environment that are embedded in smart phones and an integral part of the Internet of Things ( IoT ) ?
- A) Wi - Fi B) Barcode C) RFID D) Sensors Group ' B ' Short answer questions 5x5 = 25
- Differentiate the centralized and distributed database system . OR What are the purposes of normalization ? Give an example of 2NF .
- Write a program to find the factorial of any given number using Javascript . OR How do you fetch data from database in PHP and display it in form ? Describe .
- Compare the OOPs and procedural programing language .
- What are the major activities performed to design the software ? Describe .
- Explain the popular five - application areas of AI . Group ' C ' Long answer questions 8x2 = 16
- Compare the star and ring topology with pros and cons . Which of data communication cable is more appropriate to design the local area network ? Describe . 5 + 3
- What is structure ? Write a program to input roll , name and age of 5 students and display them properly using structure . ( 2 + 6 )
void main ()
{
int b = 25 ;
// b memory location = 1234 ;
int *p ;
p = & b ;
printf ( " % d % d " , &b , p ) ; }
#include<stdio.h>
struct student
{
int roll;
char name[30];
int age;
}s[5];
int main()
{
int i;
for(i=0;i<5;i++)
{
printf("Enter student roll,name and age : ");
scanf("%d%s%d",&s[i].roll,s[i].name,&s[i].age);
}
printf("-------Output-------\n ");
for(i=0;i<5;i++)
{
printf("%d\t%s\t%d\n",s[i].roll,s[i].name,s[i].age);
}
return 0;
}
OR
Write a C program to enter ID , employee_name , and post of the employee and store them in a data file named " emp.txt " . Display each record on the screen in an appropriate format .
The End