0% found this document useful (0 votes)
21 views6 pages

2024 12 23 08 50 Solution

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)
21 views6 pages

2024 12 23 08 50 Solution

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/ 6

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>

Ans : #include
2. C is a _______language.
(A) structured (B) portable
(C) middle level and higher level (D) all of the given
Ans : 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

Ans : Documentation
4. In C language, comments are enclosed within________.
(A) / and/ (B) < and > (C) /* and */ (D) * and*
Ans : /* 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
Ans : Integer constant
6. In C language. symbolic constant is generally written using ______.
(A) include (B) # define (C) main (D) none of the
given
Ans : main
7. The extension of header file is________.
(A) A head (B) header (C) h (D) none of the
given
Ans : h
8. Each C program starts with _________statement.

Page 1
(A) #define PI 3.14 (B) #include (C) Include <> (D) none of the
<stdio.h> given
Ans : #include
9. How many types of variables can be used in a C program?
(A) 2 (B) 3 (C) 4 (D) 5
Ans : 2
10. C variables are governed by ________.
(A) type (B) name (C) scope (D) all of the given
Ans : scope
11. The global variables are defined _________.
(A) within { } (B) before defining (C) after the end of (D) none of the
main () main ( ) given

Ans : before defining main ()


12. The execution of C program starts from _______.
(A) #include (B) # define PI 3.14 (C) main ( ) (D) All of the given
<stdio.h>

Ans : main ( )
13. _______of the following is a user defined function.
(A) main (B) printf ( ) (C) scanf ( ) (D) #define PI 3.14
Ans : main
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
Ans : A or B
15. C statements ends with_______ sign.
(A) : (B) : (C) , (D) >

Ans : :
16. What is the extension of C source code?
(A) src (B) .c (C) exe (D) csre

Ans : .c
17. Which of the following is an extension of C program file?
(A) c (B) h (C) s (D) t
Ans : (C) s

Page 2
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
Ans : Compiler / 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

Ans : A or B
20. The default extension of object code is________.
(A) c (B) exe (C) .obj (D) o

Ans : .obj
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
Ans : Linker
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
Ans : loader
23. _______is used as a compiler for C program.
(A) gcc (B) cgc (C) ccg (D) BeiTE

Ans : gcc
24. Which of the following C character categories does the symbol ‘=’ belong?
(A) A Letters (B) White spaces (C) Special (D) Digits
Characters

Ans : Special Characters


25. ________of the following is/are pre-processor directive.
(A) # include (B) #define (C) # function (D) Both A and B

Ans : #define
26. C language was derived from_______.
(A) BCPL (B) ICPL (C) IPCL (D) SGML
Ans : BCPL
27. _________ value can be stored in a variable declared using int keyword.

Page 3
(A) A Positive (B) Negative (C) A or B (D) Real
Ans : A or B
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

Ans : 4
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)
Ans : (-2147483648 to +2147483647)
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

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

Ans : 8
32. Long int population; will occupy _______bytes in computer's memory.
(A) 4 (B) 16 (C) 10 (D) 8
Ans : 8
33. unsigned int has a range of _______.
(A) (-32767 to (B) (0 to (C) (O to (D) (-2147483648 to
+32768) 4294967295) 2147483647) +2147483647)

Ans : (-2147483648 to +2147483647)


34. Which of the following value cannot be stored in an integer identifier?
(A) A-99 (B) 99 (C) 999 (D) 99.99

Ans : 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
Ans : 4
36. The increase range of double numbers _______ is used as prefix to double.
(A) unsigned (B) long (C) wide (D) twice

Page 4
Ans : long
37. 2 is a/an in ______0.9550e2.
(A) power (B) exponent (C) square (D) square root
Ans : exponent
38. Keyword char occupies ______byte of memory space
(A) 4 (B) 2 (C) 1 (D) 3

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

Ans : -128 to +127


40. Each character is associated with an integer value called_______.
(A) ANSI (B) ANCI (C) ASCII (D) CALC

Ans : ASCII
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

Ans : American Standard Code for Information Interchange


42. ________ is/are an example/s of character data.
(A) 2 (B) ‘M’ (C) Both A and B (D) "M"

Ans : Both A and B


43. The ASCII value of blank space is_______.
(A) 2 (B) 32 (C) 42 (D) 50

Ans : 32
44. The ASCII value of character ‘2’ is_______.
(A) 2 (B) 32 (C) 42 (D) 50

Ans : 50
45. The data having no void value is known as_______.
(A) Null (B) Nill (C) Empty (D) Dull

Ans : Empty
46. _______ is used when we don't want a function to return a value.
(A) A noninteger (B) nodata (C) null (D) void
Ans : void
47. _______data type is used as prefix to function name.
(A) void (B) int (C) Boat (D) char
Ans : void
48. _______ statement tells the compiler to exit from the function body
(A) } (B) return 0 (C) quit (D) end
Ans : return 0
49. When C program is written using ________, there is no need write ‘ return 0;’
(A) { (B) void (C) main (D) void main ( )

Ans : 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
Ans : byte
----- -----

You might also like