Test 1 (Student Copy)
Test 1 (Student Copy)
(10) What will be the output of the program? (Hint marks 48)
#include<stdio.h>
void main ( )
{
int marks;
printf (“ Enter your marks :”);
scanf(“%d”, & marks) ;
if (marks > = 40)
printf(“Congratulation”) ;
}
(a) Pass (b) Fail
(c) congratulation (d) Garbage
(11) What layer of OSI model does data compression?
(a) Network (b) Presentation
(c) Ring Network (d) Physical
(12) What is the output of this C code?
#include <stdio.h>
void main()
{
int n ;
n = 1;
while (n < = 10)
{
printf (%d\n”, n);
n++;
}
}
(a) 1 (b) 10
(c) 1 2 3 4 5 6 7 8 9 10 (d) None of these
(13) Create command is used to create:
(a) Table (b) Report
(c) Query (d) Form
(14) Two or more attributes having different names but same meaning are:
(a) Homonyms (b) Aliases
(c) Synonyms (d) None of these
(15) The order of stack is:
(a) F1FO (b) L1FO
(c) G1GO (d) FIGO
(16) A process of encoding for the purpose of data security is called:
(a) Password (b) Coding
(c) Encryption (d) Pin code
(17) A graphical query tool is known as:
(a) Query Grid (b) Design Grid
(c) Query Form (d) Design Form
(18) Which of the following statements correct about the below program?
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
for(n=1; n<=5;n++)
printf(“%d\t%d\n”, n, n *n);
getch();
}
(a) 1, 2,3,4,5 (b) 1,4,9,16,25
(c) 1,5,10 (d) Both (a) & (b)
(19) In a __________ stream certain characters translations may occur.
(a) Text (b) Binary
(c) Character (d) Both (a) and (b)
(20) Referential integrity is applied on:
(a) Primary key (b) Foreign key
(c) Secondary key (d) Candidate key
(21) What is the output of this C code?
#include <stdio.h>
void main()
{
int x = 97;
int y = sizeof(x++);
printf("X is %d", x);
}
(a) X is 97 (b) X is 98
(c) X is 99 (d) Run time error
(22) What is the output of this C code?
float avg= 98.20;
printf(“Average = %5.2f”, avg);
(a) 98 (b) .20
(c) -98.20 (d) Average = 98.20
(23) Internet surfing is an example?
(a) Simplex (b) Half Duplex
(c) Full Duplex (d) Reverse Duplex
(24) Comment on the output of this C code?
void main()
{
char w1, w2, w3;
w1=’A’;
w2=’B’;
w3=’C’;
printf(“%c %c w3”, w1,w2);
}
(a) A B w3 (b) a b w1
(b) A b w2 (d) a b w4
(25) What is the output of this C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, c;
c = a++ + b;
printf("%d, %d", a, b);
}
(a) a = 1, b = 1 (b) a = 2, b = 1
(c) a = 1, b = 2 (d) a = 2, b = 2