ECE-C Quiz _3

ECE-C Quiz _3

University

10 Qs

quiz-placeholder

Similar activities

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Structures and union

Structures and union

University

15 Qs

BASIC C PROGRAMMING QUIZ

BASIC C PROGRAMMING QUIZ

University

15 Qs

Coding club Summit Online Quiz

Coding club Summit Online Quiz

University

15 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

C - Pointers

C - Pointers

University

10 Qs

Operators in C

Operators in C

University

12 Qs

ENT110 C Programming Quiz2

ENT110 C Programming Quiz2

University

10 Qs

ECE-C Quiz _3

ECE-C Quiz _3

Assessment

Quiz

Computers

University

Medium

Created by

ch.keerthana GNITS

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the error in this C program:

            #include <stdio.h>
int main() {
print("Hello, World!");
return 0;
}

            missing #include statement

incorrect function name

            syntax error

            no error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

            .Which of the following is a valid identifier in C?

            2gnits

_name

            ece-c

            none of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the error in this C code:
int main() {
int number = 100.5;
printf("%d", number);
return 0;
}

assigning float to int

no error

syntax error

wrong print format     

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

            What does %d signify in the printf or scanf function?

            double data type

            Decimal integer

            Dynamic allocation

            none of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

            .What will be the output of the following C code?
int main() {
printf("%d", 500);
return 0;
}

            500

            syntax error

%d

none of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

            which character is used to indicate the end of a statement in c?

:

;

,

.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

            which data type is used to represent a single character in c?

            int

            float

            char

            double

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?