0% found this document useful (0 votes)
20 views4 pages

STD 10

Uploaded by

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

STD 10

Uploaded by

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

SSGV

Date : 24-12-2024 STD 10 Computer Total Mark : 50


Time : 45 Minute Weekly Test

* Choose the right answer. [50]

1. The syntax of header file is _______.


(A) # Include <filename.e> (B) define <filename.h>
(C) #include <filename.h> (D) define <filename.c>

2. C is a _______language.
(A) structured (B) portable
(C) middle level and higher level (D) all of the given
3. Which of the following is/are included in the optional section of C program?
(A) Documentation (B) Symbolic Constant Definition
(C) File Include Section and Global (D) All of the given
Variable Declaration
4. In C language, comments are enclosed within________.
(A) / and/ (B) < and > (C) /* and */ (D) * and*
5. The pre-processor directive #define is used to define which of the following in
C?
(A) String constant. (B) Symbolic constant
(C) Integer constant (D) A character
6. In C language. symbolic constant is generally written using ______.
(A) include (B) # define (C) main (D) none of the
given
7. The extension of header file is________.
(A) A head (B) header (C) h (D) none of the
given
8. Each C program starts with _________statement.
(A) #define PI 3.14 (B) #include (C) Include <> (D) none of the
<stdio.h> given
9. How many types of variables can be used in a C program?
(A) 2 (B) 3 (C) 4 (D) 5
10. C variables are governed by ________.
(A) type (B) name (C) scope (D) all of the given
11. The global variables are defined _________.

Page 1
(A) within { } (B) before defining (C) after the end of (D) none of the
main () main ( ) given
12. The execution of C program starts from _______.
(A) #include (B) # define PI 3.14 (C) main ( ) (D) All of the given
<stdio.h>
13. _______of the following is a user defined function.
(A) main (B) printf ( ) (C) scanf ( ) (D) #define PI 3.14

14. The functions already available in C that a user can use in his or her program
are known as ________functions.
(A) In-built (B) Library (C) User defined (D) A or B
15. C statements ends with_______ sign.
(A) : (B) : (C) , (D) >
16. What is the extension of C source code?
(A) src (B) .c (C) exe (D) csre
17. Which of the following is an extension of C program file?
(A) c (B) h (C) s (D) t

18. Which of the following converts a source program into machine language
program?
(A) Compiler / (B) Loader (C) Linker (D) All of the given
translator

19. The source code converted into machine language program by compiler is
known as _______.
(A) Object code (B) Object program (C) A or B (D) Executable code

20. The default extension of object code is________.


(A) c (B) exe (C) .obj (D) o

21. _______is used to link the object code with the library functions giving executable
program or code.
(A) Compiler (B) Loader (C) Linker (D) D All of the
given

22. Executable code is loaded on to memory by a program called _______along with


the required data.
(A) linker (B) compiler (C) text editor (D) loader

23. _______is used as a compiler for C program.


(A) gcc (B) cgc (C) ccg (D) BeiTE
24. Which of the following C character categories does the symbol ‘=’ belong?

Page 2
(A) A Letters (B) White spaces (C) Special (D) Digits
Characters

25. ________of the following is/are pre-processor directive.


(A) # include (B) #define (C) # function (D) Both A and B

26. C language was derived from_______.


(A) BCPL (B) ICPL (C) IPCL (D) SGML

27. _________ value can be stored in a variable declared using int keyword.
(A) A Positive (B) Negative (C) A or B (D) Real
28. Which of the following refers to size of memory allocated to int as per
gcc compiler?
(A) 2 (B) 4 (C) 6 (D) 8
29. Signed int data type has a range of __________.
(A) (-32767 to +32768) (B) (-2147483648 to +2147483647)
(C) (0 to 2147483647) (D) (0 to 4294967295)
30. In C, ________keyword is used along with int to increase the range of integer
numbers higher than +2147483647.
(A) unsigned (B) long (C) float (D) double

31. gcc compiler allocates _________ bytes of memory to the variable declared using
long int.
(A) 8 (B) 6 (C) 4 (D) 2

32. Long int population; will occupy _______bytes in computer's memory.


(A) 4 (B) 16 (C) 10 (D) 8

33. unsigned int has a range of _______.


(A) (-32767 to (B) (0 to (C) (O to (D) (-2147483648 to
+32768) 4294967295) 2147483647) +2147483647)

34. Which of the following value cannot be stored in an integer identifier?


(A) A-99 (B) 99 (C) 999 (D) 99.99

35. Which of the following refers to size of memory allocated to float as per gcc
compiler?
(A) 1 (B) 2 (C) 4 (D) 6
36. The increase range of double numbers _______ is used as prefix to double.
(A) unsigned (B) long (C) wide (D) twice

37. 2 is a/an in ______0.9550e2.


(A) power (B) exponent (C) square (D) square root

38. Keyword char occupies ______byte of memory space

Page 3
(A) 4 (B) 2 (C) 1 (D) 3
39. The signed char has a range of_______.
(A) (-128 to +127) (B) (-32768 to (C) O to 256 (D) 0 to 255
32767)

40. Each character is associated with an integer value called_______.


(A) ANSI (B) ANCI (C) ASCII (D) CALC

41. The full form of ASCII is_______.


(A) American Standard Code for Information Interchange
(B) American Subsidiary Code for Information Interchange
(C) Australian Standard Code for Information Interchange
(D) American Standard Cascading for Information Interchange
42. ________ is/are an example/s of character data.
(A) 2 (B) ‘M’ (C) Both A and B (D) "M"

43. The ASCII value of blank space is_______.


(A) 2 (B) 32 (C) 42 (D) 50

44. The ASCII value of character ‘2’ is_______.


(A) 2 (B) 32 (C) 42 (D) 50

45. The data having no void value is known as_______.


(A) Null (B) Nill (C) Empty (D) Dull

46. _______ is used when we don't want a function to return a value.


(A) A noninteger (B) nodata (C) null (D) void

47. _______data type is used as prefix to function name.


(A) void (B) int (C) Boat (D) char

48. _______ statement tells the compiler to exit from the function body
(A) } (B) return 0 (C) quit (D) end

49. When C program is written using ________, there is no need write ‘ return 0;’
(A) { (B) void (C) main (D) void main ( )
50. Each data type is allocated a fixed memory space in C and is denoted by _______.
(A) A constant (B) byte (C) variable (D) data type
----- -----

You might also like