Day 3 C Programming quiz

Day 3 C Programming quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

Python Collections Quiz

Python Collections Quiz

Professional Development

12 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

SQL Select 1

SQL Select 1

Professional Development

10 Qs

CSNP 04103 C++ Midterm preparation

CSNP 04103 C++ Midterm preparation

University - Professional Development

11 Qs

04 JavaScript Einführung

04 JavaScript Einführung

Professional Development

10 Qs

Technical Training

Technical Training

Professional Development

15 Qs

Google Nivel 1 7-9

Google Nivel 1 7-9

Professional Development

15 Qs

Day 3 C Programming quiz

Day 3 C Programming quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Phantom Techlogics

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conversion is not possible in c programming?

int to float

float to char pointer

float to int

All of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is needed to include to use typecasting?

stdin.h

math.h

ctype.h

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include<stdio.h>

int main()

{

double x = 1.2;

int sum = (int)x + 1;

printf("sum = %d", sum);

return 0;

}

what will be the value of the variable sum?

1

2

3

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of conversion is also called Automatic Type Conversion?

Implicit Type Conversion

Explicit Type Conversion

None of the above

Both A and B

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>


int main()


{


int a=40,b=20;


if (a>b) {


printf("a is greater than b");}


else if(a<b) {


printf("a is less than b"); }


else {


printf("a is equal to b");}


}

What is the output of the code?

a is greater than b

a is equal to b

a is less than b

compilation error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

switch(24.5)

{

case 24.5: printf("A ");break;

case 25.0: printf("B "); break;

default: printf("None ");

}

printf("Done");

}

What is the output of the above C Program?

Compiler error

Done

A , Done

B , Done

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()

{

int x = 5;

if (x < 1)

printf("x<1");

if (x == 5)

printf("x=5");

else

printf("none");

}

what is the output of the following code?

x=5

x<1

none

error

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?