C Programming : Data types and Operators

C Programming : Data types and Operators

University

39 Qs

quiz-placeholder

Similar activities

Learning theories

Learning theories

9th Grade - University

42 Qs

Innovación 2022 Tema 2

Innovación 2022 Tema 2

University

35 Qs

Panadería & Pastelería (básica) - Chef Nathy Lozano

Panadería & Pastelería (básica) - Chef Nathy Lozano

12th Grade - Professional Development

42 Qs

Maria / ADM UMUM / PAS

Maria / ADM UMUM / PAS

12th Grade - University

40 Qs

Vital signs

Vital signs

University - Professional Development

40 Qs

TPA (TES POTENSI AKADEMIK)

TPA (TES POTENSI AKADEMIK)

11th Grade - Professional Development

43 Qs

138IEP139PBS

138IEP139PBS

University

34 Qs

C Programming : Data types and Operators

C Programming : Data types and Operators

Assessment

Quiz

Professional Development

University

Practice Problem

Hard

Created by

Shaik Imam

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

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

39 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is short int in C programming?

Qualifier

Short is the qualifier and int is the basic data type

All of the mentioned

The basic data type of C

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { signed char chr; chr = 128; printf("%d\n", chr); return 0; }

None of the mentioned

-128

128

Depends on the compiler

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is most suitable for storing a number 65000 in a 32-bit system?

signed short

int

unsigned short

long

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code? #include int main() { int a[5] = {1, 2, 3, 4, 5}; int i; for (i = 0; i < 5; i++) if ((char)a[i] == '5') printf("%d\n", a[i]); else printf("FAIL\n"); }

The compiler will flag an error

The program will compile and print the ASCII value of 5

The program will compile and print FAIL for 5 times

The program will compile and print the output 5

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the size of an int data type?

Cannot be determined

Depends on the system/compiler

4 Bytes

8 Bytes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The format identifier '%i' is also used for _____ data type.

char

int

double

float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is correct with respect to the size of the data types?

char > int > float

double > char > int

int > char > float

char < int < double

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?