Search Header Logo

Programming Quiz(BCA 3rd)

Authored by Nagendra Gaur

Information Technology (IT)

University

Used 2+ times

Programming Quiz(BCA 3rd)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C keyword?

for

while

loop

if

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to get the address of a variable in C?

*

&

%

$

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

int x = 10;

printf("%d", x++);

9

11

10

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, which function is used to read a character from the standard input?

scanf()

getchar()

getch()

gets()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an exit-controlled loop?

for

do-while

while

if

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default return type of a function in C if not specified?

float

int

void

char

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to define a preprocessor macro in C?

$

#

&

@

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?