NEW
Font size
WorksheetsI-I-Sem. EEE..-Introduction to Programming Mid-I 2023-24
Total questions: 60
Worksheet time: 30mins
What is the smallest unit of information?
Bit
Byte
Block
Nibble
Which of the following is a structured programming technique that graphically represents the detailed steps required to solve a program?
algorithm
flow chart
Psuedocode
Program
Which of the following is an output device?
Monitor
Keyboard
Mouse
Light pen
1GB = ----------------------- how many MBs
1025
1028
1024
1026
Which of the following is an input device?
Plotter
Printer
Monitor
Mouse
Which of the following is the extension of C Program?
.C
.txt
None
.Cpp
Which one is the example of operating system?
Windows
Linux
Mac
All
How many bits--------- for a byte?
4
8
2
16
Identify the keyword?
CPU
USB
BUS
None
Full form of ROM?
Random Only Memory
Random Available Memory
Random Access Memory
Both A and B are correct
The central processing unit is located in the _____?
Hard disk
Memory Unit
Monitor
System Unit
Which one of the following is a valid statement?
int _abc;
int a_bc;;
int $abc;
All
How many bytes does 4 kilobytes represent?
4096
512
1024
8192
What will be the value of "x" after execution?
int x = 0; int y = (++x + x++ );
2
3
0
1
Select which one is used for tab space
\t
\r
\a
\n
What will be the output?
while
(False)
{
Printf("Hello");
}
Print Hello only once
Print Hello Continuously
Compiler Error
Nothing is print
Which keyword is used to terminate from the loop?
continue
while
break
None of the above
Select the valid statement to declare a variable.
int a;
int a=10;
int a=0;
Both B and C
What is the speed of computer measured in?
Nano Seconds
Seconds
Gigahertz
Minutes
Which of the following is not considered hardware?
Operating System
CPU
Keyboard
Hard disk
Algorithm is---------
A process or set of rules to be followed in calculations or other problem-solving operations, especially by a human.
A process or set of rules to be followed to solve numerical problems only.
A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.
A process or set of rules to be followed in to solve logical problems only
A function --------------------------
is a block of statements to perform some specific task
is a fundamental modular unit to perform some task
has a name and can be used multiple times
All the above options are true
The execution of any C program is----
Sequential
Parallel
Multi-threading
None of these
What is the purpose of the "if-else" statement in C?
To execute a block of code repeatedly.
To declare variables and constants.
To test a condition and execute different code based on the result.
To perform mathematical calculations.
What is the correct syntax for an "if-else" statement in C?
if condition { statement1; statement2; } else { statement3; }
if condition then { statement1; } else { statement2; }
if (condition) { statement1; } else { statement2; }
if condition then statement1; else statement2;
The statement that transfers control to the beginning of the loop is called---
break
continue
goto
None of the above
Which of the following is true about nested "if-else" statements?
They are not allowed in C.
The "else" part is mandatory for every "if" statement.
They allow you to test multiple conditions and execute different blocks of code based on the results.
Nested "if-else" statements are only allowed up to two levels deep.
What happens if there is no "else" part in an "if-else" statement?
The program will not compile.
The program will crash at runtime.
If the condition is true, nothing happens; if the condition is false, the program crashes.
If the condition is true, the program executes the code inside the "if" block; if the condition is false, nothing happens.
Who invented C language?
Dennis Ritchie
James Gosling
James Cameron
Dennis Ruther Ford
How many primitive data types are there in C?
6
7
8
9
The smallest integer type is.........
short
int
long
None
1TB = ----------------------- how many MBs
10,48,574
10,48,578
10,48,576
10,48,748
USB full form?
Central Processing Unit
Central Programming Unit
Central Processing Units
Central Programming Units
Which one is the example of operating system?
Windows
Linux
Mac
All
How many bits--------- for a nibble?
4
8
2
16
Identify the keyword?
CPU
USB
BUS
None
Identify the branching statement?
if
if else
nested if else
All
Identify the keyword?
enum
public
exit()
None of the above
Which keyword is used to terminate from the loop?
continue
while
break
None of the above
Select the valid statement to declare and initialize a variable.
int a;
int a=10;
int a=0;
. Both B and C
Identify the translator ---
Compiler
Interpreter
Both A and B
None
Which keyword is used to start the loop from the beginning?
continue
while
break
None of the above
When was C programming developed?
The 1950s
The 1960s
The 1980s
The 1970s
What is the use of print f in c programming?
Helps in the printing of a string on the output screen
Processes the variables in a program
Is a variable type
All of the above
What are float variables?
Integer value
unknown value
Decimal value
All of the above
What are float variables?
Integer value
unknown value
Decimal value
All of the above
Which of the following is not related to c programming?
conio.h
getch()
console.log
All of the above
What is scanf() in c programming?
The layout of an input string
Array
Output function
All of the above
What is the 16-bit compiler allowable range for integer constants?
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
What is required in each C program?
The program must have at least one function.
The program does not require any function.
Input data
Output data
Who is the father of the computer?
Dennis Ritchie
Bill gates
Charles Babbage
Von Neumann
Machine language contains
1’s and 0’s
A-Z
a-z
letters and digits
The heart of the computer is-------------------
memory
I/O devices
BIOS
CPU
The _______ provides pictorial representation of given problem.
Algorithm
Flowchart
Pseudocode
All of these
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
All keywords in C are in------
LowerCase letters
UpperCase letters
Camel Case letters
None
The _______ symbol is used to represent decision in flowchart.
Circle
Rectangle
Diamond
None of these
The _______ symbol is used to represent process in flowchart.
Circle
Rectangle
Diamond
None of these
_________ symbol is used to represent input and output operation in flowchart.
Circle
Rectangle
Diamond
Parallelogram
A character variable can at a time store?
1 character
8 characters
2 characters
none
