Search Header Logo

Module01_C_M_M&A

Authored by Nafees Ahmed Khan

Engineering

University

Used 2+ times

Module01_C_M_M&A
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C02:2: From given option which one is Library that is used in c programming?

include

stdio

printf

return

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

CO1:2: In the following program which variable is global variable?

#include <stdio.h>

int result = 0;

int main() {

int num1, num2;

printf("Enter first number: ");

scanf("%d", &num1);

printf("Enter second number: ");

scanf("%d", &num2);

result = num1 + num2;

printf("Sum: %d\n", result);

return 0;

}

num1

num2

result

num1 and num2

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

CO1:1: Identify from the given options which are the correct identifiers?

return

Age

_cars

1apple

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

CO2:2: To store a string "hello world", which data type is used.

int

float

char

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

CO2:2: From the given options, which one is correct data type for defining 10.75.

int data=10.75

float data=10.75

char data=10.75

none

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

CO1:1: what are the correct way to define constant in a program.

#define MAX 100

const float pi = 3.14159

const pi = 3.14159

#define MAX

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

CO1:1: From given option, which function is used to display single character as output.

getchar( )

putchar( )

gets( )

puts( )

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

Already have an account?