0% found this document useful (0 votes)
7 views

X Computer P-1

Uploaded by

syedaunzila896
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

X Computer P-1

Uploaded by

syedaunzila896
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1ST SEMESTER 2nd MONTHLY EXAMINATION 2024-25

Total Marks: 15
Class: X
Name: Time Allowed:
Father’s Name: Subject: COMPUTER
Seat # : Block# : Date: 00-10-2024

1. Users write the program in which language?


(a) Low level language (b) high level language
(c) Machine language (d) decimal format
2. This type of error is detected by compiler:
(a) runtime (b)logical (c)syntax (d)none of theme
3. Software that translates assembly language into machine language is a/an:
(a) binary translator (b) assembler (c) compiler (d) link-loader
4. Which of following type of error is detected by a language translator?
(a) program design (b) logic errors
(c) arithmetic errors (d) syntax errors
5. Float data type consists of the following:
(a) Numbers only (b) numbers and decimal point
(c) special characters (d) alphabets
6. Integer reserves ______bytes in memory:
(a) 2 (b) 4 (c) 8 (d) 32
7. An identifier cannot consist more than characters:
(a) 30 (b) 31 (c) 33 (d) 35
8. This is statement terminator in C:
(a) { } (b) ; (c) “ (d) none of these
9. IDE stands for:
(a) International development environment
(b) integrated development environment
(c) Important design environment
(d) None of above
10. Double floating point reserves______ bytes in memory:
(a) 4 (b) 6 (c) 8 (d) 16
11. There are basic types of constant:
(a) 2 (b) 4 (c) 6 (d) 7
12. An integer constant must not have______
(a) Positive (b) negative (c) decimal point (d) number
13. ______is a program that is coverts high language to machine language
(a) Assembler (b) compiler (c) linker (d) debugger
14. There is a total of______ reserved words in C++
(a) 95 (b) 80 (c) 81 (d) 90
15. C++ is _________
(a) Machine level language (b) High level language
(c) Low level language (d) N.O.T
16. C++ was created by ______
(a) Bjarne Stroustrup (a) charles babbage
(c) john napier (d) Wilhelm Leibniz
17. What is range of integer?
(a) -2147483648 to 2147483647 (b) -127 to 127
(c) both a & b (d) N.O.T
18. How many types of errors mentioned in your book?
(a) 1 (b) 2 (c) 3 (d) 4

19. What is range of character?


(a) -127 to127 (b) -2147483648 to 2147483647
(c) both a & b (d) N.O.T
20. How many types of translator?
(a) 3 (b) 4 (c) 2 (d) 1
21. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
char R1= ‘A’, Y2=’F’, Y3=’A’, Y4=’Q’, Y5=’U’, Y6=’E’ ;
cout<<R1;
return 0;
}
a)AFAQUE b) N.O.T c) ERROR d) 435

22. What will be the output of the following C++ code?


#include <iostream>
using namespace std;
int main(void)
{
int U1= ‘A’, Y2=’F’, Y3=’A’, Y4=’Q’, Y5=’U’, Y6=’E’ ;
cout<<U1;
return 0;
}
a)AFAQUE b) N.O.T c) ERROR d) 435
23. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
char R1= ’Q’;
cout<<R1;
return 0;
}
a)AFAQUE b) N.O.T c) ERROR d) 435
24. The output of the following C++ code?
#include <iostram>
using namespace std;
int main(void)
{
char R1= ‘A’;
cout<<R1;
return 0;
}
a)A b) N.O.T c) ERROR d) 65
25. The output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
char R1= ‘89’;
cout<<R1;
return 0;
}
a)89 b) N.O.T c) ERROR d) Y
26. The output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
int R1= ‘89’;
cout<<R1;
return 0;
}
a)89 b) N.O.T c) ERROR d) Y
27. The output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
char G1= 89;
cout<<G1;
return 0;
}
a)89 b) N.O.T c) 90 d) Y
28. The output of the following C++ code?
#include <iostream>
using namespace std;
int main(void)
{
char G1= 90;
cout<<G1;
return 0;
}
a)89 b) N.O.T c) 90 d) Z
29. Select one of the true statement for a compiler:
a) Input of the compiler is source program
b) It translated the source code into object code as a whole
c) The out put of the compiler is object code
d) All of above
30. Which function take input from the user ?
a) count b) puts c) cin d) cout

You might also like