C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

quiz-placeholder

Similar activities

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

ITE TEST 2

ITE TEST 2

University

20 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Web Development Revision 1

Web Development Revision 1

University

15 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Python Quiz

Python Quiz

University

15 Qs

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

Assessment

Quiz

Computers

University

Hard

Created by

PRASHANT ATMAKURI

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid C variable name?

int number;

float rate;

int variable_count;

int $main;

Answer explanation

Since only underscore and no other special character is allowed in a variable name, it results in an error.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true for variable names in C?

They can contain alphanumeric characters as well as special characters

It is not an error to declare a variable to be one of the keywords(like goto, static)

Variable names cannot start with a digit

Variable can be of any length

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is short int in C programming?

The basic data type of C

Qualifier

Short is the qualifier and int is the basic data type

All of the mentioned

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following typecasting is accepted by C language?

Widening conversions

Narrowing conversions

Widening & Narrowing conversions

None of the mentioned

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT possible with any 2 operators in C?

Different precedence, same associativity

Different precedence, different associativity

Same precedence, different associativity

All of the mentioned

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Property which allows to produce different executable for different platforms in C is called?

File inclusion

Selective inclusion

Conditional compilation

Recursive macros

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following C code?

int y = 10000;

int y = 34;

printf("Hello World! %d\n", y);

Hello World! 34

Hello World! 10000

Hello World! followed by a junk value

Compile time 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?