computer MCQs
10th • Chapter 01
50 Questions TextBook
1
A software that provides a complete environment to facilitate programmers in writing and executing programs is known as an
C
Integrated Development Environment (IDE) 2
Who is credited with the development of the C language?
3
The process of converting a high-level language program into machine language is called
4
Which of the following is a fundamental component of an IDE that allows writing and editing code?
5
Words that have a predefined meaning in C and cannot be used as variable names are called
6
Which of the following is a valid reserved word in C?
7
The main part of a C program where the execution begins is the
D
variable declaration section 8
What symbol is used to terminate a statement in C?
9
How is a single-line comment denoted in C?
10
Which of the following correctly represents a multi-line comment in C?
11
Values that do not change during the execution of a program are known as
12
Which of the following is an example of an integer constant?
13
A value like 3.14 or -1575.76 is a type of
14
A name given to a memory location to store data that can be changed is called a
15
Which data type is used to store whole numbers in C?
16
How many bytes of memory does a standard `float` data type typically occupy?
17
Which data type is most suitable for storing a single character like 'S'?
18
According to the rules for naming variables in C, which of the following is an invalid variable name?
19
A variable name in C must begin with a
C
Letter or an underscore 20
The process of assigning a value to a variable for the first time is called
21
Which section of a C program includes files like `stdio.h`?
22
The `printf()` function is predefined in which header file?
23
The body of the `main()` function is enclosed within which symbols?
24
The property of C language where `int` is different from `Int` is known as
25
What is the purpose of a debugger in an IDE?
C
To convert code to machine languageD
To design the user interface 26
Java, C++, and Python are examples of
27
What kind of error is generated if the rules or grammar of the programming language are not followed?
28
Which keyword is used to declare a variable that can store values like 23.5?
29
An `unsigned int` data type can store
C
Both positive and negative values 30
How many digits of precision can a `float` data type store?
31
A unique name given to a variable is also known as its
32
Which of the following is a valid way to declare and initialize an integer variable?
33
The set of rules for a programming language is known as its
34
In the C language, `stdio.h` is an example of a
35
Which of the following is NOT a reserved word in C?
36
A character constant in C is enclosed within
37
The term 'GUI' in the context of an IDE stands for
C
General Utility InterfaceD
Graphical User Interface 38
Which company's labs developed the C language?
39
A `char` data type takes up how much memory for storage?
D
Depends on the character 40
Which operator is used for initialization in a variable declaration statement?
41
A compiler translates a source program into a
42
If a variable is declared as `int`, by default it is considered a
43
The range of `signed int` using 4 bytes is approximately
B
-2.1 billion to +2.1 billion 44
What does a text editor in an IDE allow a programmer to do?
A
Compile and run the programB
Write and edit computer programsD
Connect to the internet 45
The actual instructions that perform tasks in a C program are written inside the
B
Body of the main function 46
To use mathematical functions like `sqrt()` or `pow()`, which header file should be included?
47
What is the term for the data that is physically stored inside the computer's memory?
48
A collection of all the necessary tools for programming makes up a
A
Programming environment 49
If you want to declare multiple variables of the same type, like `int a, b, c;`, what separates them?
50
Which of the following is NOT a primary data type discussed in the unit?