dATATYPES-PART 2

dATATYPES-PART 2

Professional Development

8 Qs

quiz-placeholder

Similar activities

pemrograman dasar

pemrograman dasar

Professional Development

10 Qs

Increment and decrement operators in c

Increment and decrement operators in c

Professional Development

13 Qs

Arithmetic Operators

Arithmetic Operators

Professional Development

9 Qs

C Basic

C Basic

Professional Development

10 Qs

CPR Quiz_chapter 5_structure

CPR Quiz_chapter 5_structure

Professional Development

10 Qs

Info Sys Preparation Set 1

Info Sys Preparation Set 1

Professional Development

10 Qs

Viva_18_02_2020

Viva_18_02_2020

Professional Development

10 Qs

formatted and unformatted input/output in c mcq

formatted and unformatted input/output in c mcq

Professional Development

11 Qs

dATATYPES-PART 2

dATATYPES-PART 2

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Niranjani Vijayan

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of int in most modern C compilers on 32-bit systems?

4 bytes

2 bytes

8 bytes

Compiler dependent

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in C is used to store a single character?

char

int

float

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C data type?

short

long long

byte

long double

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum value that can be stored in an unsigned int on a system where int is 4 bytes?

2^32 - 1

2^31 - 1

2^32

2^31

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a floating-point number in C?

int

char

float

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?#include <stdio.h>

int main() {

int x = 10;

float y = 5.2;

printf("%d %f", x, y);

return 0;

}

10 5.2

10.0 5.2

10 5.200000

Compiler Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main() {

char ch = 'A';

printf("%c", ch + 1);

return 0;

}

A

B

66

65

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main() {

float x = 3.5;

printf("%d", x);

return 0;

}

3

3.5

Compiler Error

Undefined behavior