TRE4 C and C++ Quiz practice set 3

Que: (1). Which language is better for writing structured code?

A.
C.
B.
D.
E.
Open question page

Que: (2). Which of the following is primarily a procedural programming language that supports structured programming?

B.
C.
A.
D.
E.
Open question page

Que: (3). What is the full form of FORTRAN?

A.
C.
B.
D.
E.
Open question page

Que: (4). Which programming language was specifically designed for business data processing?

C.
B.
A.
D.
E.
Open question page

Que: (5). What is the full form of BASIC?

A.
B.
C.
D.
E.
Open question page

Que: (6). Which of the following is a first-generation programming language?

C.
A.
B.
D.
E.
Open question page

Que: (7). Which type of language uses mnemonic instructions such as MOV, ADD and SUB?

B.
C.
A.
D.
E.
Open question page

Que: (8). Which translator typically translates an entire source program into machine code or another target form before execution?

C.
A.
B.
D.
E.
Open question page

Que: (9). Which language-processing approach generally executes program instructions through interpretation rather than requiring a separate compiled executable?

B.
A.
C.
D.
E.
Open question page

Que: (10). Which of the following is an object-oriented programming language?

C.
B.
A.
D.
E.
Open question page

Que: (11). Which language does a browser use to display information from the World Wide Web?

C.
A.
B.
D.
E.
Open question page

Que: (12). What is the full form of HTML?

B.
A.
C.
D.
E.
Open question page

Que: (13). Which language is primarily used to style the appearance of web pages?

A.
C.
B.
D.
E.
Open question page

Que: (14). Which programming language is commonly used to add interactivity to web pages in a browser?

B.
A.
C.
D.
E.
Open question page

Que: (15). What is the full form of URL?

B.
C.
A.
D.
E.
Open question page

Que: (16). What is the full form of HTTP?

A.
C.
B.
D.
E.
Open question page

Que: (17). Which of the following is a web browser?

B.
A.
C.
D.
E.
Open question page

Que: (18). What is the primary function of a web server?

C.
B.
A.
D.
E.
Open question page

Que: (19). In web communication, which component typically sends an HTTP request to a web server?

A.
C.
B.
D.
E.
Open question page

Que: (20). Which HTML element is used to create a hyperlink?

B.
C.
A.
D.
E.
Open question page

Que: (21). Select the true statement for compiler.

B.
A.
C.
D.
E.
Open question page

Que: (22). What is the primary function of a compiler?

B.
A.
C.
D.
E.
Open question page

Que: (23). Which translator converts assembly language into machine code?

B.
A.
C.
D.
E.
Open question page

Que: (24). Which statement best describes an interpreter?

A.
C.
B.
D.
E.
Open question page

Que: (25). What is the primary function of a linker?

C.
A.
B.
D.
E.
Open question page

Que: (26). Which system program loads an executable into memory for execution?

C.
A.
B.
D.
E.
Open question page

Que: (27). What is source code?

A.
B.
C.
D.
E.
Open question page

Que: (28). Which statement about object code is correct?

B.
C.
A.
D.
E.
Open question page

Que: (29). Which type of error is commonly detected during compilation?

C.
B.
A.
D.
E.
Open question page

Que: (30). Which of the following are commonly associated with the compilation process?

C.
A.
B.
D.
E.
Open question page

Que: (31). Which of the following is not a valid variable name in most programming languages?

A.
C.
B.
D.
E.
Open question page

Que: (32). What is an identifier in programming?

B.
C.
A.
D.
E.
Open question page

Que: (33). Which of the following is a valid variable name in C?

C.
B.
A.
D.
E.
Open question page

Que: (34). Which of the following is a reserved keyword in C?

C.
B.
A.
D.
E.
Open question page

Que: (35). Are variable names case-sensitive in C?

B.
C.
A.
D.
E.
Open question page

Que: (36). Which character can be used at the beginning of a variable name in C?

A.
B.
C.
D.
E.
Open question page

Que: (37). Which of the following is not a valid variable name in C?

C.
A.
B.
D.
E.
Open question page

Que: (38). Which keyword is commonly used to declare a read-only variable in C++?

B.
C.
A.
D.
E.
Open question page

Que: (39). Which of the following is a valid variable name in Python?

A.
B.
C.
D.
E.
Open question page

Que: (40). Which statement about identifiers in C is correct?

A.
B.
C.
D.
E.
Open question page

Que: (41). If a semicolon is not used at the end of a statement, what message will be displayed by C++?

C.
A.
B.
D.
E.
Open question page

Que: (42). What is the primary purpose of a semicolon in C++?

A.
B.
C.
D.
E.
Open question page

Que: (43). What is the likely result of compiling the following C++ code: int x = 10 cout << x;

A.
B.
C.
D.
E.
Open question page

Que: (44). What does a single semicolon represent in C++?

B.
C.
A.
D.
E.
Open question page

Que: (45). Which symbol normally terminates a simple statement in C++?

C.
A.
B.
D.
E.
Open question page

Que: (46). Which is the correct declaration of an integer variable in C++?

B.
A.
C.
D.
E.
Open question page

Que: (47). Which software detects and reports many syntax errors in C++ source code?

C.
A.
B.
D.
E.
Open question page

Que: (48). Which symbols are used to enclose a block of statements in C++?

C.
B.
A.
D.
E.
Open question page

Que: (49). Which is the correct syntax for a basic if statement in C++?

A.
C.
B.
D.
E.
Open question page

Que: (50). Which of the following can cause a syntax error in C++?

C.
A.
B.
D.
E.
Open question page

Que: (51). Which shortcut keys are used to compile and run a program in Turbo C++?

A.
B.
C.
D.
E.
Open question page

Que: (52). Which shortcut key is used to compile a program in classic Turbo C++?

C.
B.
A.
D.
E.
Open question page

Que: (53). Which shortcut key is used to run a program in classic Turbo C++?

C.
A.
B.
D.
E.
Open question page

Que: (54). Which shortcut key displays the user screen in classic Turbo C++?

A.
B.
C.
D.
E.
Open question page

Que: (55). What is the primary function of a C++ compiler?

A.
C.
B.
D.
E.
Open question page

Que: (56). What happens when a C++ program contains a syntax error?

C.
A.
B.
D.
E.
Open question page

Que: (57). What is the main purpose of debugging a C++ program?

C.
A.
B.
D.
E.
Open question page

Que: (58). What is the full form of IDE in software development?

B.
C.
A.
D.
E.
Open question page

Que: (59). Which of the following is commonly part of building a C++ program?

A.
B.
C.
D.
E.
Open question page

Que: (60). In classic Turbo C++, which shortcut is used to view the output screen after running a program?

B.
C.
A.
D.
E.
Open question page

Que: (61). Which of the following is a user-defined header file extension used in C++?

A.
B.
C.
D.
E.
Open question page

Que: (62). What is the primary purpose of a header file in C++?

B.
C.
A.
D.
E.
Open question page

Que: (63). Which preprocessor directive is used to include a header file in C++?

C.
A.
B.
D.
E.
Open question page

Que: (64). Which standard C++ header file is commonly used for input and output with cin and cout?

B.
C.
A.
D.
E.
Open question page

Que: (65). Which syntax is commonly used to include a user-defined header file named myheader.h?

C.
B.
A.
D.
E.
Open question page

Que: (66). Which file extension is commonly used for a C++ source file?

C.
A.
B.
D.
E.
Open question page

Que: (67). What is the main purpose of a header guard in C++?

A.
C.
B.
D.
E.
Open question page

Que: (68). Which of the following is a valid C++ preprocessor directive for defining a macro?

C.
B.
A.
D.
E.
Open question page

Que: (69). Which of the following is a common declaration found in a C++ header file?

C.
A.
B.
D.
E.
Open question page

Que: (70). Which statement about C++ header files is correct?

B.
C.
A.
D.
E.
Open question page