Search Header Logo
Techno Whiz Level 1

Techno Whiz Level 1

Assessment

Presentation

Professional Development

Practice Problem

Hard

Created by

HANUDEEP GATTU

Used 4+ times

FREE Resource

0 Slides • 25 Questions

1

Multiple Choice

Which of the following is not a Primitive Data-Type?

1

int

2

Float

3

Double

4

String

2

Multiple Choice

Which of the following is a Conditional Operator?

1

==

2

?:

3

>=

4

<=

3

Multiple Choice

Which of the Following Functions is used to Open a File in C ?

1

Open()

2

openfile()

3

fopen()

4

createfile()

4

Multiple Choice

Guess the output of the following snippet?

10<<2

1

2

2

30

3

40

4

60

5

Multiple Choice

Which of the following statements about dynamic memory allocation in C is true?

1

It is done using the malloc() function

2

Memory allocated dynamically is automatically deallocated when the program terminates

3

It is less flexible than static memory allocation

4

Dynamic memory allocation is not allowed in C

6

Multiple Choice

What does the "const" qualifier indicate in the following declaration?

const int *ptr;

1

The pointer itself is constant

2

The value pointed to by ptr is constant

3

Both the pointer and the value pointed to by ptr are constant

4

the function pointed to by ptr cannot modify any variables

7

Multiple Choice

Which of the following is used to define a Macro in C?

1

#def

2

#define

3

#macro

4

#define_macro

8

Multiple Choice

Functions in C Language are always_

1

Internal

2

External

3

Both External and Internal

4

External and Internal are not valid terms for functions

9

Multiple Choice

What is #include<stdio.h>?

1

Preprocessor directive

2

Inclusion directive

3

File inclusion directive

4

None of the above

10

Multiple Choice

What is the sizeof(char)in a 32-bit C Compiler?

1

1 bit

2

2 bits

3

1 Byte

4

2 Bytes

11

Multiple Choice

What is meant by ‘a’ in the following C operation?

fp = fopen("Random.txt", "a");

1

Attach

2

Append

3

Apperehend

4

Add

12

Multiple Choice

Who is the father of C Language ?

1

Steve Jobs

2

James Gosling

3

Dennis Ritchie

4

Rasmus Lerdorf

13

Multiple Choice

Which is the valid C expression?

1

int my_num = 10,000;

2

int my_num = 10000;

3

int my num = 10000;

4

int $my_num = 10,000;

14

Multiple Choice

What is the result of Logical and Relational Expression in C?

1

True or False

2

0 or 1

3

0 if expression false and any positive number if an expression is true

4

None of the Above

15

Multiple Choice

The C- preprocesses are specified with ____ symbol?

1

#

2

$

3

" "

4

&

16

Multiple Choice

How many number of pointers (*) does C have against a pointer variable declaration?

1

7

2

127

3

255

4

No limit

17

Multiple Choice

What will be the data type returned for the following c function?

int fun()

{

return (double)(char) 5.0;

}

1

char

2

int

3

double

4

float

18

Multiple Choice

Which of the following language predecessor to C programming language?

1

A

2

B

3

BCPL

4

C++

19

Multiple Choice

Character constants should be enclosed between

1

Single quotes

2

Double quotes

3

Both

4

None of the above

20

Multiple Choice

The operator & is used for

1

Bitwise AND

2

Bitwise OR

3

Logical AND

4

Logical OR

21

Multiple Choice

Which of the following operator has the highest precedence?

1

*

2

==

3

=>

4

+

22

Multiple Choice

Which of the following statements is true?

1

C library functions provide I/O facilities

2

C inherit I/O facilities

3

C doesn't have I/O facilities

4

Both A and C

23

Multiple Choice

Which operator in C is known as ternary operator

1

/

2

&&

3

?:

4

//

24

Multiple Choice

Which of the following keyword is used for storage classes?

1

Printf

2

Auto

3

sacnf

4

external

25

Multiple Choice

The ___ chars have values from -128 to 127.

1

Signed

2

unsigned

3

long

4

none

Which of the following is not a Primitive Data-Type?

1

int

2

Float

3

Double

4

String

Show answer

Auto Play

Slide 1 / 25

MULTIPLE CHOICE