wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

I-I-Sem. EEE..-Introduction to Programming Mid-I 2023-24

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

What is the smallest unit of information?

a)

Bit

b)

Byte

c)

Block

d)

Nibble

2.

Which of the following is a structured programming technique that graphically represents the detailed steps required to solve a program?

a)

algorithm

b)

flow chart

c)

Psuedocode

d)

Program

3.

Which of the following is an output device?

a)

Monitor

b)

Keyboard

c)

Mouse

d)

Light pen

4.

1GB = ----------------------- how many MBs

a)

1025

b)

1028

c)

1024

d)

1026

5.

Which of the following is an input device?

a)

Plotter

b)

Printer

c)

Monitor

d)

Mouse

6.

Which of the following is the extension of C Program?

a)

.C

b)

.txt

c)

None

d)

.Cpp

7.

Which one is the example of operating system?

a)

Windows

b)

Linux

c)

Mac

d)

All

8.

How many bits--------- for a byte?

a)

4

b)

8

c)

2

d)

16

9.

Identify the keyword?

a)

CPU

b)

USB

c)

BUS

d)

None

10.

Full form of ROM?

a)

Random Only Memory

b)

Random Available Memory

c)

Random Access Memory

d)

Both A and B are correct

11.

The central processing unit is located in the _____?

a)

Hard disk

b)

Memory Unit

c)

Monitor

d)

System Unit

12.

Which one of the following is a valid statement?

a)

int _abc;

b)

int a_bc;;

c)

int $abc;

d)

All

13.

How many bytes does 4 kilobytes represent?

a)

4096

b)

512

c)

1024

d)

8192

14.

What will be the value of "x" after execution?

int x = 0; int y = (++x + x++ );

a)

2

b)

3

c)

0

d)

1

15.

Select which one is used for tab space

a)

\t

b)

\r

c)

\a

d)

\n

16.

What will be the output?

while

(False)

{

Printf("Hello");

}

a)

Print Hello only once

b)

Print Hello Continuously

c)

Compiler Error

d)

Nothing is print

17.

Which keyword is used to terminate from the loop?

a)

continue

b)

while

c)

break

d)

None of the above

18.

Select the valid statement to declare a variable.

a)

int a;

b)

int a=10;

c)

int a=0;

d)

Both B and C

19.

What is the speed of computer measured in?

a)

Nano Seconds

b)

Seconds

c)

Gigahertz

d)

Minutes

20.

Which of the following is not considered hardware?

a)

Operating System

b)

CPU

c)

Keyboard

d)

Hard disk

21.

Algorithm is---------

a)

A process or set of rules to be followed in calculations or other problem-solving operations, especially by a human.

b)

A process or set of rules to be followed to solve numerical problems only.

c)

A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.

d)

A process or set of rules to be followed in to solve logical problems only

22.

A function --------------------------

a)

is a block of statements to perform some specific task

b)

is a fundamental modular unit to perform some task

c)

has a name and can be used multiple times

d)

All the above options are true

23.

The execution of any C program is----

a)

Sequential

b)

Parallel

c)

Multi-threading

d)

None of these

24.

What is the purpose of the "if-else" statement in C?

a)

To execute a block of code repeatedly.

b)

To declare variables and constants.

c)

To test a condition and execute different code based on the result.

d)

To perform mathematical calculations.

25.

What is the correct syntax for an "if-else" statement in C?

a)

if condition { statement1; statement2; } else { statement3; }

b)

if condition then { statement1; } else { statement2; }

c)

if (condition) { statement1; } else { statement2; }

d)

if condition then statement1; else statement2;

26.

The statement that transfers control to the beginning of the loop is called---

a)

break

b)

continue

c)

goto

d)

None of the above

27.

Which of the following is true about nested "if-else" statements?

a)

They are not allowed in C.

b)

The "else" part is mandatory for every "if" statement.

c)

They allow you to test multiple conditions and execute different blocks of code based on the results.

d)

Nested "if-else" statements are only allowed up to two levels deep.

28.

What happens if there is no "else" part in an "if-else" statement?

a)

The program will not compile.

b)

The program will crash at runtime.

c)

If the condition is true, nothing happens; if the condition is false, the program crashes.

d)

If the condition is true, the program executes the code inside the "if" block; if the condition is false, nothing happens.

29.

Who invented C language?

a)

Dennis Ritchie

b)

James Gosling

c)

James Cameron

d)

Dennis Ruther Ford

30.

How many primitive data types are there in C?

a)

6

b)

7

c)

8

d)

9

31.

The smallest integer type is.........

a)

short

b)

int

c)

long

d)

None

32.

1TB = ----------------------- how many MBs

a)

10,48,574

b)

10,48,578

c)

10,48,576

d)

10,48,748

33.

USB full form?

a)

Central Processing Unit

b)

Central Programming Unit

c)

Central Processing Units

d)

Central Programming Units

34.

Which one is the example of operating system?

a)

Windows

b)

Linux

c)

Mac

d)

All

35.

How many bits--------- for a nibble?

a)

4

b)

8

c)

2

d)

16

36.

Identify the keyword?

a)

CPU

b)

USB

c)

BUS

d)

None

37.

Identify the branching statement?

a)

if

b)

if else

c)

nested if else

d)

All

38.

Identify the keyword?

a)

enum

b)

public

c)

exit()

d)

None of the above

39.

Which keyword is used to terminate from the loop?

a)

continue

b)

while

c)

break

d)

None of the above

40.

Select the valid statement to declare and initialize a variable.

a)

int a;

b)

int a=10;

c)

int a=0;

d)

. Both B and C

41.

Identify the translator ---

a)

Compiler

b)

Interpreter

c)

Both A and B

d)

None

42.

Which keyword is used to start the loop from the beginning?

a)

continue

b)

while

c)

break

d)

None of the above

43.

When was C programming developed?

a)
  1. The 1950s

b)
  1. The 1960s

c)
  1. The 1980s

d)
  1. The 1970s

44.

What is the use of print f in c programming?

a)
  1. Helps in the printing of a string on the output screen

b)
  1. Processes the variables in a program

c)
  1. Is a variable type

d)
  1. All of the above

45.

What are float variables?

a)
  1. Integer value

b)
  1. unknown value

c)
  1. Decimal value

d)
  1. All of the above

46.

What are float variables?

a)
  1. Integer value

b)
  1. unknown value

c)
  1. Decimal value

d)
  1. All of the above

47.

Which of the following is not related to c programming?

a)
  1. conio.h

b)
  1. getch()

c)
  1. console.log

d)
  1. All of the above

48.

What is scanf() in c programming?

a)
  1. The layout of an input string

b)
  1. Array

c)
  1. Output function

d)
  1. All of the above

49.

What is the 16-bit compiler allowable range for integer constants?

a)
  1. -3.4e38 to 3.4e38

b)
  1. -32767 to 32768

c)
  1. -32668 to 32667

d)
  1. -32768 to 32767

50.

What is required in each C program?

a)
  1. The program must have at least one function.

b)
  1. The program does not require any function.

c)
  1. Input data

d)
  1. Output data

51.

Who is the father of the computer?

a)

     Dennis Ritchie                                

b)

                Bill gates

  

c)

    

     Charles Babbage              

d)

     Von Neumann

52.

Machine language contains

a)

1’s and 0’s                                            

b)

A-Z

    

c)

     a-z                                                  

d)

                                                letters and digits

53.

The heart of the computer is-------------------

a)

memory                                              

b)

I/O devices

                                               

c)

BIOS                                                

d)

                                             CPU

54.

The _______ provides pictorial representation of given problem.

a)

     Algorithm                                     

b)

                                     Flowchart

c)

      Pseudocode                                  

d)

                  All of these

55.

Which of the following is not a valid C variable name?

a)

int number;

b)

float rate;               

c)

int variable_count;

d)

int $main;

56.

All keywords in C are in------

a)

LowerCase letters

b)

UpperCase letters

c)

Camel Case letters                                       

d)

None

57.

The _______ symbol is used to represent decision in flowchart.

a)

Circle                                                                      

b)

                                              Rectangle

                                  

c)

Diamond                                                     

d)

None of these

58.

The _______ symbol is used to represent process in flowchart.

a)

Circle                                           

b)

                                 Rectangle

                                             

c)

Diamond                                            

d)

None of these

59.

_________ symbol is used to represent input and output operation in flowchart.

a)

Circle                                          

b)

Rectangle

                           

c)

Diamond                                          

d)

Parallelogram

60.

A character variable can at a time store?

a)

1 character                   

b)

8 characters               

c)

2 characters       

d)

none