dATATYPES-PART 2

dATATYPES-PART 2

Professional Development

8 Qs

quiz-placeholder

Similar activities

Recursia

Recursia

Professional Development

10 Qs

LC - Aula 04

LC - Aula 04

Professional Development

10 Qs

Day_1_Quiz_NBKR

Day_1_Quiz_NBKR

Professional Development

10 Qs

CSS Flexbox

CSS Flexbox

Professional Development

10 Qs

CSS flexbox quiz

CSS flexbox quiz

Professional Development

10 Qs

PLASTERING

PLASTERING

12th Grade - Professional Development

10 Qs

POS System

POS System

Professional Development

10 Qs

day8

day8

Professional Development

10 Qs

dATATYPES-PART 2

dATATYPES-PART 2

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Niranjani Vijayan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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